Currently Posted May 26, 2014 Posted May 26, 2014 - 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? Quote
Emistry Posted May 26, 2014 Posted May 26, 2014 addtimer 300000,strnpcinfo(0)+"::OnPCLoginEvent"; // <--- add this atcommand "@option 0 0 0"; close; the map part...i dont understand what you need... Quote
Currently Posted May 26, 2014 Author Posted May 26, 2014 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. Quote
Emistry Posted May 26, 2014 Posted May 26, 2014 try http://upaste.me/r/2f2b74 antibot skip town and pvp area. Quote
Currently Posted May 27, 2014 Author Posted May 27, 2014 Is it possible to make it specific enough only for town 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 ? -bump- Quote
Question
Currently
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.