9
3

thexmonument03.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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,3)==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 Thexian, an ancient dark elf language.")
  17. end
  18. end
  19. function Dialog2(NPC, Spawn)
  20. local con = CreateConversation()
  21. SetStepComplete(Spawn, TheStolenArtifactsofThex, 3)
  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