Limestone Posted February 2, 2013 Posted February 2, 2013 guys, can you help me modified my @warp/@go, if a player uses @warp/@go on a map that needs level 200+ level higher, if the player below 200, he/she can't use @warp/@go on that map. Quote
Cydh Posted February 2, 2013 Posted February 2, 2013 I think you can use bindatcmd (on script_commands.txt) to check if BaseLevel > 200 then useatcmd. Quote
Emistry Posted February 2, 2013 Posted February 2, 2013 try this.. find this inside the @go command inside this file trunk/src/map/atcommand.c nullpo_retr(-1, sd); then add these... if( sd->status.base_level < 200 ){ clif_displaymessage(sd->fd,"Need level 200 to use."); return 0; } recompile... Quote
Limestone Posted February 2, 2013 Author Posted February 2, 2013 i already tried that emistry, but i need level 200 to use @go. what i mean is i want to put a special map that if a player is level 200 below, he / she can't enter. Quote
goddameit Posted February 2, 2013 Posted February 2, 2013 (edited) - script go_warp_atcommand -1,{ OnInit: bindatcmd "go",strnpcinfo(3)+"::OnDo"; bindatcmd "warp",strnpcinfo(3)+"::OnDo"; end; OnDo: if( strcharinfo(3) == "prontera" && Baselevel < 200 && !Donate ) { message strcharinfo(0),"Donate some money then you can use this command in here."; end; } atcommand "@go "+.@atcmd_parameters$[0]; end; } Edited February 22, 2013 by goddameit Quote
Question
Limestone
guys, can you help me modified my @warp/@go, if a player uses @warp/@go on a map that needs level 200+ level higher, if the player below 200, he/she can't use @warp/@go on that map.
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.