Get a list of all spawns around me, then target each one

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

OldNecro
a ghoul
a ghoul
Posts: 136
Joined: Thu Dec 19, 2002 3:09 am

Get a list of all spawns around me, then target each one

Post by OldNecro » Fri Feb 14, 2003 12:11 am

would it be possible to set up an alert, then individually pluck the spawn ID's from the list somehow so the mobs could be individually targeted based on that list?

lifewolf
a ghoul
a ghoul
Posts: 143
Joined: Fri Oct 18, 2002 6:29 pm

Post by lifewolf » Fri Feb 14, 2003 3:52 am

Target a mob within 50 loc
add it to alert list 2
add it to YOUR list (ID)
target a mob with the same name but NOT that ID within 50 loc
add it to YOUR list (ID)
:repeat
target nearest NPC not on alert list 2
add it to alert 2
add it to YOUR list (by ID)
target the nearest monster within 50 loc with that NPCs name,clean
add it to YOUR list (ID)
goto :repeat till /target notalert 2 (within) range 50 fails to find more mobs

THIS WILL NOT PICK UP ON THE THIRD, FOURTH, EIGHT HUNDRETH MOB with the same name in whatever radius you choose. Theres no good way to do this and I guess this is the best idea thus far. Could try Z axis limiting too on /target to help

also supposidly '/target npc noalert 2 range 50' is broken when used as a whole command, so I would just use /target notalert 2 and check the XY distance range manually for a workaround.

OldNecro
a ghoul
a ghoul
Posts: 136
Joined: Thu Dec 19, 2002 3:09 am

Post by OldNecro » Fri Feb 14, 2003 9:12 am

is there any way to use a mob's system name (a_mob01) on an alert list instead of their clean name so as to establish a list of specific mobs? and is there a command that cycles through the specific mobs in an alert list? (I have read the manual cover to cover, but I know there are at least a few commands not listed there...)

I guess what I'm going to have to do is write my own function that cycles through every spawn in the zone and checks its range from me and whatnot and add the spawnID to an array if it meets the criteria... But would it be super slow to put that in an infinite loop and bog me down to the point of not being able to play?