Moderator: MacroQuest Developers



Code: Select all
/target range 0 500 no alert 1
/alert add 1 $target(name)

Grin, the forums get a bit slow later in the day in terms of people reading and responding... from reading some of the previous posts on these forums I found out that /target gets sent to the server whereas $searchspawn does not; doing a lot of /targets may flag you as a script user. Since I made the recommendation you go this route I'll do ya one better: here's a subroutine that I wrote to simply count mobs in a radius. It's not a long walk to do other things (add debuff/mez for example in the /if n @CountID!=0 code segment) with it too but it shows $searchspawn and /alert usage:driftinsupra wrote:Anyone wanna toss some advice my way? Please?
Code: Select all
Sub MobCount(LocalRange)
/declare MobCounter local
/declare CountID local
/alert clear 7
/alert add 7 id -1
/varset MobCounter 0
:NextCount
/varset CountID $searchspawn(npc,radius:@LocalRange,zradius:50,noalert:7)
/if n @CountID!=0 {
/alert add 7 id @CountID
/varadd MobCounter 1
/goto :NextCount
}
/return @MobCounter


Don't imo.driftinsupra wrote:Appreicate the help....I think I got some good ideas to go off now. One questions though:
Ok for the life of me I cannot figure out a way to determine what group memeber each mob is attacking first. I was thinking using radius around a member of the group but I see to many possibilities where this could be inacurate. The reason I would like to do this is so that when I start a mez cycle, I target the mobs that might might be targeting weaker members (aka casters) first. I have almost got it so I know weather or not they are attacking but I have no idea how to figure out who.



Code: Select all
#turbo
Sub Main
/declare CountID local
/alert clear 7
/alert add 7 id -1
/assist MainTankHere
/alert add 7 id $target(id)
:NextCount
/varset CountID $searchspawn(npc,radius:200,zradius:50,noalert:7)
/if n @CountID!=0 {
/alert add 7 id @CountID
/target id @CountID
/if n $target(animation)==5 /call cast Enthrall
/if n $target(animation)==7 /call cast Enthrall
/if n $target(animation)==8 /call cast Enthrall
/if n $target(animation)==13 /call cast Enthrall
/if n $target(animation)==44 /call cast Enthrall
/goto :NextCount
}
/return