thexmonument02.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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,2)==0 then
  14. AddConversationOption(con, "Make a note of the artifact.","Dialog2")
  15. end
  16. StartDialogConversation(con, 1, NPC, Spawn, "This is an ancient artifact. It has sadistic looking symbols bordering writing that is written in both a common tongue and what appears to be a form of Thexian.")
  17. end
  18. end
  19. function Dialog2(NPC, Spawn)
  20. local con = CreateConversation()
  21. SetStepComplete(Spawn, TheStolenArtifactsofThex, 2)
  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 respawn(NPC)
  29. spawn(NPC)
  30. end