prontera,155,181,5 script Sample 757,{
end;
OnInit:
npcspeed 200;
while( 1 ){
npcwalkto rand( 150,160 ),rand( 175,185 );
sleep 15000;
}
end;
}
prontera,155,181,5 script Sample 757,{
if( .location ) end;
set .location,select( implode( .map_name$,":" ) );
close2;
while( .location ){
npcwalkto .npc_x[.location-1],.npc_y[.location-1];
sleep 5000;
getmapxy( .@npc_map$,.@npc_x,.@npc_y,1 );
if( .@npc_x == .coordinate_y[.location-1] && .@npc_y == .coordinate_y[.location-1] ){
npctalk "You reached..";
set .location,0;
sleep 3000;
break;
}
}
movenpc strnpcinfo(0),.npc_x,.npc_y;
end;
OnInit:
npcspeed 200;
getmapxy( .npc_map$,.npc_x,.npc_y,1 );
setarray .map_name$,"Location 1","Location 2","Location 3";
setarray .coordinate_x,150,160,170;
setarray .coordinate_y,174,180,160;
end;
}