any way to detect if pet is idling or busy fighting?

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

Moderator: MacroQuest Developers

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Re: Hey Wassup

Post by wassup » Thu Jan 27, 2005 3:30 pm

JJ wrote:He was asking about his pet, so I don't think he wants to retarget the mob. I think he wants to send a pet in, switch targets, and when his pet is no longer engaged, send his pet in on the new target. That's my guess.
I was mainly saying you cannot do ${Me.Pet.Target}. Target is a TLO.

Assuming the list of animation ID's is correct...

Pet attacking:

Code: Select all

/if (${Me.Pet.Animation}==80 || ${Me.Pet.Animation}==129 || ${Me.Pet.Animation}==144)  {
   <whatever you want to do if pet is attacking>
}

zanomo
a hill giant
a hill giant
Posts: 285
Joined: Thu Jun 24, 2004 11:21 pm

Post by zanomo » Fri Jan 28, 2005 2:22 am

Only applicable to OOW NPC in addition to the old animation IDs.

Code: Select all

----- oow animations --- 
80  - attacking 
104 - walking? 
106 - running 
110 - standing still 
129 - attacking 
144 - attacking 
For Pet animation, old animation IDs are used:

Code: Select all

5 - hit with main hand 
8 - punch 
12 - hit with offhand? 
17 - walking 
18 - running 
I have not found a reliable way to detect if pet is attacking or not. In my macro I included animation 17 and 18 along with 5/8/12, since sometimes the pet is running after the mob positioning itself to attack it. However, a unwanted side effect is that when /pet back is issued, the pet is in animation 17/18 on its way back to the guard location....

I was hoping to test it when mq2 is up using the Me.Pet.Target for pet attack checks but it seems it won't work either... :(

:D /varcalc postcount ${post.count}+1 :smile:

0mg
decaying skeleton
decaying skeleton
Posts: 2
Joined: Wed Jan 26, 2005 11:16 am

Post by 0mg » Sat Feb 12, 2005 12:54 am

Thanks for the great input guys.

Guess I'll play with animation IDs.

Too bad something like ${Me.Pet.Combat} won't work. ><

draco
a ghoul
a ghoul
Posts: 145
Joined: Thu Jan 29, 2004 7:06 pm
Contact:

Post by draco » Fri Feb 25, 2005 2:36 pm

I'm toying with NearestSpawn and TargetOfTarget I.e.

Code: Select all


/target id ${Me.Pet.NearestSpawn[ npc radius 50]}
/delay 5
/if (${Me.TargetOfTarget.ID}==${Me.Pet.ID}) {

-- Do what ever-----
} else {

--- Do something else-----

}
This requires the GLAA "Heath Of Target's Target"
This approach works great for determining if a group member has aggro. I was planning to add this condition to check if there pet has aggro as well.

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 1:55 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 1:56 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 1:58 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 1:59 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 2:36 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 2:37 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 2:38 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 2:39 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 3:52 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 3:53 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: any way to detect if pet is idling or busy fighting?

Post by xyilla » Tue Apr 01, 2025 3:55 pm