EIysium Posted April 27 Share Posted April 27 Hello i wanna request a basic warp script that allows warp to any dungeon/field when you type "@warp pay_dun00" coordinates shouldn't work. Is not necessary put all maps, i can put the rest of the maps myself. Help is appreciated. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted May 1 Share Posted May 1 (edited) - script Samepl -1,{ OnInit: bindatcmd "test",strnpcinfo(3) + "::OnAtcommand"; end; OnAtcommand: if (getmapusers([email protected]_parameters$[0]) != -1) { message strcharinfo(0), "Map not found."; } else if (getmapflag([email protected]_parameters$[0], MF_NOWARPTO) && getgmlevel() < 99) { message strcharinfo(0), "You are not authorized to warp to this map."; } else if (getmapflag([email protected]_parameters$[0], MF_NOWARP) && getgmlevel() < 99) { message strcharinfo(0), "You are not authorized to warp from your current map."; } else { message strcharinfo(0), "Warped to " + [email protected]_parameters$[0]; warp [email protected]_parameters$[0], 0, 0; } end; } just add the mapflag MF_NOWARPTO to any map that you want prevent player to warp into those maps. or change the warp atcommand to enforce random warp https://github.com/rathena/rathena/blob/master/src/map/atcommand.cpp#L600 mapindex = mapindex_name2idx(map_name, nullptr); x = 0; y = 0; Edited May 1 by Emistry Quote Link to comment Share on other sites More sharing options...
Hello i wanna request a basic warp script that allows warp to any dungeon/field when you type "@warp pay_dun00" coordinates shouldn't work.
Is not necessary put all maps, i can put the rest of the maps myself.
Help is appreciated.
Link to comment
Share on other sites