}
- script anti-bot -1,{
OnNPCKillEvent:
if( rand(100) < 75 ) {goto end;} // Default Setting: 75% Chance to Ignore the Anti-Bot
Oncheckb:
function GetString;
//if (getgmlevel() >= 3) { goto end;} /* Uncomment if you want to Ignore this by GM */
if(checkbot >= 1) { goto end; }
atcommand "@jail "+strcharinfo(0)+"";
set botter,1;
sleep2 3000;
On2nd:
set .@String$,GetString( 15,rand(3,7) );
mes "You Have 3 Chance to Type the Red Text Correctly";
mes "If you failed- You will be jailed";
mes "Input the ^FF0000RED COLOUR^000000 part";
mes "^0000FF"+GetString( 15,rand(5,10) )+"^FF0000"+.@String$+"^0000FF"+GetString( 15,rand(3,10) )+"^000000";
input .@Input$;
if( .@Input$ != .@String$ ){
if (botter >= 3)
{
atcommand "@unjail "+strcharinfo(0)+"";
sleep2 1000;
atcommand "@jailfor 10d "+strcharinfo(0)+"";
announce "[Anti-BOT]: The user [" +strcharinfo(0) +"] Has Been Jailed For 10 Days.",0,0xe80f0f;
set botter,0;
close;
end;}
mes "Wrong..";
set botter,botter + 1;
next;
goto On2nd;
}
atcommand "@unjail "+strcharinfo(0)+"";
set botter,0;
set checkbot,1;
sc_end SC_BERSERK;
sc_end SC_FREEZE;
sc_start SC_INCREASEAGI,240000,10; heal -15,0;
sc_start SC_BLESSING,240000,10;
end;
Question
Sallycantdance
hello is there any possibility that instead of chance it will trigger every 30 mins?
Link to comment
Share on other sites
2 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.