Graveyard.lua 1001 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : ZoneScripts/Graveyard.lua
  3. Script Purpose : Zone script for The Graveyard.
  4. Script Author : Scatman
  5. Script Date : 2009.07.12
  6. Script Notes :
  7. --]]
  8. local ZADDAR_QUEST_4 = 234
  9. function init_zone_script(Zone)
  10. SetLocationProximityFunction(Zone, 57.9408, -2.75514, 98.808, 50, "SpawnObjectsForZaddarQuest4", "SpawnObjectsForZaddarQuest4")
  11. end
  12. function SpawnObjectsForZaddarQuest4(Zone, Spawn)
  13. if HasQuest(Spawn, ZADDAR_QUEST_4) then
  14. if GetQuestStep(Spawn, ZADDAR_QUEST_4) == 2 then
  15. WardParticle = GetSpawn(Caster, 1250125)
  16. if WardParticle == nil then
  17. WardParticle = SpawnMob(GetZone(Caster), 1250125, false, 58.588, -2.72359, 98.4903, 339.984)
  18. Despawn(WardParticle, 30000)
  19. end
  20. elseif GetQuestStep(Spawn, ZADDAR_QUEST_4) == 3 then
  21. Relic = GetSpawn(Caster, 1250107)
  22. if Relic == nil then
  23. Relic = SpawnMob(GetZone(Caster), 1250107, false, 57.9408, -2.75514, 98.8084, 339.984)
  24. Despawn(Relic, 30000)
  25. end
  26. end
  27. end
  28. end