command for pet buff check

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

Moderator: MacroQuest Developers

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Sun Jun 13, 2004 12:13 pm

Code: Select all

PetHaste=3,570,770,255,255,255,${If[${Pet.Buff["Sha's Ferocity"].ID}<=0,Pet Not Hasted,Pet Hasted]}
Will always return Pet Not Hasted

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Sun Jun 13, 2004 2:49 pm

Try:

Code: Select all

PetHaste=3,570,770,255,255,255,${If[${Pet.Buff["Sha[color=red]`[/color]s Ferocity"].ID}<=0,Pet Not Hasted,Pet Hasted]}
i.e. using ` instead of '

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Sat Jun 19, 2004 1:47 am

Nope :?

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Sat Jun 19, 2004 2:05 am

*EDIT for like the 3rd time*

Blah! Damn typo.

Figured it out:

Code: Select all

PetHaste=3,570,770,255,255,255,${If[${Me.PetBuff["Sha's Ferocity"]}>=1,Pet Hasted,Pet Not Hasted]}
w00t

*Nother edit*

This also useful:

Code: Select all

PetHaste=3,570,770,255,255,255,${If[${Me.Pet.ID}>0,${If[${Me.PetBuff["Sha's Ferocity"]}>=1,Pet Hasted,Pet Not Hasted]},No Pet Out]}