mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
15 lines
No EOL
730 B
Lua
15 lines
No EOL
730 B
Lua
-- a_grimling_invader (166266) for Hollowshade war
|
|
|
|
-- signals for camp takeover when arrives at an undefended. everything else handled by coordinator.
|
|
function event_waypoint_arrive(e)
|
|
local grid = e.self:GetGrid()
|
|
-- signals are coded as (camp)(race)
|
|
if (e.wp >= 14 and grid == 201) or (e.wp >= 16 and grid == 301) then
|
|
eq.signal(166257, 13) -- change camp 1 (north) to race 3 (grimling)
|
|
elseif (e.wp >= 14 and grid == 102) or (e.wp >= 13 and grid == 302) then
|
|
eq.signal(166257, 23) -- change camp 2 (east) to race 3 (grimling)
|
|
elseif (e.wp >= 15 and grid == 103) or (e.wp >= 12 and grid == 203) then
|
|
eq.signal(166257, 33) -- change camp 3 (east) to race 3 (grimling)
|
|
end
|
|
end
|
|
|