• 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
Just following up on this topic because I have made a discovery: we cannot actually use Text Events to auto-recast a fizzled spell because the message "You begin casting XXXXXX" is only prompted when a spell is cast successfully, but NOT when it fizzles! Therefore, the value stored in the global variable LastSpellCast is NOT updated when the spell fizzles - instead, it keeps the value of the latest spell that had been successfully cast prior to the fizzle! The end result of that is that my code, upon a fizzle, attempts to recast the successful spell prior to the fizzle, not the spell that has actually fizzled.

See screenshot attached, where I was alternating (manually casting) Force Shield and Death Peace. You will observe at the top of the screenshot that Force Shield was successfully cast (and successfully stored in the global variable LastSpellCast). Right afterwards, I fizzled Death Peace a few times. Please note that there's no "You begin casting Death Peace" prompted in the screen, so the value of the global variable never updated from "Force Shield" to "Death Peace". The proof is that the print(LastSpellCast) command keeps printing on screen "[MQ2] Force Shield" even though I was indeed casting (fizzling) Death Peace.

So yeah: we cannot use Text Events to capture the value of LastCastSpell upon a fizzle.

Can you think of any alternative way?
 

Attachments

  • Screenshot-2024-03-29-090609.jpg
    Screenshot-2024-03-29-090609.jpg
    145.7 KB · Views: 0
Is there a command to turn off LEM that isn't listed in the commands section?

after raids it would be nice end only LEM, (not hide it).

/lem stop , /lem off, /lem end are not valid.
 
Wrong forum
im trying to post in the right spot, i got a warning last time, im sorry, the forums are a little confusing when posting to where for me, not to say yall did it wrong. so ive been using MQ level 2 for like a week and half now ish? tysm guys for the gifting. and im starting to break into ToV with my group. i am looking to do my own raids over on the Test Server. its a lot of studying... ive been looking at MQ2events, and Lua Event Manager, and its a little confusing to me. idk if there is resources to look at to see what others have set up for various stuff, im trying to learn the coding. i got Sics CoV 115 bard ini, and tweaked it with what my bard has and doesnt have. im starting to learn this stuff pretty well, its still confusing, but i can do a condition like this for a beastlord Growl of the Leopard spell for example ${Me.Song[Growl of the Leapord].ID}

i want to learn when something emotes like Avatar of War mission, my character that is called out will stop and duck.

And then id like to learn how to pause and move with Kissassist for one purpose, cause i use CWTN plugins, but on certain events u got to run away from ur crew, so Kissassist i cud prolly turn DPS off and make them run away, but with Heals still on they might heal? idk, but looking to see if someone could just help me break into this and understand this stuff if not its okay imma keep throwing myself at these and looking at some of the stuff i can find. sry im a nooobstteerrrr :P just trying to figure out which wud be easier to use, and start learning how to code the things, i learned the Conditions from looking at other peoples Kissassist and studying the Kissassist Wiki stuff to slowly and barely get a small understanding on that so far.
 
Each resource on RG has an Overview / Discussion Thread and either a link to their wiki or tabs with FAQ, Commands, Etc.
Please make sure to post in the respective discussion thread, and check the FAQ/Commands/Wiki for information before posting.

your thread title is "LEM - MQ2Events" so the lem question should go in lem discussion thread
 
Is there a command to turn off LEM that isn't listed in the commands section?

after raids it would be nice end only LEM, (not hide it).

/lem stop , /lem off, /lem end are not valid.
LEM should always be running IMHO, but if you want to turn on/off certain events, you can do that by:

For Text Events:
INI:
/lem event "NAME OF EVENT HERE"

For Condition Events:
INI:
/lem cond "NAME OF EVENT HERE"

Now if you want to do it for group for instance (using Dannet), you can do a:
For Text Events:
INI:
/dgga /lem event "NAME OF EVENT HERE"

For Condition Events:
INI:
/dgga /lem cond "NAME OF EVENT HERE"

I even setup hotkeys for this specifically in Buttonmaster on its own tab. So I can toggle events/conditions at whim and never have to stop LEM from running.
 
idk if there is resources to look at to see what others have set up for various stuff
There are a few options here. With mq2events you can search in the top right corner for mq2events and there are 2 that pop up right away - One - Main Thread and Two - some more event files

In general I think of event files and mq2events being used primarily in the ToV era nd being to fizzle into ToL. I have seen a few for ToL, but that is about when Lua/lem became more prevalent (again, my opinion).

Lem also seems to have 2 main threads - Main thread where where some folks have posted up their lems and The Library where you will find quite a bit more of them.

i want to learn when something emotes like Avatar of War mission, my character that is called out will stop and duck.
There are several of these available in both Lua and mq2events that work. My suggestion, watch the overview tab of lem (above as main thread) and then install if from the launcher. I would try to use Lua/lem as much as possible assuming you plan to advance past ToV =)

And then id like to learn how to pause and move with Kissassist for one purpose, cause i use CWTN plugins, but on certain events u got to run away from ur crew, so Kissassist i cud prolly turn DPS off and make them run away,
Lots of options here. /cwtn pause on for cwtn plugins.../mqp on/off for KA or even better, use mq2boxr. /boxr pause or unpause. This will do all forms of automation other than RGMercs Lua I believe.

Take a look at a few of the Lua's in the event library and the thread itself. I see a few in the lem library that AQ1 wrote that should work. Take a look at it and see if you can get more familiar with what the script is doing. Don't forget you can go into the instance (so you are solo), enable the event in lem and then /ooc the emote to see how your toons react and tweak from there.

Don't be afraid to experiment and if you have some additional questions, feel free to post em or DM me. I'm happy to help with what knowledge I have.
 
Each resource on RG has an Overview / Discussion Thread and either a link to their wiki or tabs with FAQ, Commands, Etc.
Please make sure to post in the respective discussion thread, and check the FAQ/Commands/Wiki for information before posting.

your thread title is "LEM - MQ2Events" so the lem question should go in lem discussion thread
gotcha boss. im getting better at all this, thanks to you guys and others! i feel like ive been on Redguides and Macroquest.org more than ive been playing eq! lol
 
Can I get some help with this trigger I am trying to get to work...

[CODE title="Emote"]#*#Illandrin seeds hatred into #1#. This causes a compensatory love to form in #2#.#*# [/CODE]

[CODE lang="Lua" title="String"]cmV0dXJuIHsKIFsibG9hZCJdID0gewogIFsiY2xhc3MiXSA9ICIiLAogIFsiYWx3YXlzIl0gPSBmYWxzZSwKICBbInpvbmUiXSA9ICIiLAogfSwKIFsidHlwZSJdID0gImV2ZW50cyIsCiBbImNhdGVnb3J5Il0gPSAiTFMiLAogWyJzaW5nbGVjb21tYW5kIl0gPSBmYWxzZSwKIFsicGF0dGVybiJdID0gIiMqI0lsbGFuZHJpbiBzZWVkcyBoYXRyZWQgaW50byAjMSMuIFRoaXMgY2F1c2VzIGEgY29tcGVuc2F0b3J5IGxvdmUgdG8gZm9ybSBpbiAjMiMuIyojICIsCiBbImNvZGUiXSA9ICJiRzlqWVd3Z2JYRWdQU0J5WlhGMWFYSmxLQ2R0Y1N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off')
else
mq.cmdf('/%s mode manual', my_class)
end
mq.cmd('/target clear')
mq.cmd('/attack off')
mq.delay(10)
end

local function classon()
if my_class == "BRD" then
mq.cmd('/multiline ; /mqp off ; /timed 5 /twist on')
else
mq.cmdf('/%s mode chase', my_class)
end
end
local function event_handler(line, name1, name2)
if mq.TLO.Zone.ID() == 865 then
if string.find(name1, mq.TLO.Me.CleanName()) then
classoff()
mq.cmd('/nav locxyz -2517.30 967.89 -1.63')
mq.delay('20s')
classon()
elseif string.find(name2, mq.TLO.Me.CleanName()) then
classoff()
mq.cmd('/nav locxyz -2517.30 967.89 -1.63')
mq.delay('20s')
classon()
end
end
end
return { eventfunc = event_handler }[/CODE]




Nothing happens when the emote goes off in raid. The toons do not move at all. I have used the same code on a few other move to on emotes and they work. I also would like to add a Berserker Check to remove Frenzied Resolve Discipline if it is running.
 
Can I get some help with this trigger I am trying to get to work...

[CODE title="Emote"]#*#Illandrin seeds hatred into #1#. This causes a compensatory love to form in #2#.#*# [/CODE]

[CODE lang="lua" title="String"]cmV0dXJuIHsKIFsibG9hZCJdID0gewogIFsiY2xhc3MiXSA9ICIiLAogIFsiYWx3YXlzIl0gPSBmYWxzZSwKICBbInpvbmUiXSA9ICIiLAogfSwKIFsidHlwZSJdID0gImV2ZW50cyIsCiBbImNhdGVnb3J5Il0gPSAiTFMiLAogWyJzaW5nbGVjb21tYW5kIl0gPSBmYWxzZSwKIFsicGF0dGVybiJdID0gIiMqI0lsbGFuZHJpbiBzZWVkcyBoYXRyZWQgaW50byAjMSMuIFRoaXMgY2F1c2VzIGEgY29tcGVuc2F0b3J5IGxvdmUgdG8gZm9ybSBpbiAjMiMuIyojICIsCiBbImNvZGUiXSA9ICJiRzlqWVd3Z2JYRWdQU0J5WlhGMWFYSmxLQ2R0Y1NjcENncHNiMk5oYkNCdGVWOWpiR0Z6Y3lBOUlHMXhMbFJNVHk1TlpTNURiR0Z6Y3k1VGFHOXlkRTVoYldVb0tRb0tDbXh2WTJGc0lHWjFib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VVURTh1VFdVdVEyeGxZVzVPWVcxbEtDa3BJSFJvWlc0S0lDQWdJQ0FnSUNBZ0lDQWdZMnhoYzNOdlptWW9LUW9nSUNBZ0lDQWdJQ0FnSUNCdGNTNWpiV1FvSnk5dVlYWWdiRzlqZUhsNklDMHlOVEUzTGpNd0lEazJOeTQ0T1NBdE1TNDJNeWNwQ2lBZ0lDQWdJQ0FnSUNBZ0lHMXhMbVJsYkdGNUtDY3lNSE1uS1FvZ0lDQWdJQ0FnSUNBZ0lDQmpiR0Z6YzI5dUtDa0tJQ0FnSUNBZ0lDQmxiSE5sYVdZZ2MzUnlhVzVuTG1acGJtUW9ibUZ0WlRJc0lHMXhMbFJNVHk1TlpTNURiR1ZoYms1aGJXVW9LU2tnZEdobGJnb2dJQ0FnSUNBZ0lDQWdJQ0JqYkdGemMyOW1aaWdwQ2lBZ0lDQWdJQ0FnSUNBZ0lHMXhMbU50WkNnbkwyNWhkaUJzYjJONGVYb2dMVEkxTVRjdU16QWdPVFkzTGpnNUlDMHhMall6SnlrS0lDQWdJQ0FnSUNBZ0lDQWdiWEV1WkdWc1lYa29Kekl3Y3ljcENpQWdJQ0FnSUNBZ0lDQWdJR05zWVhOemIyNG9LUW9nSUNBZ0lDQWdJR1Z1WkFvZ0lDQWdaVzVrQ21WdVpBcHlaWFIxY200Z2V5QmxkbVZ1ZEdaMWJtTWdQU0JsZG1WdWRGOW9ZVzVrYkdWeUlIMD0iLAogWyJuYW1lIl0gPSAiVEZSYWlkX0xvdmVIYXRlUnVuIiwKIFsiY29tbWFuZCJdID0gIiIsCn0=[/CODE]

[CODE lang="lua" title="Code"]local mq = require('mq')

local my_class = mq.TLO.Me.Class.ShortName()


local function classoff()
if my_class == "BRD" then
mq.cmd('/multiline ; /mqp on ; /timed 5 /twist off')
else
mq.cmdf('/%s mode manual', my_class)
end
mq.cmd('/target clear')
mq.cmd('/attack off')
mq.delay(10)
end

local function classon()
if my_class == "BRD" then
mq.cmd('/multiline ; /mqp off ; /timed 5 /twist on')
else
mq.cmdf('/%s mode chase', my_class)
else
if my_class == 'BER' and mq.TLO.Me.ActiveDisc.Name() == mq.TLO.Spell('Frenzied Resolve Discipline').RankName() then
mq.cmd('/stopdisc')
end
end
local function event_handler(line, name1, name2)
if mq.TLO.Zone.ID() == 865 then
if string.find(name1, mq.TLO.Me.CleanName()) then
classoff()
mq.cmd('/nav locxyz -2517.30 967.89 -1.63')
mq.delay('20s')
classon()
elseif string.find(name2, mq.TLO.Me.CleanName()) then
classoff()
mq.cmd('/nav locxyz -2517.30 967.89 -1.63')
mq.delay('20s')
classon()
end
end
end
return { eventfunc = event_handler }[/CODE]




Nothing happens when the emote goes off in raid. The toons do not move at all. I have used the same code on a few other move to on emotes and they work.
I looked over my logs and if it's just the trigger, did you try an extra space between the word "into" and the first tooname called? My logs show below. Not in game atm to double check, but would the space cause it?

[Sun Apr 14 16:40:49 2024] Illandrin seeds hatred into<2 spaces here>Toonname. This causes a compensatory love to form in Tooname.
 
I also would like to add a Berserker Check
this is how I handle the berserker check.
Code:
if me_class == 'BER' and mq.TLO.Me.ActiveDisc.Name() ~= nil then
      if mq.TLO.Me.ActiveDisc.Name():find('Frenzied Resolve Discipline') then
        mq.cmd('/stopdisc')
      end
    end

though, there is overall an easier way to handle this Love/Hate event. We just put everyone on Usemelee, and then MT just rotates the boss anytime the emote fires. We have 100% success every time.
 
Sometime when I do a reload>>>reload settings, the LEM stop working. I think its restarting before it its done, might need some delay there.

Error message.

Lua Script lem is already running, not starting another instance. Ending Lua script "lem"
 
I noticed after testing that I will have a concurrency(?) problem if a mob emotes multiple times at different characters within a second or two.

If a mob shouts:

Wally is diseased ( fake names )
Princess is diseased
Eric is diseased
Rufus is diseased

And my LEM Text Event looks like:

[CODE lang="Lua" title="Trigger pattern - #*##1# is diseased#*#"]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(line, name)

mq.cmdf('/tell drivertoon Starting cure on %s', name)
mq.cmd('/mqp on')
mq.delay(300)
mq.cmd('/stopcast')
mq.delay(500)
mq.cmdf('/target %s',name)
mq.delay(700)
mq.cmd('/cast 2')
mq.delay(3000)
mq.cmd('/mqp off')
mq.cmdf('/tell drivertoon Ending cure on %s', name)

end

return {onload=on_load, eventfunc=event_handler}[/CODE]

The resulting tell window looks something like

Starting cure on Wally
Starting cure on Princess
Starting cure on Eric
Ending cure on Wally
Starting cure on Rufus
Ending cure on Princess
Ending cure on Eric
Ending cure on Rufus

This means some or all toons will likely never get cured because subsequent Text Events will interrupt their Lua process.

Is there a way to avoid this when using LEM to run a Text Event?
 
1719619868327.png

I get this when I try to reload from the source on an LEM. Does anyone else get this error?
 
A feature request - It would be nice if the Categories would auto create from an import. I'm making events/conditions for my raid, and categorize them before I export. If the others in raid make the same categories, the event lands in the appropriate category, but if the target doesn't have, it just lands in no category.
 
And a Lua question. I'm using the below to trigger an individual cure, based on receiving a tell from someone in the raid. Raid has a mix of MuleAssist, KissAssist, and CWTN plugins.

[CODE lang="Lua" title="Cure tell"]local mq = require('mq')

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

-- Cure spell to use, including Rk
local cure_spell = 'Unblemished Blood Rk. II'

local function cast_cure()
local target = mq.TLO.MacroQuest.LastTell()
local my_class = mq.TLO.Me.Class.ShortName()
-- pause all the things
mq.cmdf('/%s mode 0', my_class)
mq.cmd('/mqp on')
mq.cmd('/twist off')
mq.cmd('/timed 5 /afollow off')
mq.cmd('/nav stop')
mq.cmd('/target clear')
-- target and cast
mq.cmdf('/tar %s',target)
mq.delay(500)
mq.cmdf('/casting "%s"', cure_spell)
mq.delay(2500)
-- resume all the things
mq.cmdf('/timed 50 /%s mode 2', my_class)
mq.cmd('/timed 50 /mqp off')
mq.cmd('/timed 50 /twist on')
end

local function event_handler(line, target)
cast_cure()
end

return {eventfunc=event_handler}[/CODE]

So this pauses the curer, targets the toon that sent the tell, then waits a few, restarts automation, but never casts the cure spell. Spell is memorized in a slot that does not swap out. I had it working for a bit, I thought, but when we tried to use on raid it just won't cast.
 
I don't believe so, but you might want to use the reload option in LEM after you save your work in vscode so it can register the changes.
 
Not sure what I am doing wrong, and not very tech savvy.
I have watched and downloaded into Lua folder. Type /Lua run lem, then get "loop or previous error loading module "mq" stack traceback. c: in function "require"....ta\local\veryvanilla\macroquest\release\ . ending Lua script "lem" PID41 and staus 2.

any help would be appreciated.
 
Not sure what I am doing wrong, and not very tech savvy.
I have watched and downloaded into LUA folder. Type /lua run lem, then get "loop or previous error loading module "mq" stack traceback. c: in function "require"....ta\local\veryvanilla\macroquest\release\ . ending lua script "lem" PID41 and staus 2.

any help would be appreciated.
Did you watch the overview page.
Then open the RGlauncher and refresh LUAs.
Then install from that tab?
 
Did you watch the overview page.
Then open the RGlauncher and refresh LUAs.
Then install from that tab?
I did yes, it shows up in Lua section of RG launcher. Can't get Lua manager to show up at all
 
Okay. Showing up in the RG launcher is the first part. Did you click install and the red text turn green?
yeah it all looks good in RG launcher. I then type /Lua run lem and get the previously stated error message. "Loop or Previous Error loading Module "MQ" Stack Traceback
 
yeah it all looks good in RG launcher. I then type /lua run lem and get the previously stated error message. "Loop or Previous Error loading Module "MQ" Stack Traceback
This is going a little beyond what I know. If you have never run it previously and installed it properly it shouldn't be giving you an error.

Does your directory where you LUAs are look similar to this:

1724560051735.png

When you're sending the command /Lua run lem, you are calling that init file.

My next suggestion, while it may seem redundant, it to make sure we are on the same page (as your setup could be atypical):

- Run MQ from the RGLauncher (making sure no other MQ instances are running).
- Go to the task menu and open the Macroquest Root Folder
1724560368343.png
-Navigate to the Lua folder in that Window
-Delete the LEM folder.
-Go to the RGLauncher and click reinstall next to the LEM entry
-Go in game and try to run LEM.
-Take a screen shot if it errors again
-Hide any character names and post it on here.


These steps were to ensure that you were working with the MQ installation tied to your RGlauncher (in case you had multiple installations), delete the bad download/install and reinstall. Beyond this posting the error, will need help from someone more experienced on here.
 
yeah it all looks good in RG launcher. I then type /lua run lem and get the previously stated error message. "Loop or Previous Error loading Module "MQ" Stack Traceback
That sounds like you probably have some event written which is causing a circular dependency somewhere. Do you have any that you created already or brand new to using LEM?
 
Found a possible bug that was self induced, and I'm unsure how to proceed.

When trying to organize lems, if you have two "same name" type categories, any lem assigned will find its way into any occurrence of that category, then it cannot be removed.

To better explain, my LEM categorization was by expansion/raids, and then i wanted to add group lems for different zones/raids. It's admittedly haphazard. So I had a category named "ToL Raiding" with sub categories for different zones. No problems. Added a "NoS" Category, which had two sub categories, Raids, and Group, as I had different lems for each, but i didn't add a zone/event sub category there, so all raid lems were under "Raids". Created a LS category, created a "Raids" sub category for LS, and suddenly all of my NoS LEMs are there and in NOS.

Hopefully it doesn't involve wiping LEM and starting over. I realize the issue is because the nameplate is the same and it isn't differentiating between them. I had thought it would and that it wouldn't be an issue. but it is, seemingly. Not sure how to proceed.
 
Release (Mighty) Lua Event Manager

Users who are viewing this thread

Back
Top
Cart