int range = 0;
int max_range = 0;
_actor.setTarget(target);
// as a response, we put the target in a forcedattack mode
L2ControllableMobInstance theTarget = (L2ControllableMobInstance)target;
L2ControllableMobAI ctrlAi = (L2ControllableMobAI)theTarget.getAI();
ctrlAi.forceAttack(_actor);
try {
skills = _actor.getAllSkills();
dist2 = _actor.getPlanDistanceSq(target.getX(), target.getY());