• 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

MQ2ForwardChat - v1.1

daslackas

Member
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Version v1.1 Changes:
It is now possible to have "unlimited" forwardings at a time. If you want to add a new forwarding, just use "/forwardchat [Pattern] [Command]" again and the new forwarding will be added to the list.
There are some new commands now:

/forwardchat list - Lists all currently running forwardings with an index number wich is used to stop a specific forwarding.

/forwardchat remove [all | #ForwardingNumber] - Removes all running forwardings or the specific forwarding. Remember that as soon as you remove a forwarding, the indexes of the other forwardings might change.

/forwardchat stop - stops the forwardings until you type /forwardchat start again, the forwardings wont be removed like that.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I wasn't sure if something like this existed yet, and i was in the mood to program something, so i just started without searching through the forums ;). The idea was to forward a message from a channel to another channel. For example, forward the guildchat of one guy to my bot via tells, because he isn't tagged.

Syntax:
/forwardchat [Pattern] [Command]
Starts the forwarding of the entire Line where [Pattern] was found, and does the [Command] followed by the Line.

Example:
/forwardchat "tells the guild," "/tell Mybot"
Now if theres an incomming message like:

Someone tells the guild, 'Something'

The following command will be made:
/tell Mybot [ Someone tells the guild, 'Something' ]

If you want to forward a channel which has a lot of activity (many messages in a short time) to a person via Tells, use
/forwardchat "tells the guild," ";tell Mybot" instead of /tell Mybot.

Be careful when using it with public channels like ooc or so ;)


The code might not be the best, but its working well till now. Perhaps someone finds a better way to manage the infinite loop that happens when sending out the message (i stored the last line sent in szLastLine). The initialisation of szLastLine is also not too nice hehe, because i tried initializing it with {0} but the find function finds the \0 at the end of szLine. So for now i just initialized it with some random characters (yes it looks ugly)...

Im open for any ideas :)

daslackas
 
Last edited:
Re: MQ2ForwardChat

Is there anyway for it to take for example group and raid say and forward it to someone? Or is it only 1 type of txt?
 
Re: MQ2ForwardChat

If your bot is missing some tells due to messages coming to /gu faster than the tell timer refreshes, you can use ;tell mybot instead. This removes the required time delay between tells. Its the same thing I use in my spammer mac for sending 200 tells per second of "you sense your doom approaching" to make people shit their pants when their audio trigger goes off.
 
Re: MQ2ForwardChat

Whytfang:
Is there anyway for it to take for example group and raid say and forward it to someone? Or is it only 1 type of txt?

My old reply is obsolete now, it is now possible to do that!
 
Last edited:
Re: MQ2ForwardChat

Grog:
would be a good idea to use eqbcs or irc rather than an ingame channel.

If you want to send incomming messages to an irc channel you use the plugin MQ2IRC.

MQ2IRC has following commands (perhaps even more but those are needed), copied from Turk Reno's 09/06/06 - v2.6.x MacroQuest2 PreCompile:
/iconnect irc.redguides.com 6667 #redguides <username>
/i say <message> (to talk in channel)

So if you want to use MQ2ForwardChat with MQ2IRC you do:
/forwardchat "tells the guild," "/i say"

That should forward all guildmessages to the irc channel you are currently in.

I haven't tested it, but it should work like that. :)
 
MQ2ForwardChat - v1.1

Users who are viewing this thread

Back
Top
Cart