Page 1 of 1

Trying To Determine My Target's Buffs

Posted: Wed Jun 23, 2004 4:29 pm
by sianyde
I am working on my first macro, a simple cleric bot for multiboxing on my EQEmu server.

I am trying to determine whether each of my group members has the 'Courage' buff.

I am using the following lines of code:

Code: Select all

/for Ctr 1 to ${Group}
		/if (${Me.CurrentMana}<10) /return
		/stand 
		/target ${Group[${Ctr}]}
		        {insert /if clause and cast command here}
/next Ctr
My problem is that a Group member is a spawn type. I would like to use the Character.Buff[Name] member, but I can't, because I am targeting a spawn, which doesn't have a member like that.

Is there some way to convert or create a character variable using the name of the target, so that I can see if the target has the pertinent buff?

Posted: Wed Jun 23, 2004 9:23 pm
by magictiger
That info is only sent to the client when using the inspectbuff leadership ability.

Posted: Wed Jun 23, 2004 10:09 pm
by sianyde
So would it be better then, to just use a timer for each buff, reapplying it as it wears off?

Posted: Thu Jun 24, 2004 1:46 am
by dok
ya. that way seems to work the most reliably. sucks if you need to restart the macro for some reason, but unless you store buffs in an ini file, you just have to deal with it.

One thing I did to kinda help with buffs is I setup my cleric bot to announce if any of its buffs has under 5 min left on it. Sure, you get a few false positives with dots and duration heals, but who can remember to rebuff the self only buff and such all the time ;)

Posted: Fri Jun 25, 2004 8:26 am
by Midnight
Dang.. I haven't heard the buff name 'Courage' for like 5 years.

Posted: Sat Jun 26, 2004 9:55 pm
by sianyde
Midnight wrote:Dang.. I haven't heard the buff name 'Courage' for like 5 years.
Well, they don't start at level 65... yet... =)