Is there anyway to count the number of PCs in the zone. I have this requirement for a macro I am working on.
Thanks!
Moderator: MacroQuest Developers


Code: Select all
/declare pccounter local
/declare currentpcid local
/declare lastpcid local
/varset currentpcid 0
/varset pccounter 0
:pcloop
/varset lastpcid @currentpcid
/varset currentpcid $searchspawn(pc,next,id:@lastpcid)
/varadd pccounter 1
/if @currentpcid!=@lastpcid /goto :pcloop
