how do differentiate between pc and npc corpses?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

User avatar
Undies
a ghoul
a ghoul
Posts: 94
Joined: Mon Oct 20, 2003 9:12 pm

how do differentiate between pc and npc corpses?

Post by Undies » Mon Feb 09, 2004 3:23 am

I have a hunting bot script that targets corpses after killing mobs. Problem is that sometimes it targets dead players too. Any ideas how to get it not to target player corpses?

NotSoCSharp
a ghoul
a ghoul
Posts: 85
Joined: Sat Oct 25, 2003 10:48 am

Re: how do differentiate between pc and npc corpses?

Post by NotSoCSharp » Mon Feb 09, 2004 7:48 am

Undies wrote:I have a hunting bot script that targets corpses after killing mobs. Problem is that sometimes it targets dead players too. Any ideas how to get it not to target player corpses?
/target npc corpse
/target pc corpse

User avatar
Undies
a ghoul
a ghoul
Posts: 94
Joined: Mon Oct 20, 2003 9:12 pm

Post by Undies » Mon Feb 09, 2004 8:42 am

sorry that doesnt work...had already tried it

Was thinking of conning the corpse then watching for event "this corpse is too old to be resurrected" (or the opposite for younger corpses) but it seems a roundabout way.

User avatar
SimpleMynd_01
a lesser mummy
a lesser mummy
Posts: 71
Joined: Thu May 08, 2003 3:16 pm

Try this...

Post by SimpleMynd_01 » Mon Feb 09, 2004 10:19 am

During your fight with the mob...

Code: Select all

/varset VictimID $target(id)
Then when you want to find the corpse of the mob you just killed...

Code: Select all

/target id @VictimID

-SimpleMynd

User avatar
Undies
a ghoul
a ghoul
Posts: 94
Joined: Mon Oct 20, 2003 9:12 pm

Post by Undies » Mon Feb 09, 2004 7:06 pm

Yes that works, but I have recently changed my hunter routine to slay all adds before doing looting, so I can have an unknown number of corpses at my feet... makes the coding slightly harder.

I think I'll just use check corpses for res time method... (it would be best if '/target npc corpse' worked though)

thisisjustatest80
orc pawn
orc pawn
Posts: 10
Joined: Sun Feb 22, 2004 9:08 am

Post by thisisjustatest80 » Sun Feb 22, 2004 9:11 am

This can be easily done by implementing a stack. After you kill a mob, put the ID in an array. Once there are no adds, loot each id then delete the ID from the array.