mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
28 lines
No EOL
1 KiB
Lua
28 lines
No EOL
1 KiB
Lua
function event_spawn(e)
|
|
local zone_time = eq.get_zone_time(); -- Time here is off by 1, so 6AM = 5.
|
|
local hour = zone_time["zone_hour"] + 1;
|
|
local minute = zone_time["zone_minute"];
|
|
eq.debug("Shuttle spawned! Name is: " .. e.self:GetName() .. " Time is: " .. hour ..":" .. minute .. "", 1);
|
|
end
|
|
|
|
function event_waypoint_arrive(e)
|
|
local zone_time = eq.get_zone_time(); -- Time here is off by 1, so 6AM = 5.
|
|
local hour = zone_time["zone_hour"] + 1;
|
|
local minute = zone_time["zone_minute"];
|
|
if(e.wp == 5) then
|
|
eq.debug("Shuttle to timorous (1) has reached the docks. Name is: " .. e.self:GetName() .. " Time is: " .. hour ..":" .. minute .. "", 1);
|
|
elseif(e.wp == 11) then
|
|
eq.debug("Shuttle to timorous (1) has reached its destination! Name is: " .. e.self:GetName() .. " Time is: " .. hour ..":" .. minute .. "", 1);
|
|
eq.get_entity_list():ForeachClient(
|
|
function(ent)
|
|
ent:MovePC(96,5359,7581,-2,0);
|
|
end,
|
|
function(ent)
|
|
if(ent:GetBoatID() == 840) then
|
|
return true;
|
|
end
|
|
return false;
|
|
end
|
|
);
|
|
end
|
|
end |