• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Question - Message System

Warl0ck45

Well-known member
I have been wanting to revamp my message system somewhat so instead of having 6-10 lines each place there is an announcement and making 1 for BC and one for non BC, I came up with a sub routine. After a few incarnation, and deciding I wanted to be flexible enough to colorize as needed at the call side, I came up with

Rich (BB code):
Sub AnnounceMessage(Channel, EventTotal, Color1, Event1, Color2, Event2, Color3, Event3, Color4, Event4, Color5, Event5,)
	/if (${Channel.Equal[BC]} && ${EventTotal.Equal[1]}) /BC [+${Color1}+] ${Event1}
	/if (${Channel.Equal[BC]} && ${EventTotal.Equal[2]}) /BC [+${Color1}+] ${Event1} [+${Color2}+] ${Event2}
	/if (${Channel.Equal[BC]} && ${EventTotal.Equal[3]}) /BC [+${Color1}+] ${Event1} [+${Color2}+] ${Event2} [+${Color3}+] ${Event3}
	/if (${Channel.Equal[BC]} && ${EventTotal.Equal[4]}) /BC [+${Color1}+] ${Event1} [+${Color2}+] ${Event2} [+${Color3}+] ${Event3} [+${Color4}+] ${Event4}
	/if (${Channel.Equal[BC]} && ${EventTotal.Equal[5]}) /BC [+${Color1}+] ${Event1} [+${Color2}+] ${Event2} [+${Color3}+] ${Event3} [+${Color4}+] ${Event4} ${Event5}
	/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[1]}) /${Channel} ${Event1}
	/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[2]}) /${Channel} ${Event1} ${Event2} 
	/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[3]}) /${Channel} ${Event1} ${Event2} ${Event3} 
	/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[4]}) /${Channel} ${Event1} ${Event2} ${Event3} ${Event4}
	/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[5]}) /${Channel} ${Event1} ${Event2} ${Event3} ${Event4} ${Event5}
	/return

which is clunky. Obviously have not had time to really test it yet, but thought while we were waiting I would toss this up here and see if someone has a more elegant way of doing this.

it ought to work like:

/call AnnounceMessage "${ChatChannel}" 3 r "no openings in" y "${TwistType} Twist list." r "Song NOT added"
no opening in Combat Twist list. Song NOT added

/if (${ReportFM}) /call AnnounceMessage "${ChatChannel}" 3 g "Mana at" t "${Me.PctMana" "GTG boss!"
Mana at 100 GTG boss!

/call AnnounceMessage "${ChatChannel}" 3 y "I don't have enough free space for this mod-rod" w "(or I'm not a caster)" r "so I'm destroying it."
I don't have enough free space for this mod-rod (or I'm not a caster) so I'm destroying it.

/call AnnounceMessage "${ChatChannel}" 1 y "Frantic Heal NOW!"
Frantic Heal NOW!

/if (${ReportHeals}) /call AnnounceMessage "${HealChannel}" 4 y "ACK!" t "${FranticHeal}" r "IS NOT CAST" y "because it is not ready!"
ACK! Fifteenth Emblem IS NOT CAST because it is not ready!

which would obviously look better with a black background... was something to do for a bit =P

- - - Updated - - -

And yeah! once I fixed the event/color order, worked out just fine. Now I can better color code messages in the future =)
 
Last edited:
Question - Message System

Users who are viewing this thread

Back
Top
Cart