9
3

Lavastorm.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : ZoneScripts/Lavastorm.lua
  3. Script Purpose :
  4. Script Author : vo1d
  5. Script Date : 10/29/2019
  6. Script Notes :
  7. --]]
  8. -- QuestIDs
  9. local ADeepiceMystery = 486
  10. -- SpawnIDs
  11. local ALivingBlaze = 1710369
  12. function player_entry(zone, player)
  13. if HasQuest(player, ADeepiceMystery) and GetQuestStep(player, ADeepiceMystery) == 1 then
  14. SetLocationProximityFunction(zone, -236, -128, 488, 60, "InRangeADeepiceMystery", "OutRange")
  15. end
  16. end
  17. function InRangeADeepiceMystery(Zone, Spawn)
  18. if HasQuest(Spawn, ADeepiceMystery) and GetQuestStep(Spawn, ADeepiceMystery) == 1 then
  19. if GetSpawn(Spawn, ALivingBlaze) == nil then
  20. choice = math.random(1, 2)
  21. if choice == 1 then
  22. SpawnByLocationID(GetZone(Spawn), 1586700)
  23. SpawnByLocationID(GetZone(Spawn), 1586701)
  24. elseif choice == 2 then
  25. SpawnByLocationID(GetZone(Spawn), 1586702)
  26. SpawnByLocationID(GetZone(Spawn), 1586703)
  27. end
  28. end
  29. end
  30. end
  31. function init_zone_script(zone)
  32. end
  33. function enter_location(zone, spawn, grid)
  34. end
  35. function leave_location(zone, spawn, grid)
  36. end
  37. function dawn(zone)
  38. end
  39. function dusk(zone)
  40. end
  41. function InRange(zone, player)
  42. end
  43. function OutRange(zone, player)
  44. end