• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver
(Mighty) Lua Event Manager

Release (Mighty) Lua Event Manager 12/13/2024

No permission to download
So, I tried this for the first time with the "When One Door Opens" NoS mission. I followed the steps to load the "OneDoorBanish" LEM event for my cleric. Ran through the mission and not sure if anything happened with this, but the achievement failed.

1673626243050.png

Is there anything I can go check to see if my cleric actually attempted to bane the mobs?
 
It will fail if you kill the mob too fast and the adds do not pop. You will see the adds on extended target window. If you do not see the adds on extended target, you killing the main mob too fast and need to slow down the DPS.
 
I am using this Lua but every time I try to load it it says loaded then auto ends and not sure what to change so my tank will med up and ideas?

local mq = require('mq')

local function condition()
if mq.TLO.Grind.Active() then
if not mq.TLO.Grind.Paused() then
return mq.TLO.Group.LowMana(20)() > 0
elseif mq.TLO.Grind.Paused() then
return mq.TLO.Group.LowMana(95)() < 1
end
end
end

local function action()
if not mq.TLO.Grind.Paused() then
mq.cmd('/grind pause')
elseif mq.TLO.Grind.Paused() then
mq.cmd('/grind resume')
end
end

return {condfunc=condition, actionfunc=action}
 
Additionally, it is not complete. I am offline atm, but will be on in about 20-25mins. I will paste what I use.
 
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.
 
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.
I think this would be a case for using /rootme and /rootme off instead?
 
well, not sure what event moveaura is. did you try the command suggested in the error.
it 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}]}
 
it 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}]}
Macroscript doesn't really have any place in Lua. None of that is valid.. might work for you in mq2events though
 
Macroscript doesn't really have any place in Lua. None of that is valid.. might work for you in mq2events though
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?

I found this on google, but i dont know how to implement it on LEM

Code:
local distance = (part1.Position - part2.Position).magnitude

mainly cause i dont know how to find the position of an object.
 
Ok, since i seem to be asking unusual questions I have made this pared down version of the event above... may help someone out to run to a banner or a campfire. If anyone has feedback or ways to make it work better Id appreciate it.

[CODE title="Run to Banner/Run to Campfire"]local mq = require('mq')

-- compare zone name to skip event if not in the correct zone
local required_zone = 'anyzoneyouwant'

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 10 /nav spawn "Fellowship Campfire"|dist=15')

-- resume all the things
startthings()

end

local function run_banner()

-- pause all the things
stopthings()

-- run away
mq.cmd('/timed 10 /nav spawn "Guild Banner"|dist=15')

-- resume all the things
stopthings()

end

local function event_handler(line, target)

run_campfire()
--- run_banner()

end

return {eventfunc=event_handler}[/CODE]
 
Would it be possible to nest categories? I want to do Raids by xpac and events without having a hundred visible folders or individual events.
 
How would I find the distance between where Im at and an object using LUA?
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()
 
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()

is that last one the one i want to use for an object I cannot target?
 
is that last one the one i want to use for an object I cannot target?
well I see in another thread that Brainiac already answered this.. there's multiple ways to do everything.
I myself wouldn't use banners and campfires. I would just use static locs in the event area and use the 3rd one down.
Code:
mq.TLO.Math.Distance(Yloc,Xloc)()

but for instance if you are really wanting to use a campfire for some reason you can tell your distance to it by doing something like this:
Code:
mq.TLO.Math.Distance(mq.TLO.Me.Fellowship.CampfireY(),mq.TLO.Me.Fellowship.CampfireX())()

or Brainiacs solution from the other thread using Navigation.Pathlength.
 
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.

1675589017370.png
 
also question, is it possible if i use a /nav loc or a /timed in an event to add a slight random to the number, so it doesnt all go at the same time or to the exact same place?

Does this work or do i need to do it another way?

Code:
if {EventArg1} = mq.TLO.Me.CleanName() then
 
I am interested in using this per Sic's kiss bard ini suggestion instead of using mq2melee. is there a link or something that would help get me started on that?
 
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
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.
 
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.
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.
 
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.
My bad, had a conditioned event in mind when reading your post.
 
I have 3 events all with the same text and I am getting an error on one of them

Code:
local function event_handler(line, target)
    if mq.TLO.Zone.ShortName() ~= required_zone then return end
   
    if target == my_name then
         run_away()
    end

    end

1676249842245.png

Line 19 is the "local function event_handler(line, target)" part
 
its complaining about something before that line. post more of the code

This is all of it

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
 
Good morning!

Could a LEM wizard please write a LEM for Vulak'Aerr: Defensive Measures? Very willing to compensate for the time/effort.

Below is the best description of the steps I could find.

note: It's better to stand outside the aura to do the click and then enter because the achievement trigger is only when you enter the aura with the click effect from the gem active.

1. Fight Cargalia until they roar and a Frost Infused Velium Shard (blue gem) appears on your cursor. Spam fade/blur/invis and back off.

2. Walk to Malalafen and stand outside the aura. When aura appears, click the Frost Infused Velium Shard (blue gem) and step into the aura. An emote should inform you that the achievement updated.

3. Fight Malalafen until they roar and a Fire Infused Velium Shard (red gem) appears on your cursor. Spam fade/blur/invis and back off.

4. Walk to Cargalia and stand outside the aura. When aura appears, click the Fire Infused Velium Shard (red gem) and step into the aura. An emote should inform you that the achievement updated.

5. Fight Honvar until they roar and a Chaos Infused Velium Shard (yellow gem) appears on your cursor. Spam fade/blur/invis and back off.

6. Walk to Sivar and stand outside the aura. When aura appears, click the Chaos Infused Velium Shard (yellow gem) and step into the aura. An emote should inform you that the achievement updated.

7. Fight Sivar until they roar and a Lightning Infused Velium Shard (white gem) appears on your cursor. Be sure to kill the unmezzable gargoyle add (but not Sivar) because it will not despawn. Spam fade/blur/invis and back off.

8. Walk to Honvar and stand outside the aura. When aura appears, click the Lightning Infused Velium Shard (white gem) and step into the aura. An emote should inform you that the achievement updated.

V/r,
T
 
I 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.
 
I 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.
Cool, will try that now
 
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
 
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
This is not Lua but it worked for me.

https://www.redguides.com/community...strategies-boxing-old-raids.79197/post-537911
 
Release (Mighty) Lua Event Manager

Users who are viewing this thread

Back
Top
Cart