Post
by Gatts » Sat Jun 29, 2002 10:15 pm
Yet another idea.
I was looking over your source code (Hoping I could add this idea myself) and It looks pretty easy to do.
Add a way for players to add there own event triggers. Frankly there are a TON of things that a player may want to look for and run a macro on, so it makes sense to add a way to do it. Otherwise your going to end up with 100+ EVENT statements if you want to make everyone happy.
A couple of ideas:
/addevent [Trigger_Text] [Subroutine to Call]
Looks like you might need to be declare at the top, the way you parse the file, or you can scan the whole macro first and get the pBlock for the matching text. (I may be reading this right) Then just keep a list of the added events to check through on CChatHook and add to the event queue.
The other idea is just add some sort of EVENT_GENERIC that just graps everything and you can parse it like you do EVENT_CHAT. The problem with this, (I'm guessing) is that you will generate a TON of events and its probably pretty easy to overflow. So you may have to edit out certain spammy lines. All attacks, Bard songs, (but not their interrupts and missed notes please:), hungry msgs, etc.
Anyway more food for thought. Thanks for a great program
Gatts