9
3

CuntyDoor.lua 834 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/CuntyDoor.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.14 09:11:29
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC,5769,1,0,0,1)
  10. SetRequiredQuest(NPC,5769,2,0,0,1)
  11. SetRequiredQuest(NPC,5770,1,0,0,1)
  12. SetRequiredQuest(NPC,5770,2,0,0,1)
  13. end
  14. function casted_on(NPC, Spawn, SpellName)
  15. if SpellName == 'Enter the Trial' then
  16. if HasQuest(Spawn,5770) and not HasCompletedQuest(Spawn,5770) then
  17. Summoner = GetZone("Summonerstest")
  18. Zone(Summoner,Spawn)
  19. elseif HasQuest(Spawn,5769) and not HasCompletedQuest(Spawn,5769) then
  20. Sorcerer = GetZone("Sorcererstrial")
  21. Zone(Sorcerer,Spawn)
  22. end
  23. end
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end