Limestone Posted February 2, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share 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 Link to comment Share on other sites More sharing options...
Cydh Posted February 2, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted February 2, 2013 I think you can use bindatcmd (on script_commands.txt) to check if BaseLevel > 200 then useatcmd. Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 2, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: Yesterday at 11:27 AM Share 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 Link to comment Share on other sites More sharing options...
Limestone Posted February 2, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
goddameit Posted February 2, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.