Page 1 of 4

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

Posted: Wed Jan 26, 2005 11:51 am
by 0mg
question for all you MQ2 veterans =)

if you are out of range of pet hit messages (or if pet hit msg is filtered), is there a way for checking if your summoned pet is idling or busy fighting a mob(s)?

Thx.

Posted: Wed Jan 26, 2005 12:31 pm
by TheNewGuy
Here's a hint... is he sitting there doing the "I am idle" animation, or is he doing the "I'm a Karate Ninja Motherfucker" animation?

OR in the case of Crazybard, is he doing the "Karate Ninja Motherfucker with his Sword of Mega Uber"?

Heh, sorry - that's gotta be the best item name I've heard of yet

Posted: Wed Jan 26, 2005 2:46 pm
by Fluffy
TheNewGuy wrote:Here's a hint... is he sitting there doing the "I am idle" animation, or is he doing the "I'm a Karate Ninja Motherfucker" animation?

OR in the case of Crazybard, is he doing the "Karate Ninja Motherfucker with his Sword of Mega Uber"?

Heh, sorry - that's gotta be the best item name I've heard of yet
I think ${Me.Pet.Target} might work would have to try it. But dont quote me on that :)

Careful with that

Posted: Wed Jan 26, 2005 6:00 pm
by JJ
After pet kills Mob_01, he still has Mob_01's corpse on target.

Posted: Wed Jan 26, 2005 10:38 pm
by zanomo
hmm.. In that case, add condition for corpse?

Code: Select all

/if (${Me.Pet.Target} && !${Me.Pet.Target.Find[Corpse]})

Posted: Thu Jan 27, 2005 12:07 am
by Neolesh
zanomo wrote:hmm.. In that case, add condition for corpse?

Code: Select all

/if (${Me.Pet.Target} && !${Me.Pet.Target.Find[Corpse]})
I think you mean

Code: Select all

/if (${Me.Pet.Target} && !${Me.Pet.Target.Name.Find[Corpse]})

Posted: Thu Jan 27, 2005 3:53 am
by wizzyman
no clue if this work tho

Code: Select all

${Me.Pet.Target}
but if so, i would use

Code: Select all

!${Me.Pet.Target.Type.Equal[Corpse]}

Posted: Thu Jan 27, 2005 5:32 am
by zanomo
Neolesh wrote: I think you mean

Code: Select all

/if (${Me.Pet.Target} && !${Me.Pet.Target.Name.Find[Corpse]})
Yes, you're right. I was coding with loose syntax, somewhere in one of my my macro I was using .Target only without .Name/.CleanName and it seems that it returned a string with the target long name, i.e.

Code: Select all

${Spawn[${Target}].Mark}

Posted: Thu Jan 27, 2005 6:07 am
by wassup
/boggle

There is no way Target is working like that., unless there is something about the Target TLO that is special.

This is more along the lines of what what you want:

Pet has a living target:

Code: Select all

/assist ${Me.Pet}
/if (${Target.ID} && ${Target.Type.NotEqual[Corpse]})
or

Code: Select all

/assist ${Me.Pet}
/if (${Target.ID} && ${Target.State.NotEqual[Dead]})

I had another idea with the previously mentioned Animation ID but it seems that I do not have any ID numbers in the readme. If anyone cares to PM me any Animation ID's I can put them in. I'll try to get some myself while I am in the game also.

Posted: Thu Jan 27, 2005 7:50 am
by zanomo

Hey Wassup

Posted: Thu Jan 27, 2005 11:33 am
by JJ
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.

Posted: Thu Jan 27, 2005 11:38 am
by TheNewGuy
The corpse thing won't work correctly at all times. If you have pet hold, or spam enough to get you pet back from a living target, it is now idle, but still has a living target.

Animation ID, baby. (Although those aren't always foolproof either)

Tip on /pet hold and /pet back

Posted: Thu Jan 27, 2005 12:22 pm
by JJ
/pet hold does not clear aggro list, so yes pet will still have a target
/pet back will clear aggro list, only way it will have target again is if mob reengages the pet

Posted: Thu Jan 27, 2005 1:23 pm
by TheNewGuy
From what I've tested, that's incorrect. Yes, /pet back will stop it from attacking, however it does not clear the target, untill said target dies, depops, or the pet zones.

/pet hold really has nothing to do with this at all, except sometimes you don't have to spam as much when you use /pet back.

I stand corrected

Posted: Thu Jan 27, 2005 1:48 pm
by JJ
/pet back does clear aggro/hate list, but you are correct target will still be there