Trying To Determine My Target's Buffs

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

Moderator: MacroQuest Developers

sianyde
decaying skeleton
decaying skeleton
Posts: 8
Joined: Wed Jun 23, 2004 4:21 pm

Trying To Determine My Target's Buffs

Post by sianyde » Wed Jun 23, 2004 4:29 pm

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?

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Wed Jun 23, 2004 9:23 pm

That info is only sent to the client when using the inspectbuff leadership ability.

sianyde
decaying skeleton
decaying skeleton
Posts: 8
Joined: Wed Jun 23, 2004 4:21 pm

Post by sianyde » Wed Jun 23, 2004 10:09 pm

So would it be better then, to just use a timer for each buff, reapplying it as it wears off?

dok
a ghoul
a ghoul
Posts: 127
Joined: Mon Mar 15, 2004 3:38 pm

Post by dok » Thu Jun 24, 2004 1:46 am

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 ;)

Midnight
a lesser mummy
a lesser mummy
Posts: 68
Joined: Wed Nov 12, 2003 12:51 pm

Post by Midnight » Fri Jun 25, 2004 8:26 am

Dang.. I haven't heard the buff name 'Courage' for like 5 years.

sianyde
decaying skeleton
decaying skeleton
Posts: 8
Joined: Wed Jun 23, 2004 4:21 pm

Post by sianyde » Sat Jun 26, 2004 9:55 pm

Midnight wrote:Dang.. I haven't heard the buff name 'Courage' for like 5 years.
Well, they don't start at level 65... yet... =)