Moderator: MacroQuest Developers
Code: Select all
is your friend . . . well ours anyways.
As to your AFK macro code, does the mob wander then stop and wander back or is it a continuous movement? If he goes somewhere and stops, grab those coordinates and just wait to pull 6 when 7 is at that point.
Code: Select all
/declare RoamerID int
/declare RoamerCurrentLocX int
/declare RoamerCurrentLocY int
/delcare MobID int
/declare MobY int
/declare MobX int
/declare RoamerRange int 75
/varset RoamerID ${Spawn[${MobID}].NearestSpawn[npc radius ${RoamerRange}].ID}
:WaitForClearPull
/delay 1
/varset RoamerCurrentLocX ${Spawn[${RoamerID}].X}
/varset RoamerCurrentLocY ${Spawn[${RoamerID}].Y}
/echo MobY ${MobY} MobX ${MobX}
/echo RoamerCurrentLocY ${RoamerCurrentLocY} RoamerCurrentLocX ${RoamerCurrentLocX}
/echo Roamer is ${Spawn[${RoamerID}].CleanName} ${RoamerID} ${Math.Distance[${MobY},${MobX}:${RoamerCurrentLocY},${RoamerCurrentLocX}]} away
/if (${Math.Distance[${MobY},${MobX}:${RoamerCurrentLocY},${RoamerCurrentLocX}]} > ${RoamerRange}) /goto :RoamerClear
/goto :WaitForClearPull
:RoamerClear
Code: Select all
/if (${Target.ID} && ${Target.Type.Equal[NPC]}) {
/if (${Spawn[noalert 1 npc loc ${Target.X} ${Target.Y} notid ${Target.ID} radius 110].ID}) {
/goto :HoldPull
} else {
/call Pulling
}
} else {
/call GetTarget
}