Just to toss this out there incase it is easier to work with. (that and I am intrigued =P)
http://www.macroquest2.com/wiki/index.php/Pound_Commands#.23chat
#chat
#chat channelname
This is a special type of #event which watches the specified channelname. Content from the channelname is accessed by creating a Sub Event_Chat.
Valid channels are: auc, chat, guild, group, ooc, say, shout, and tell. (chat represents channels)
Only one channel may be used on the #chat line, however multiple lines may be added. Example:
#chat guild
#chat group
Sub Event_Chat(ChatChannel,ChatSender,ChatText)
/echo ${ChatSender} told me ${ChatText} in ${ChatChannel}
/return
This would trigger Event_Chat for both guild and group chat.
http://www.macroquest2.com/wiki/index.php/Custom_Events#.23chat_Special_event
The #chat command is a special custom event. It will always pass the channel, sender and text to the Sub Event_Chat subroutine. So your Sub Event_Chat should look something like this:
Sub Event_Chat(ChatChannel,ChatSender,ChatText)
/echo ${ChatSender} told me ${ChatText} in ${ChatChannel}
/return
Variable names can be anything you choose.
This can give you options to set up a sub that checks for various chat messages. Some examples from RD are
Rich (BB code):
Sub Event_Chat(ChatType,Sender,ChatText)
/if (${ChatText.Find[break]}) /call BreakInvis
/if (${ChatText.Find[create a campfire]}) /call CreateCampfire
/if (${ChatText.Find[go to trader]}) /call Trader
/if (${MasterList.Find[${Sender}]}) {
/if (${ChatText.Find[portto]} && ${DoPorts} && ${Select[${Me.Class.ShortName},DRU,WIZ]}) {
/call PortUs ${ChatText.Arg[2]}
/return
}
Since the chat event is already part of MQ and is there, might as well utilize it.
Then you can use it's set up to trigger sub events, or put the sub sections directly into the chat sub. This ought to make it easier to expand into using other keyword phrases to trigger other subs, instead of making separate event entries per keyword.
The ${ChatText.Arg[#]} = the argument (word) that is # number of places over... for instance in the Portto line you would say "/bc portto succor" and ${ChatText.Arg[2]} would be "succor" in the call.
Anyways from there you ought to be able to make some sort of entry like
Rich (BB code):
/if (${ChatText.Find[invite me dude]}) /call InviteFriends ${Sender}
then a sub that looks something like
Rich (BB code):
Sub InviteFriends(Friend)
/if (${Me.Class.ShortName.NotEqual[BRD]}) /twist off
/if (${Me.Casting.ID}) /delay 10s !${Me.Casting.ID}
/invite ${Friend}
/return
the checks are because you cant send invites while casting.
Anyways, this kind of set up gives you a lot of utility in how you want something to work. Want your guy to "listen" in multiple chats, but only respond to tells on certain entries? then:
Rich (BB code):
/if (${ChatType.Equal[tell]} && ${ChatText.Find[invite me dude]}) /call InviteFriends ${Sender}
Thus a sort of end result type thing that may work for Jax would be something like:
Rich (BB code):
#chat tell
.....
Sub Event_Chat(ChatChannel,ChatSender,ChatText)
/if (${ChatType.Equal[tell]} && ${ChatText.Find[invite me dude]}) /call InviteFriends ${ChatSender}
/return
Sub InviteFriends(Friend)
/if (${Me.Class.ShortName.NotEqual[BRD]}) /twist off
/if (${Me.Casting.ID}) /delay 10s !${Me.Casting.ID}
/echo ${person} wants inviting
/if (${Group} < 5) {
/invite ${Friend}
} else {
/tell ${person} Group full up
}
/return
Untested at this point (sorry, kids are visiting) (shamelessly stole from Incog, nice check on the group)
You can of course change the keyword to whatever (${ChatText.Find[Supercalifragilisticexpialidocious]})
Now for the list... that would be a whole other endeaver.
Sorry if this is off base, I tend to get excited when exploring things. I have been adding to chat in RD on and off (as well as others) and find it useful.