Yami Posted February 26, 2016 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 111 Reputation: 2 Joined: 01/02/14 Last Seen: June 4, 2023 Share Posted February 26, 2016 (edited) I found this antibot script on an archived post. The 30 second timer for the script is not working. Can someone help me with this please? Here's the script, I edited some part of it to suit my wanting. It's just that, the timer is not working. - script AntiBot2 -1,{ //OnPCLoginEvent: // setoption 0x40, 0; // prevent abuse // end; OnCheat: dispbottom "too long"; atcommand "@kick "+strcharinfo(0); //sc_end sc_berserk; //percentheal 100,100; //setoption 0x3, 0; end; OnNPCKillEvent: if ( rand(500) ) end; // 1% chance to triggering setoption 0x3, 1; sc_start sc_berserk, 1000000000, 1; addtimer 30000, strnpcinfo(0)+"::OnCheat"; set .@respond, gettimetick(2); mes "if A = "+( .@a = rand(1,50) )+", B = "+( .@b = rand(1,50) ); setarray .@arithmetic$, "+"; mes "How many is A "+ .@arithmetic$[ .@arithmetic = rand(1) ] +" B ?"; switch ( .@arithmetic ) { default: .@answer = .@a + .@b; break; case 1: .@answer = .@a - .@b; break; case 2: .@answer = .@a * .@b; break; case 3: .@answer = .@a / .@b; } next; input .@input, -100, 100; deltimer strnpcinfo(0)+"::OnCheat"; sc_end sc_berserk; percentheal 100,100; setoption 0x3, 0; if ( gettimetick(2) > .@respond +30 ) { mes "you taken too long to answer"; atcommand "@kick "+strcharinfo(0); close; } else if ( .@input == .@answer ) { mes "Good Job"; close; } else { mes "Wrong"; atcommand "@kick "+strcharinfo(0); close; } } Edited February 26, 2016 by Yami Quote Link to comment Share on other sites More sharing options...
Question
Yami
I found this antibot script on an archived post. The 30 second timer for the script is not working. Can someone help me with this please?
Here's the script, I edited some part of it to suit my wanting. It's just that, the timer is not working.
Edited by YamiLink 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.