toqeycitizenshiptrial.lua 806 B

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