when jail time ends? if the answer is wrong the character will remain for another 3mins
and if the answer is correct... character will unjail instantly..
- script AntiBot -1,{
OnNPCKillEvent:
if( rand(1) > 1 ) end; // 5% trigger
atcommand "@option 2 0 3";
set .@A,rand(5);
set .@B,rand(5);
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 "DarkSider-RO police` How many is A / B ?";
break;
}
input .@Input;
if( .@Input != .@Answer ){
mes "Wrong";
atcommand "@option 0";
atcommand "@jailfor 3 "+strcharinfo(0);
}
else if( .@Input == .@Answer ){
mes "Good Job!";
atcommand "@option 0";
percentheal 0,100; // since berserk use your 100% sp
}
close;
}
bump
Edited by Emistry Please use [CODEBOX] for long contents.
Question
RN1986
when jail time ends? if the answer is wrong the character will remain for another 3mins
and if the answer is correct... character will unjail instantly..
bump
Edited by EmistryPlease use [CODEBOX] for long contents.
Link to comment
Share on other sites
0 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.