Post
by A_Druid_00 » Fri Nov 19, 2004 11:00 am
That's how I ended up doing it in my Assist healing portion of my druid mac. Feel free to butcher it to your liking. I'm not sure if there's a way to check LoS without actually targetting the mob.
Code: Select all
/varset NPCsInRange ${SpawnCount[npc radius 200 zradius 20]}
/for index ${NPCsInRange} downto 1
/if (${index}<=0) /goto :HealCycle
/varset NPCArray[${index}] ${NearestSpawn[${index}, npc].ID}
/next index
/for index ${NPCsInRange} downto 1
/squelch /target id ${NPCArray[${index}]}
/if (${Target.LineOfSight}) {
/assist
/delay 5
/call ShouldIHeal
}
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]