zonetoqeyepic06p12irontoes.lua 917 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/zonetoqeyepic06p12irontoes.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.05 05:12:05
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC,5783,1,0,0,1)
  10. SetRequiredQuest(NPC,5785,1,0,0,1)
  11. SetRequiredQuest(NPC,5789,1,0,0,1)
  12. end
  13. function casted_on(NPC, Spawn, SpellName)
  14. if SpellName == 'Enter the Cache' then
  15. if HasQuest(Spawn,5783) and not HasCompletedQuest(Spawn,5783) then
  16. Rogue = GetZone("Rogue_Cache")
  17. Zone(Rogue,Spawn)
  18. elseif HasQuest(Spawn,5785) and not HasCompletedQuest(Spawn,5785) then
  19. Predator = GetZone("Cache")
  20. Zone(Predator,Spawn)
  21. elseif HasQuest(Spawn,5789) and not HasCompletedQuest(Spawn,5789) then
  22. Predator = GetZone("BuccaneersHideout")
  23. Zone(Predator,Spawn)
  24. end
  25. end
  26. end