can you please write it in script? im kinda noob xD.. thanksgetmapxy
add ~30 to x and y
warp
You could start here in case of lacking knowledge: https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txtcan you please write it in script? im kinda noob xD.. thanksgetmapxy
add ~30 to x and y
warp
Script: <asfaskfkjl>
If you find such spots, modify the walkable areas in BROWEDIT, use WeeMapCache and you've solved that issue too.I just guestimate 30, maybe -+ 12, you can still warp to unwalkable places,
btw can anyone link me to the npc sprite ID with names ?gonne pin at script support// Visible area size (how many squares away from a player can they see)
area_size: 14
Such amazing, but I wanted him/her to get into scripting ;p- script ksdfkjsdhfksj FAKE_NPC,{// set .@range, getbattleflag("area_size");// getmapxy .@map$, .@x, .@y, 0;// while ( checkcell( strcharinfo(3), .@x = rand( .@x - .@range, .@x + .@range ), .@y = rand( .@y - .@range, .@y + .@range ), cell_chknopass ) );// warp .@map$, .@x, .@y;// end;OnInit: setitemscript Wing_Of_Fly, "{ set .@range, getbattleflag("area_size"); getmapxy .@map$, .@x, .@y, 0; while ( checkcell( strcharinfo(3), .@x = rand( .@x - .@range, .@x + .@range ), .@y = rand( .@y - .@range, .@y + .@range ), cell_chknopass ) ); warp .@map$, .@x, .@y; }", 0;}@@Tranquilityvisible range is set in
btw can anyone link me to the npc sprite ID with names ?gonne pin at script support// Visible area size (how many squares away from a player can they see)
area_size: 14
because when I put 100 as sprite ID server pump msg says it is depricated soon
EDIT: change -1 into FAKE_NPC
@@ -5155,8 +5155,10 @@ int pc_randomwarp(struct map_session_data *sd, clr_type type) { return 0; do {- x=rnd()%(map->list[m].xs-2)+1;- y=rnd()%(map->list[m].ys-2)+1;+ x=rnd()%30;+ y=rnd()%30;+ x=x>14 ? sd->bl.x+x-15 : sd->bl.x-x;+ y=y>14 ? sd->bl.y+y-15 : sd->bl.y-y; } while( map->getcell(m,x,y,CELL_CHKNOPASS) && (i++) < 1000 ); if (i < 1000)
We use essential cookies to make this site work, and optional cookies to enhance your experience.