help me to add 30seconds timer on this bot checker
- script AntiBot -1,{
OnNPCKillEvent:
set @Kill,@Kill + 1;
if( @Kill < 243 ) end; // 100 kill to trigger
set @Kill,0;
atcommand "@option 2 0 3";
sc_start sc_berserk, 1000000000, 1;
set .@A,rand(10);
set .@B,rand(10);
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";
sc_end sc_berserk;
atcommand "@option 0";
atcommand "@load";
atcommand "@alootid";
atcommand "@autoloot 0";
atcommand "@mute 15 "+strcharinfo(0);
}
else if( .@Input == .@Answer ){
mes "Good Job!";
sc_end sc_berserk;
atcommand "@option 0";
percentheal 0,100; // since berserk use your 100% sp
}
close;
}
Question
chromus28
help me to add 30seconds timer on this bot checker
Link to comment
Share on other sites
6 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.