private int fnTurn(SwordObject cpt, int id, int dir, int stance, int c, int d, int a, int b)
{
if (stance > 0)
dir = 9;
int route = _router.RouteFinder(id, cpt, cpt.xcoord, cpt.ycoord, dir);
if (route != 0)
cpt.down_flag = 1; //1 means ok
else
cpt.down_flag = 0; //0 means error
cpt.logic = LOGIC_AR_animate;
cpt.walk_pc = 0; //reset
return SCRIPT_STOP;
}