--[[ Script Name : SpawnScripts/TheGraveyard_Classic/widgetinspectthexmonument.lua Script Author : Dorbin Script Date : 2023.10.16 04:10:36 Script Purpose : : --]] local TheStolenArtifactsofThex = 5683 function casted_on(NPC, Spawn, SpellName) if SpellName == 'inspect' then local con = CreateConversation() AddConversationOption(con, "Stop inspecting.","Close") if HasLanguage(Spawn,2) and GetQuestStepProgress(Spawn,TheStolenArtifactsofThex,6)==0 then AddConversationOption(con, "Make a note of the artifact.","Dialog2") end StartDialogConversation(con, 1, NPC, Spawn, "This is a gravestone made of ancient looking stone. The name of the deceased appears on the stone as well as odd writing of a foreign language. The name looks to have been added more recently than the foreign writing.") end end function Dialog2(NPC, Spawn) local con = CreateConversation() SetStepComplete(Spawn, TheStolenArtifactsofThex, 6) AddConversationOption(con, "Stop studying.","Close") StartDialogConversation(con, 1, NPC, Spawn, "You make a note of the location of the Thex artifact as ordered by Kylanith D'Lar.") end function Close(NPC,Spawn) CloseConversation(NPC,Spawn) end function spawn(NPC) end function respawn(NPC) spawn(NPC) end