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

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

Moderator: MacroQuest Developers

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

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

Post by 0mg » Wed Jan 26, 2005 11:51 am

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.

TheNewGuy
a snow griffon
a snow griffon
Posts: 307
Joined: Sat Jul 10, 2004 9:33 am
Contact:

Post by TheNewGuy » Wed Jan 26, 2005 12:31 pm

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
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]

That's great but he's looking for move.inc, you fucking spastic colon.[/quote]

User avatar
Fluffy
a ghoul
a ghoul
Posts: 81
Joined: Sun Aug 22, 2004 5:08 pm

Post by Fluffy » Wed Jan 26, 2005 2:46 pm

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 :)
And remember, if I said something to offend you it is only becuase I hate you. -- My Mom.
If you can't find it odds are you didn't bother looking. -- My Mom.
Why do I bother, your just stupid. -- My Mom.
Hmm maybe mom didnt love me?

JJ
a hill giant
a hill giant
Posts: 227
Joined: Thu Nov 11, 2004 5:50 am

Careful with that

Post by JJ » Wed Jan 26, 2005 6:00 pm

After pet kills Mob_01, he still has Mob_01's corpse on target.

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

Post by zanomo » Wed Jan 26, 2005 10:38 pm

hmm.. In that case, add condition for corpse?

Code: Select all

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

Neolesh
a hill giant
a hill giant
Posts: 231
Joined: Mon Aug 23, 2004 11:15 am

Post by Neolesh » Thu Jan 27, 2005 12:07 am

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]})

wizzyman
a ghoul
a ghoul
Posts: 106
Joined: Fri Dec 10, 2004 6:03 pm

Post by wizzyman » Thu Jan 27, 2005 3:53 am

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]}

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

Post by zanomo » Thu Jan 27, 2005 5:32 am

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}

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

Post by wassup » Thu Jan 27, 2005 6:07 am

/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.

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

Post by zanomo » Thu Jan 27, 2005 7:50 am


JJ
a hill giant
a hill giant
Posts: 227
Joined: Thu Nov 11, 2004 5:50 am

Hey Wassup

Post by JJ » Thu Jan 27, 2005 11:33 am

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.

TheNewGuy
a snow griffon
a snow griffon
Posts: 307
Joined: Sat Jul 10, 2004 9:33 am
Contact:

Post by TheNewGuy » Thu Jan 27, 2005 11:38 am

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)
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]

That's great but he's looking for move.inc, you fucking spastic colon.[/quote]

JJ
a hill giant
a hill giant
Posts: 227
Joined: Thu Nov 11, 2004 5:50 am

Tip on /pet hold and /pet back

Post by JJ » Thu Jan 27, 2005 12:22 pm

/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

TheNewGuy
a snow griffon
a snow griffon
Posts: 307
Joined: Sat Jul 10, 2004 9:33 am
Contact:

Post by TheNewGuy » Thu Jan 27, 2005 1:23 pm

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.
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]

That's great but he's looking for move.inc, you fucking spastic colon.[/quote]

JJ
a hill giant
a hill giant
Posts: 227
Joined: Thu Nov 11, 2004 5:50 am

I stand corrected

Post by JJ » Thu Jan 27, 2005 1:48 pm

/pet back does clear aggro/hate list, but you are correct target will still be there