• 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

MQ2ForwardChat - v1.1

daslackas

Member
Joined
Jan 18, 2006
RedCents
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Holy Crap!


Simple but Awesome!


very much appreciated. :drink
 
Re: MQ2ForwardChat

would be a good idea to use eqbcs or irc rather than an ingame channel.
 
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