Everfrost.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : ZoneScripts/Everfrost.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 ALivingSnowFlurry = 410267
  12. function player_entry(zone, player)
  13. if HasQuest(player, ADeepiceMystery) and GetQuestStep(player, ADeepiceMystery) == 2 then
  14. SetLocationProximityFunction(zone, 50, -17, 0, 60, "InRangeADeepiceMystery", "OutRange")
  15. end
  16. end
  17. function InRangeADeepiceMystery(Zone, Spawn)
  18. if HasQuest(Spawn, ADeepiceMystery) and GetQuestStep(Spawn, ADeepiceMystery) == 2 then
  19. if GetSpawn(Spawn, ALivingSnowFlurry) == nil then
  20. choice = math.random(1, 2)
  21. if choice == 1 then
  22. SpawnByLocationID(GetZone(Spawn), 1586704)
  23. SpawnByLocationID(GetZone(Spawn), 1586705)
  24. elseif choice == 2 then
  25. SpawnByLocationID(GetZone(Spawn), 1586706)
  26. SpawnByLocationID(GetZone(Spawn), 1586707)
  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