how many mobs within a certain radius?

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 many mobs within a certain radius?

Post by Undies » Mon Dec 08, 2003 7:47 am

I am writing a monk hunting script and just wondered if there is an easy way to return mob numbers within a certain radius, WITHOUT swapping targets.

eg. /who npc radius 200

gives a list of nearby mobs but how do I convert this into a simple number? Basically if there are 2 or more I would just FD until they went away....

It is pretty hard to write single pulling script so I thought this is the next best thing...


EDIT:
Seems others want to do this too...

http://macroquest2.com/phpBB2/viewtopic.php?t=4211

$searchspawn looks right but I cant get it to work...

nimblefoot
a lesser mummy
a lesser mummy
Posts: 33
Joined: Sun Jun 29, 2003 11:50 am

Post by nimblefoot » Mon Dec 08, 2003 1:49 pm

You could do a simple #events check for 0, 1, and 2 mobs, and execute your FD code if none of them are found after performing a /w.