mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
21 lines
632 B
Lua
21 lines
632 B
Lua
function event_spawn(e)
|
|
eq.set_proximity(e.self:GetX() - 4000, e.self:GetX() + 4000, e.self:GetY() - 4000, e.self:GetY() + 4000,-2400, -1200);
|
|
eq.set_timer("Zcheck", 60 * 1000); --2nd level of protection in case clients happen to skip past the proximity/zone line z-axis
|
|
end
|
|
|
|
function event_enter(e)
|
|
e.other:MovePC(10,-1570,-25,20,462);
|
|
end
|
|
|
|
function event_timer(e)
|
|
if e.timer == "Zcheck" then
|
|
local player_list = eq.get_entity_list():GetClientList();
|
|
if player_list ~= nil then
|
|
for player in player_list.entries do
|
|
if player:GetZ() < -1200 then
|
|
player:MovePC(10,-1570,-25,20,462);
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|