• 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
I'm writing something for the sacrificial banner part of the Icebound Avatar raid, and I want a specific group of toons (by name) to click the banner. Is it possible to code a list into a variable?

[CODE lang="Lua" title="Variable List"]local sac_lamb = ['Toon1, Toon2, Toon3, Toon4'][/CODE]

And then I could call the sac_lamb(0), sac_lamb(1), etc?
 
What if i wanted something simple. Like my cleric in a cheal chain.

When the prior person says the key phrase for example:

[5] <Character Name> Cast now! [5]

My character would press his #4 button on his hotbar (ie if i was playing him i would just hit 4 on the keyboard)
 
What if i wanted something simple. Like my cleric in a cheal chain.

When the prior person says the key phrase for example:

[5] <Character Name> Cast now! [5]

My character would press his #4 button on his hotbar (ie if i was playing him i would just hit 4 on the keyboard)
Making several assumptions here:
1) Everyone else in the CH chain is being driven by someone else
2) You don't want a timer configured - you just want to cast in reaction to them telling you to cast
3) You're NOT running some type of automation that needs to be paused
4) You already have the correct tank targeted

Note: This is 100% untested and there's way better things with more checks you could do, but super simple:

You'd create a new lem event with the trigger #*# Cast now!#*#

Lua:
local mq=require('mq')

local function event_handler(line)
    if string.find(line, mq.TLO.Me.CleanName()) then
        mq.cmd('/stopcast')
        mq.delay(300)
        mq.cmd('/cast complete heal')
    end
end

return {eventfunc=event_handler}
 
Couple questions. I am new to the coding as above. Is there a "How to for dummies" for creating the lem event?

I also see it is casting the complete heal. Which gets the job basically done. However i wanted it to fire the macro that is on button 4. Which is the following: *edited it to remove names of fellow clerics :)

If we cant have it press the button for the macro i am okay with having the lem event fire off the necessary commands to mimic the macro
 

Attachments

  • Screenshot 2026-03-19 082905.png
    Screenshot 2026-03-19 082905.png
    163.9 KB · Views: 0
  • Screenshot 2026-03-19 083153.png
    Screenshot 2026-03-19 083153.png
    164.9 KB · Views: 0
Couple questions. I am new to the coding as above. Is there a "How to for dummies" for creating the lem event?

I also see it is casting the complete heal. Which gets the job basically done. However i wanted it to fire the macro that is on button 4. Which is the following: *edited it to remove names of fellow clerics :)

If we cant have it press the button for the macro i am okay with having the lem event fire off the necessary commands to mimic the macro
Double check, but I think you could mq.cmd('/keypress button 4').

Alternatively, just move everything into the event.

Lua:
local mq=require('mq')

local function event_handler(line)
    if string.find(line, mq.TLO.Me.CleanName()) then
        mq.cmd('/stopcast')
        mq.delay(300)
        mq.cmd('/cast complete heal')
        mq.cmd('/rsay Casting Complete heal on %s', mq.TLO.Target.CleanName())
        mq.delay(4000)
        mq.cmd('/rs Your turn cleric dude.')
    end
end

return {eventfunc=event_handler}
 
Release (Mighty) Lua Event Manager

Users who are viewing this thread

Back
Top
Cart