Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.


0.4.9
- Handle spaces in event names for "edit in vs code" button
local my_class = mq.TLO.Me.Class.ShortName()
mq.cmdf('/%s mode 0', my_class)
I think this would be a case for using /rootme and /rootme off instead?If I want to make my characters keep doing what they're doing but not chase after their target with a LEM, would this be accurate?
INI:
Code:local my_class = mq.TLO.Me.Class.ShortName() mq.cmdf('/%s mode 0', my_class)
Also, how would I do that with KA? command /backoff on and leave it at that? I dont mind range attack, heals, etc., i just dont want it running after the mob until I tell it to.
You might want to look at any of the examples or the ones that come included, https://www.redguides.com/community/resources/lua-event-manager-lem-event-library.2600/
I did. I loaded by the template and have the event posted.You might want to look at any of the examples or the ones that come included, https://www.redguides.com/community/resources/lua-event-manager-lem-event-library.2600/
well, not sure what event moveaura is. did you try the command suggested in the error.I did. I loaded by the template and have the event posted.
it says unexpected symbol near $. I have no idea which one or why.well, not sure what event moveaura is. did you try the command suggested in the error.
local run_away_dist1 = ${Navigation.PathLength[${Spawn[${"Fellowship Campfire"}].X} ${Spawn[${"Fellowship Campfire"}].Y} ${Spawn[${"Fellowship Campfire"}].Z}]}
Macroscript doesn't really have any place in Lua. None of that is valid.. might work for you in mq2events thoughit says unexpected symbol near $. I have no idea which one or why.
I assume that since it says Lua.9 it means the error is on line 9?
Code:local run_away_dist1 = ${Navigation.PathLength[${Spawn[${"Fellowship Campfire"}].X} ${Spawn[${"Fellowship Campfire"}].Y} ${Spawn[${"Fellowship Campfire"}].Z}]}
I dont know about Lua, I asked and some one gave me that code. How would I find the distance between where Im at and an object using Lua?Macroscript doesn't really have any place in Lua. None of that is valid.. might work for you in mq2events though
local distance = (part1.Position - part2.Position).magnitude
I usually do one of these ways for distance:How would I find the distance between where Im at and an object using LUA?
mq.TLO.Target.Distance()
mq.TLO.Me.XTarget(target).Distance()
mq.TLO.Math.Distance(-211,102)()
mq.TLO.NearestSpawn(1, spawn_search).Y(), mq.TLO.NearestSpawn(1, spawn_search).X()
I usually do one of these ways for distance:
first is if I have it targeted, 2nd would be an Xtar, 3rd is a loc, 4th I show how I would grab a loc via a spawn search.. hope the snippets help.
Code:mq.TLO.Target.Distance() mq.TLO.Me.XTarget(target).Distance() mq.TLO.Math.Distance(-211,102)() mq.TLO.NearestSpawn(1, spawn_search).Y(), mq.TLO.NearestSpawn(1, spawn_search).X()
well I see in another thread that Brainiac already answered this.. there's multiple ways to do everything.is that last one the one i want to use for an object I cannot target?
mq.TLO.Math.Distance(Yloc,Xloc)()
mq.TLO.Math.Distance(mq.TLO.Me.Fellowship.CampfireY(),mq.TLO.Me.Fellowship.CampfireX())()

if {EventArg1} = mq.TLO.Me.CleanName() then
Your lem does not follow the structure of a lem-event.have this code
[CODE title="LEM Event"]local function stopthings()
local my_class = mq.TLO.Me.Class.ShortName()
-- delay before returning to the group (10 is ~1 second)
local run_delay = 10
mq.cmdf('/timed %d /%s mode 0', run_delay, my_class)
mq.cmdf('/timed %d /mqp on', run_delay)
mq.cmdf('/timed %d /twist off', run_delay)
mq.cmdf('/timed %d /afollow off', run_delay)
mq.cmdf('/timed %d /nav stop', run_delay)
mq.cmdf('/timed %d /target clear', run_delay)
mq.cmdf('/timed %d /stopcast', run_delay)
end
local function startthings()
local my_class = mq.TLO.Me.Class.ShortName()
-- delay before returning to the group (10 is ~1 second)
local return_delay = 30
mq.cmdf('/timed %d /%s mode 3', return_delay, my_class)
mq.cmdf('/timed %d /stand', return_delay)
mq.cmdf('/timed %d /mqp off', return_delay)
mq.cmdf('/timed %d /twist on', return_delay)
mq.cmdf('/timed %d /switchnow', return_delay)
end
local function run_campfire()
local my_class = mq.TLO.Me.Class.ShortName()
-- pause all the things
stopthings()
-- run away
mq.cmd('/timed 12 /nav spawn "Fellowship Campfire"|dist=15')
-- resume all the things
startthings()
end
local function event_handler(line, target)
run_campfire()
end[/CODE]
Getting this response in my MQ window and the toons do not nav. they just stand still.
View attachment 45861
Thanks for your comment; however, I been reading them for months and stealing them where I can. this comment doesnt help in the slightest, but the event I got seems to work. Used it to beat a raid today.Your lem does not follow the structure of a lem-event.
You may want to start with a running lem-event from the thread lem-library using it as a template and adopt it to your needs.
My bad, had a conditioned event in mind when reading your post.Thanks for your comment; however, I been reading them for months and stealing them where I can. this comment doesnt help in the slightest, but the event I got seems to work. Used it to beat a raid today.
its complaining about something before that line. post more of the code
local function run_away()
local my_class = mq.TLO.Me.Class.ShortName()
-- pause all the things
mq.cmdf('/timed 1 /%s mode 0', my_class)
mq.cmd('/timed 2 /mqp on')
mq.cmd('/timed 3 /twist off')
mq.cmd('/timed 4 /afollow off')
mq.cmd('/timed 5 /nav stop')
mq.cmd('/timed 6 /target clear')
-- run away
mq.cmd('/timed 7 /nav spawn "guild banner"|dist=20')
End
Ah, its being picky, got it. Thanks.End is capitalized and it shouldn't be
Cool, will try that nowI don't do any of the fading, I go in and stand at the dragon till I get the crystal, then kill the dragon.. collect all 4 and kill all 4 dragons then kill Valak in the center..
once its dead run to the top of the ramp before the golems come down and blow up. (don't click anything to finish mission)
All the Aura's show up in the corner at the same time, then I just target self, click the gem and run through each corner. Bang Achiev.
Good Luck.
Ah, its being picky, got it. Thanks.
This will indeed be a problem for me in the future rofl.LUA's case sensitive. It's a double-edged sword.
This is not Lua but it worked for me.Anyone able to write a LUA script to help with HoT - Ritual of Terrors raid for the glyphs/emote part?
Something like if you get one of the 4 emotes for looting a glyph, pause plugins/macros and navto the base of the corresponding tower for that glyph/emote?
Emote: I do not fear that trinket, Soandso. And I DO know the meaning of fear. Here's a lesson for you!
Nav to: x, y
Emote: You shall not live long enough to use that, Soandso! From Cazic's heart I stab at thee!
Nav to: x, y
Emote: I foresaw that you, Soandso, would recognize that for what it is. It would be best if you were to throw it into the river.
Nav to: x, y
Emote: So, you want to take me on? That works for me. Come over here where I can get at you, Soandso!
Nav to: x, y
