Caves.lua 682 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : ZoneScripts/Caves.lua
  3. Script Purpose : Caves
  4. Script Author : Scatman
  5. Script Date : 2009.10.18
  6. Script Notes :
  7. --]]
  8. local QUEST2_FROM_EMMA = 227
  9. function init_zone_script(Zone)
  10. SetLocationProximityFunction(Zone, 45.4454, 37.7504, -110.193, 20, "SpawnFulkoir")
  11. end
  12. function SpawnFulkoir(Zone, Spawn)
  13. if HasQuest(Spawn, QUEST2_FROM_EMMA) and not QuestStepIsComplete(Spawn, QUEST2_FROM_EMMA, 3) and QuestStepIsComplete(Spawn, QUEST2_FROM_EMMA, 1) and QuestStepIsComplete(Spawn, QUEST2_FROM_EMMA, 2) then
  14. local Fulkoir = GetSpawn(Spawn, 1970071)
  15. if Fulkoir == nil then
  16. SpawnMob(Zone, 1970071, false, 45.4454, 37.7504, -110.193, 259.984)
  17. end
  18. end
  19. end