Page 1 of 6

Question about matching 1 word in a sentence (event_chat)

Posted: Sun Feb 27, 2005 7:08 pm
by Frank25
Hi, i've been modifying my afcleric mac to be a lil more..personal :P
Anyhow on raids my cleric gets tons of tells for buffs and i have to do them manually because i dont want people knowing i run MQ2 (and i swear, no one does :P)..

Anyhow, when they ask for buffs i dont want them to ask for just "v" or "sym" because that would give it away.

I want the program to respond to anyting that has "virtue" "conv" "sym" "bali" in it since those are allways use in reference to balikor/conviction etc.

atm it works like this:

Code: Select all

  /if (${ChatText.Equal[bali]})  /call Cast "${singlesymbuff}" gem5 7s
It only responds to "bali". how can i get it to respond to things like
"could i get bali?" / "balikor please" / "you bitch, buff me with bali finally!"
etc

I know for events you can use things like #*# and #1# but if i use those in the [ brackets] for bali they dont work..
I'm pretty new at actually "writing" c++ stuff hence i starrted on modifying a great macro...
Any help would be appreciated.

Posted: Sun Feb 27, 2005 7:10 pm
by Lax
The trick is to not use the default chat event. Those events are pretty much obsolete ever since Blech was implemented.

Re: Question about matching 1 word in a sentence (event_chat

Posted: Sun Feb 27, 2005 7:47 pm
by Goofmester1
Frank25 wrote:
atm it works like this:

Code: Select all

  /if (${ChatText.Equal[bali]})  /call Cast "${singlesymbuff}" gem5 7s

change to /if (${ChatText.Find[bali]})  /call Cast "${singlesymbuff}" gem5 7s


Posted: Mon Feb 28, 2005 9:55 pm
by dedpoet
Have a look at this macro. It's written to take common things people ask for and uses an INI for buff control. I use it on my shaman bot on raids and with a few of my own additions, it catches 60-70% of my buff requests and beeps when it doesn't know what someone is asking for. It really cut down my workload for rebuffs.

Posted: Tue Mar 01, 2005 5:26 pm
by Frank25
thanks for all the tips.
The caht Find works, the problem i'm h aving now is more afcleric related in that if it starts buffing someone and the tank is getting hit it switches targets to tank and buffs him :P

But i'll figure that out yet heh

Learned a lot from these answers, thanks.

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 3:23 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 3:24 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 3:26 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 3:27 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 4:04 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 4:05 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 4:06 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 4:07 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 4:08 am
by xyilla

Re: Question about matching 1 word in a sentence (event_chat)

Posted: Thu Apr 17, 2025 4:09 am
by xyilla