Noire Posted August 28, 2013 Posted August 28, 2013 A script that disable @go command if your job level is below 9. ( Novice Class only #23 ) Quote
Capuche Posted August 29, 2013 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
LatSo Posted August 28, 2013 Posted August 28, 2013 I think this will need a source modification. Quote
Euphy Posted August 29, 2013 Posted August 29, 2013 Capuche, you could alternatively use: atcommand "@go "+implode(.@atcmd_parameters$," "); Quote
Capuche Posted August 29, 2013 Posted August 29, 2013 oO you're right, implode is much effective. Quote
Question
Noire
A script that disable @go command if your job level is below 9. ( Novice Class only #23 )
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.