Question about matching 1 word in a sentence (event_chat)

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Frank25
a ghoul
a ghoul
Posts: 136
Joined: Thu Aug 12, 2004 6:38 am

Question about matching 1 word in a sentence (event_chat)

Post by Frank25 » Sun Feb 27, 2005 7:08 pm

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.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sun Feb 27, 2005 7:10 pm

The trick is to not use the default chat event. Those events are pretty much obsolete ever since Blech was implemented.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

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

Post by Goofmester1 » Sun Feb 27, 2005 7:47 pm

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


dedpoet
a hill giant
a hill giant
Posts: 247
Joined: Sat Aug 14, 2004 12:22 pm

Post by dedpoet » Mon Feb 28, 2005 9:55 pm

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.

Frank25
a ghoul
a ghoul
Posts: 136
Joined: Thu Aug 12, 2004 6:38 am

Post by Frank25 » Tue Mar 01, 2005 5:26 pm

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.

xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 3:23 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 3:24 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 3:26 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 3:27 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 4:04 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 4:05 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 4:06 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 4:07 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 4:08 am


xyilla
naggy
naggy
Posts: 32541
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Thu Apr 17, 2025 4:09 am