I think this is a bug at this line:
in sub assist
With this running as checks:
I'm getting results like this:

Even though there aren't mobs in all of the xslots, this is returning true. ${Me.XTarget[${n}].TargetType.Equal[Auto Hater]} Which sets the closest mob ID to 0. causing the validate target checks to fail and the assist sub leaving without grabbing a target.
- - - Updated - - -
I changed that line to:
/if (${Me.XTarget[${n}].ID}) {
Not sure what autohater is supposed to do, but this helps picking a target. I'm hoping this fixes my charming troubles
Rich (BB code):
/if (${Me.XTarget[${n}].TargetType.Equal[Auto Hater]}) {
With this running as checks:
Rich (BB code):
/for n 1 to ${XSlotTotal}
/if (${Me.XTarget[${n}].TargetType.Equal[Auto Hater]}) {
/echo xslot ${n}: ${Me.XTarget[${n}].TargetType.Equal[Auto Hater]} ${Me.XTarget[${n}].ID}
/if (${Me.XTarget[${n}].Named}) {
/if (${DebugCombat}) /echo Target is named
/squelch /target id ${Me.XTarget[${n}].ID}
/delay 10 ${Target.ID}==${Me.XTarget[${n}].ID}
/goto :validatetarget
}
/if (!${ClosestMobID}) {
/varset ClosestMobID ${Me.XTarget[${n}].ID}
/echo set closest target as ${ClosestMobID}
}
/if (${Math.Distance[${Spawn[${ClosestMobID}].Y},${Spawn[${ClosestMobID}].X}:${CampYLoc},${CampXLoc}]}<${Math.Distance[${Me.XTarget[${n}].Y},${Me.XTarget[${n}].X}:${CampYLoc},${CampXLoc}]}) {
/echo Found closer mob ${ClosestMobID}. Math is ${Math.Distance[${Spawn[${ClosestMobID}].Y},${Spawn[${ClosestMobID}].X}:${CampYLoc},${CampXLoc}]}<${Math.Distance[${Me.XTarget[${n}].Y},${Me.XTarget[${n}].X}:${CampYLoc},${CampXLoc}]}
/varset ClosestMobID ${Me.XTarget[${n}].ID}
}
}
/next n
I'm getting results like this:

Even though there aren't mobs in all of the xslots, this is returning true. ${Me.XTarget[${n}].TargetType.Equal[Auto Hater]} Which sets the closest mob ID to 0. causing the validate target checks to fail and the assist sub leaving without grabbing a target.
- - - Updated - - -
I changed that line to:
/if (${Me.XTarget[${n}].ID}) {
Not sure what autohater is supposed to do, but this helps picking a target. I'm hoping this fixes my charming troubles


