Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script AntiBot -1,{
- OnNPCKillEvent:
- if( rand(100) > 5 ) end; // 5% trigger
- atcommand "@option 2 0 3";
- sc_start sc_berserk, 1000000000, 1;
- 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";
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement