I'm new to Lua and learning slowly. I want an LEM to use in the LS raid Shadow of my Shadow.
In that raid, single players get called out with the "venom" curse and need to run away from the raid while it lasts (24 seconds).
What I want is to pause any toon called out, have them run to an assigned loc, pause for 20 seconds (it will take at least 2 secs to travel each way), run back to the guild banner and then unpause (I run back first because my healers are set to manual for this event).
Here's what I wrote (as a text LEM, with the trigger #*#Your mind is cursed to suffer as your body suffers.#*# as that is the 1st person text received). I'm not sure how I could test it so thought I'd ask if anyone see obvious flaws! Thank you
In that raid, single players get called out with the "venom" curse and need to run away from the raid while it lasts (24 seconds).
What I want is to pause any toon called out, have them run to an assigned loc, pause for 20 seconds (it will take at least 2 secs to travel each way), run back to the guild banner and then unpause (I run back first because my healers are set to manual for this event).
Here's what I wrote (as a text LEM, with the trigger #*#Your mind is cursed to suffer as your body suffers.#*# as that is the 1st person text received). I'm not sure how I could test it so thought I'd ask if anyone see obvious flaws! Thank you

local mq = require('mq')
-- Do not edit this if condition
if not package.loaded['events'] then
print('This script is intended to be imported to Lua Event Manager (LEM). Try "\a-t/lua run lem\a-x"')
end
local function on_load()
-- Perform any initial setup here when the event is loaded.
end
local function event_handler()
-- Implement the handling for the event here.
mq.cmd('/boxr pause')
mq.cmd('/nav locyx 836 -2833')
while mq.TLO.Navigation.Active() == false do
mq.delay(10)
end
while mq.TLO.Navigation.Active() == true do
mq.delay(10)
end
mq.delay(200)
mq.cmd('/nav spawn "Guild Banner"')
while mq.TLO.Navigation.Active() == false do
mq.delay(10)
end
while mq.TLO.Navigation.Active() == true do
mq.delay(10)
end
mq.cmd ('/boxr unpause')
end
return {onload=on_load, eventfunc=event_handler}

