Good day, help me with these because I want to make this when character logs in, character cannot use any command but after typing the answer, character back to normal, thanks!
- script AntiBot -1,{
OnPCLoginEvent:
atcommand "@option 2";
set .@A,rand(50);
set .@B,rand(50);
mes "If A = "+.@A+" B = "+.@B;
switch( rand(1) ){
Case 0:
set .@Answer,.@A + .@B;
mes "How many is A + B ?";
break;
//Case 1:
set .@Answer,.@A - .@B;
mes "How many is A - B ?";
break;
//Case 2:
set .@Answer,.@A * .@B;
mes "How many is A * B ?";
break;
//Case 3:
set .@Answer,.@A / .@B;
mes "How many is A / B ?";
break;
}
input .@Input;
if( .@Input != .@Answer ){
mes "Wrong";
atcommand "@kick "+strcharinfo(0);
}
close;
}
Question
Gelo
Good day, help me with these because I want to make this when character logs in, character cannot use any command but after typing the answer, character back to normal, thanks!
Link to comment
Share on other sites
13 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.