widgetinspectthexmonument.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/BigBend/thexmonument04broken.lua
  3. Script Author : torsten
  4. Script Date : 2022.07.20 06:07:41
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheStolenArtifactsofThex = 5683
  9. function casted_on(NPC, Spawn, SpellName)
  10. if SpellName == 'inspect' then
  11. local con = CreateConversation()
  12. AddConversationOption(con, "Stop inspecting.","Close")
  13. if HasLanguage(Spawn,2) and GetQuestStepProgress(Spawn,TheStolenArtifactsofThex,6)==0 then
  14. AddConversationOption(con, "Make a note of the artifact.","Dialog2")
  15. end
  16. 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.")
  17. end
  18. end
  19. function Dialog2(NPC, Spawn)
  20. local con = CreateConversation()
  21. SetStepComplete(Spawn, TheStolenArtifactsofThex, 6)
  22. AddConversationOption(con, "Stop studying.","Close")
  23. StartDialogConversation(con, 1, NPC, Spawn, "You make a note of the location of the Thex artifact as ordered by Kylanith D'Lar.")
  24. end
  25. function Close(NPC,Spawn)
  26. CloseConversation(NPC,Spawn)
  27. end
  28. function spawn(NPC)
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end