• 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

Question - Multiple name calls out during the event.

Overtimer

Seasoned veteran member
Joined
May 8, 2021
RedCents
748¢
Is it possible to single out one name during a multiple call-out, for an LEM event?

Single-name call-out is simple.

Badman calls out you John.

#*#Badman calls out you #1#.#*#

local function event_handler(line, name)
if name == mq.TLO.Me.CleanName() then


What if Badman calls out you John, John2, john3.



What would the code look like? I spent time looking for something like this and couldn't find it.


Answer:

local function event_handler(line, names)
if string.find(names, mq.TLO.Me.CleanName()) then
 
Last edited:
you could either add #2# #3#
or just use string functions on the line and get the names that way.


#*#Badman calls out you #1#, #2#, #3#.#*#

local function event_handler(line, name1, name2, name3)
if name == mq.TLO.Me.CleanName() then
 
Hmm, I did that and I couldn't get the second name. I need to log in and try again.
Maybe I missed something, my eyesight sucks these days.

Thank you.
 
Some emotes have a varying number of names
[CODE title="Lua"]if string.find(listOfNames, mq.TLO.Me.CleanName()) then[/CODE]
 
Question - Multiple name calls out during the event.

Users who are viewing this thread

Back
Top
Cart