Noire Posted August 28, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 103 Reputation: 1 Joined: 06/26/13 Last Seen: April 14 Share Posted August 28, 2013 A script that disable @go command if your job level is below 9. ( Novice Class only #23 ) Quote Link to comment Share on other sites More sharing options...
Capuche Posted August 29, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted August 29, 2013 - script go_restrict -1,{ OnInit: bindatcmd "go",strnpcinfo(3)+"::OnEvent"; end; OnEvent: if ( getgmlevel() < 1 && Class == Job_Novice && JobLevel < 9 ) message strcharinfo(0), "Your Joblevel must be above 8 to use @go command."; else atcommand "@go "+ implode( .@atcmd_parameters$," " ); end; } Edit : replace while by implode Quote Link to comment Share on other sites More sharing options...
LatSo Posted August 28, 2013 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 296 Reputation: 2 Joined: 04/11/13 Last Seen: December 22, 2020 Share Posted August 28, 2013 I think this will need a source modification. Quote Link to comment Share on other sites More sharing options...
Euphy Posted August 29, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted August 29, 2013 Capuche, you could alternatively use: atcommand "@go "+implode(.@atcmd_parameters$," "); Quote Link to comment Share on other sites More sharing options...
Capuche Posted August 29, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted August 29, 2013 oO you're right, implode is much effective. Quote Link to comment Share on other sites More sharing options...
Noire Posted August 29, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 103 Reputation: 1 Joined: 06/26/13 Last Seen: April 14 Author Share Posted August 29, 2013 Thanks Capuche & Euphy !! Quote Link to comment Share on other sites More sharing options...
Question
Noire
A script that disable @go command if your job level is below 9. ( Novice Class only #23 )
Link to comment
Share on other sites
5 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.