eqmac-quests/overthere/Bloated_Belly.lua
regneq 235936a32c Elroz- partial hand in dialogue additions and a couple quest reward dialogue additions
Robregen - removed adjustments for zone_time{"hour"] since it's fixed in the code.
Elroz - north karana fangbreakers following their leader
2023-12-20 11:58:48 -08:00

28 lines
No EOL
955 B
Lua

function event_spawn(e)
local zone_time = eq.get_zone_time();
local hour = zone_time["zone_hour"];
local minute = zone_time["zone_minute"];
eq.debug("Boat spawned! Name is: " .. e.self:GetName() .. " Time is: " .. hour ..":" .. minute .. "", 1);
end
function event_waypoint_arrive(e)
local zone_time = eq.get_zone_time();
local hour = zone_time["zone_hour"];
local minute = zone_time["zone_minute"];
if(e.wp == 13) then
eq.debug("Boat to timorous (15) has reached the docks. Name is: " .. e.self:GetName() .. " Time is: " .. hour ..":" .. minute .. "", 1);
elseif(e.wp == 29) then
eq.debug("Boat to timorous (15) has reached its destination! Name is: " .. e.self:GetName() .. " Time is: " .. hour ..":" .. minute .. "", 1);
eq.get_entity_list():ForeachClient(
function(ent)
ent:MovePC(96,1159,-1479,18, 0);
end,
function(ent)
if(ent:GetBoatID() == 839) then
return true;
end
return false;
end
);
end
end