Page 1 of 2
how to check buffer
Posted: Wed Oct 06, 2004 10:53 am
by wolfbaby
how to check my buffer and my pet's buffer,don't want to use event.
is there another way just like ${Me.PctHPs}
Posted: Wed Oct 06, 2004 11:29 am
by fearless
Code: Select all
#include spellcast.inc
/if (!${Me.Buff["Pact of Hate"].ID} && !${Me.Casting.ID}) /call Cast "Pact of Hate" gem8
I think that is what you are looking for . . . looking for pet routine.
Posted: Wed Oct 06, 2004 11:59 am
by fearless
${Me.PetBuff}
Posted: Wed Oct 06, 2004 9:54 pm
by wolfbaby
many thanks guys .
Code: Select all
/echo ${Me.PetBuff["Augment Death"]}
works,
Code: Select all
/echo ${Me.PetBuff["Augment Death"].ID}
not works,dont know why but i make my macro works right now.
Posted: Tue Oct 26, 2004 9:20 am
by Chill
If you are checking for a buff to recast, I suggest checking for its duration under some minimum length (in ticks):
Code: Select all
/if (${Me.PetBuff["Augment Death"].Duration}<20) /call cast "Augment Death"
0 is of course less than 20, so if the buff is not there at all, this will cover that too.
Posted: Fri Oct 29, 2004 11:06 pm
by wolfbaby
Chill wrote:If you are checking for a buff to recast, I suggest checking for its duration under some minimum length (in ticks):
Code: Select all
/if (${Me.PetBuff["Augment Death"].Duration}<20) /call cast "Augment Death"
0 is of course less than 20, so if the buff is not there at all, this will cover that too.
Code: Select all
/if (${Me.PetBuff["Augment Death"].Duration}<20) /call cast "Augment Death"
does not work. but
Code: Select all
/if (${Me.Buff[buff name].Duration}<20) /call cast "buff name"
works.
mayben Petbuff.Duration is not right.
Posted: Fri Oct 29, 2004 11:37 pm
by Cr4zyb4rd
RTFM. Me.PetBuff returns the type spell, Me.Buff returns the type buff. There's no PetBuff[].Duration because there can't be. All the client knows is the name of the spell affecting the pet, it doesn't have access to it the same way it has access to your own personal effects.
If you want to know the duration of your pet's buffs, set a timer when the buffs land on it.
Posted: Fri Nov 05, 2004 8:45 am
by wolfbaby
no no ,when i put my mouse on the pet's buff,i can see the duration.That's not a server side data.
Posted: Fri Nov 05, 2004 9:41 am
by Cr4zyb4rd
then look at the xml for your pet buff window and use that *shrug*
Posted: Fri Nov 05, 2004 9:47 am
by fearless
Code: Select all
/if (${Me.Pet.ID} && !${Me.PetBuff["Augmentation of Death"]} && ${Me.Pet.Distance}<100) {
/call Cast "Augmentation of Death" gem8
}
Works, use it and love it.
Posted: Fri Nov 05, 2004 12:06 pm
by Cr4zyb4rd
but that's not the duration, his pet window shows the duration! waa waa!
Posted: Fri Nov 05, 2004 12:14 pm
by ColdFusion
Code: Select all
[Substitutions]
CoD=${Window[PetInfoWindow].Child[PIW_BuffWindow].Child[PIW_PetBuff${Math.Calc[${Me.PetBuff[Command of Druzzil]}-1].Int}_Button].Tooltip}
returns Command of druzzil (mins:seconds)
(Or something similar)
then use .Arg[ previous string length -1 ]}
fix all the fun santax, but should get idea
-have fun
Posted: Fri Nov 05, 2004 12:24 pm
by fearless
Cr4zyb4rd wrote:but that's not the duration, his pet window shows the duration! waa waa!
oh nos!
Posted: Tue Nov 09, 2004 9:59 pm
by p$
.Duration will work if you use a number, but it only shows the spells original duration, not the time remaining
Code: Select all
${Me.PetBuff[${Me.PetBuff[Augment Death]}].Duration}
not that it will help you any, but its in there. ${Me.PetBuff[Name]} returns an integer, ${Me.PetBuff[Number]} returns a string. you need to use the string version to use the Duration property for some reason.
Posted: Wed Nov 10, 2004 12:37 am
by ieatacid
Can't you just grab the ToolTip? There was a post about that somewhere for getting group member names who weren't in the same zone.
I don't feel like looking for it.