How can I tell if Target = corpse?

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

Moderator: MacroQuest Developers

spartikus
a lesser mummy
a lesser mummy
Posts: 55
Joined: Mon Apr 02, 2012 6:51 pm

How can I tell if Target = corpse?

Post by spartikus » Sat Apr 07, 2012 1:00 pm

How to tell if Target is a corpse or not.

Sometimes when I use /target npc xxxxx I get corpses.. Just want to do a validity check.


Sorry if I'm blind I couldn't figure this out from the wiki :/

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: How can I tell if Target = corpse?

Post by dewey2461 » Sat Apr 07, 2012 1:15 pm

/echo ${Target.Type} so probably something like ${Target.Type[CORPSE]}

spartikus
a lesser mummy
a lesser mummy
Posts: 55
Joined: Mon Apr 02, 2012 6:51 pm

Re: How can I tell if Target = corpse?

Post by spartikus » Sat Apr 07, 2012 1:29 pm

Right on Dewey thanks. I'll give it a whirl right now. Also think I figured out my XP counter. Droid was way closer than my crappy math :).

Will post updates.

Thanks again

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Re: How can I tell if Target = corpse?

Post by dont_know_at_all » Sat Apr 07, 2012 1:59 pm

Code: Select all

${Target.Type.Equal[corpse]}

spartikus
a lesser mummy
a lesser mummy
Posts: 55
Joined: Mon Apr 02, 2012 6:51 pm

Re: How can I tell if Target = corpse?

Post by spartikus » Sat Apr 07, 2012 5:43 pm

People here rock. Thanks DKAA. My targetting logic is soo much better now.

You guys rock :)