mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
57 lines
No EOL
1.3 KiB
Lua
Executable file
57 lines
No EOL
1.3 KiB
Lua
Executable file
--[[
|
|
Script Name : ZoneScripts/Everfrost.lua
|
|
Script Purpose :
|
|
Script Author : vo1d
|
|
Script Date : 10/29/2019
|
|
Script Notes :
|
|
--]]
|
|
|
|
-- QuestIDs
|
|
local ADeepiceMystery = 486
|
|
|
|
-- SpawnIDs
|
|
local ALivingSnowFlurry = 410267
|
|
|
|
function player_entry(zone, player)
|
|
if HasQuest(player, ADeepiceMystery) and GetQuestStep(player, ADeepiceMystery) == 2 then
|
|
SetLocationProximityFunction(zone, 50, -17, 0, 60, "InRangeADeepiceMystery", "OutRange")
|
|
end
|
|
end
|
|
|
|
function InRangeADeepiceMystery(Zone, Spawn)
|
|
if HasQuest(Spawn, ADeepiceMystery) and GetQuestStep(Spawn, ADeepiceMystery) == 2 then
|
|
if GetSpawn(Spawn, ALivingSnowFlurry) == nil then
|
|
choice = math.random(1, 2)
|
|
if choice == 1 then
|
|
SpawnByLocationID(GetZone(Spawn), 1586704)
|
|
SpawnByLocationID(GetZone(Spawn), 1586705)
|
|
elseif choice == 2 then
|
|
SpawnByLocationID(GetZone(Spawn), 1586706)
|
|
SpawnByLocationID(GetZone(Spawn), 1586707)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
|
|
function init_zone_script(zone)
|
|
end
|
|
|
|
function enter_location(zone, spawn, grid)
|
|
end
|
|
|
|
function leave_location(zone, spawn, grid)
|
|
end
|
|
|
|
function dawn(zone)
|
|
end
|
|
|
|
function dusk(zone)
|
|
end
|
|
|
|
function InRange(zone, player)
|
|
end
|
|
|
|
function OutRange(zone, player)
|
|
end |