PetBuff not working?

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

cjn
orc pawn
orc pawn
Posts: 19
Joined: Fri Aug 20, 2004 4:21 pm

PetBuff not working?

Post by cjn » Wed Oct 27, 2004 10:42 pm

I have been using my mage to test this, however I can't get this to work at last. I type /echo ${Me.PetBuff["Burnout V"]} but it always return NULL. Of coz I did casted Burnout V on it. Tried /echo ${Me.PetBuff["Burnout V"].ID} too, but no luck. /echo ${Me.PetBuff[1]} also returns NULL. Did I do anything wrong? Or is this function removed?

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Wed Oct 27, 2004 10:57 pm

Just tested and it works fine for me.

cjn
orc pawn
orc pawn
Posts: 19
Joined: Fri Aug 20, 2004 4:21 pm

Post by cjn » Thu Oct 28, 2004 4:13 am

Can't. I don't know why. Always return NULL. I can make use of many others data with no problem, but only this. I can use Me.Pet.ID too, just no Me.PetBuff[]. Is there anywhere needed to modify before getting it to work? Or is it enabled by default?

Btw, I am using 25/10 zip already.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Thu Oct 28, 2004 9:57 am

This code worked for me in the past, but I have not had a chance to test it with 10/25 or the one previous. I'll try it out tonight and let you know.

Code: Select all

/if (${Me.Pet.ID} && !${Me.PetBuff["Augmentation of Death"]} && ${Me.Pet.Distance}<100) {
          /target ${Me.Pet}
          /call Cast "Augmentation of Death" gem8 
        }
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

Castallan
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sun Apr 11, 2004 3:24 pm

Post by Castallan » Thu Oct 28, 2004 3:17 pm

Do you have an older custom UI? I used to have same problem until I got a UI that actually displayed the pet buffs.

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Thu Oct 28, 2004 7:15 pm

he said when he types /echo...

cjn
orc pawn
orc pawn
Posts: 19
Joined: Fri Aug 20, 2004 4:21 pm

Post by cjn » Fri Oct 29, 2004 7:14 am

I give up using Me.PetBuff[] already. I setup a flag for buff and use event to catch the buff faded msg. The only draw back is when I use suspend minion and recall my pet, it will treat my pet as a new pet and buff it again. Well, it doesn't hurt me anyway.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Fri Oct 29, 2004 9:14 am

The above code works for me from the zip before 10/25, I will check and see with the new zip this weekend.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Fri Oct 29, 2004 6:36 pm

It works fine. I just posted a snippet in the Snippets section that uses the hell out of Me.PetBuff

cjn
orc pawn
orc pawn
Posts: 19
Joined: Fri Aug 20, 2004 4:21 pm

Post by cjn » Sat Oct 30, 2004 11:37 pm

Castallan was right.... it requires Pet Window with buff slot...