erm..i think you can try make use of the distance...
brasilis,249,60,0 script School of Fish#fs1 723,2,2,{
end;
OnTouch:
do{
set .@fishno,1;
callfunc "fishfunc",.@fishno;
getmapxy( .@NPCMAP,.@NPCX,.@NPCY,1 );
getmapxy( .@PCMAP,.@PCX,.@PCY,0 );
}while( distance( .@NPCX,.@NPXY,.@PCX,.@PCY ) <= 2 );
end;
}