toqeycitizenshiptrial.lua 808 B

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