toqeycitizenshiptrial.lua 805 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Graystone/toqeycitizenshiptrial.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.01 06:09:03
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC, 5720, 2)
  10. SetRequiredQuest(NPC, 5720, 3)
  11. SetRequiredQuest(NPC, 5720, 4)
  12. SetRequiredQuest(NPC, 5720, 5)
  13. SetRequiredQuest(NPC, 5720, 6)
  14. SetRequiredQuest(NPC, 5720, 7)
  15. SetRequiredQuest(NPC, 5720, 8)
  16. end
  17. function casted_on(NPC, Spawn,SpellName)
  18. if SpellName == 'Enter the Trial' then
  19. if GetQuestStep(Spawn,5720)>=2 or GetQuestStep(Spawn,5720)<=8 then
  20. SetStepComplete(Spawn,5720,2)
  21. ZoneRef = GetZone("QeynosCitizenshipTrialChamber")
  22. Zone(ZoneRef,Spawn)
  23. end
  24. end
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end