Jump to content

Question

Posted
- script Antibot -1,{
function GetString;


OnPCLoginEvent:
if (strcharinfo(0)=="[Owner] Pogi" || strcharinfo(0)=="[Admin] Skyline" || strcharinfo(0)=="[Co-Admin] Pulse") {
close;
} else {
atcommand "@option 3 0 0";
switch( rand(2) ){
Case 0:
set .@String$,GetString( 15,rand(5,10) );
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$ ){
mes "Wrong..";
atcommand "@kick "+strcharinfo(0);
}
break;


Case 1:
set .@String$,GetString( 15,rand(5,10) );
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$ ){
mes "Wrong..";
atcommand "@kick "+strcharinfo(0);
}
break;
}
atcommand "@option 0 0 0";
close;


function GetString {
if( getarg(0) & 1 ) setarray .@List$[ getarraysize( .@List$ ) ],"1","2","3","4","5","6","7","8","9";
if( getarg(0) & 2 ) setarray .@List$[ getarraysize( .@List$ ) ],"A","B","C","D","E","F","G","H","J","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z";
if( getarg(0) & 4 ) setarray .@List$[ getarraysize( .@List$ ) ],"a","b","c","d","e","f","g","h","i","j","k","M","m","n","o","p","q","r","s","t","u","v","w","x","y","z";
if( getarg(0) & 8 ) setarray .@List$[ getarraysize( .@List$ ) ],"!","@","#","$","%","^","&","*","(",")","-","=","/","+";


set .@Str$,"";
while( getstrlen( .@Str$ ) < getarg(1) )
set .@Str$,.@Str$ + .@List$[ rand( getarraysize( .@List$ ) ) ];
return .@Str$;


}
}


}

If at maps other than comodo, pvp_n_1-5, pvp_n_2-5, pvp_n_3-5, pvp_n_4-5, pvp_n_5-5, pvp_n_6-5.

 

This anti bot will trigger every 5 minutes?

4 answers to this question

Recommended Posts

Posted
addtimer 300000,strnpcinfo(0)+"::OnPCLoginEvent";   // <--- add this
atcommand "@option 0 0 0";
close;

the map part...i dont understand what you need...

Posted

Remove the OnPcLoginEvent and script only runs every 5 mins if the player is at a map other than comodo and the pvp arenas..

For example:

5 mins is in, then script will check if a player is at comodo or pvp arenas.

If not in the comodo or pvp arenas, then the script of anti bot will run.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...