darking123 Posted December 30, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share Posted December 30, 2012 (edited) i am requesting an anti bot for a specific map only the anti bot on that map only thank you i am using eathena svn Edited December 30, 2012 by glemor123 Quote Link to comment Share on other sites More sharing options...
WhatFT Posted December 30, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted December 30, 2012 (edited) - script AntiBot -1,{ function GetString; OnPCLoadMapEvent: if( strcharinfo(3) != "bat_c01" ) end; 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 .@A,rand(1000); set .@B,rand(1000); mes "If A = "+.@A+" B = "+.@B; switch( rand(4) ){ 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"; atcommand "@kick "+strcharinfo(0); } break; } 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","I","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","l","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$; } } //-----MAPFLAG--------- bat_c01 mapflag loadevent Just change bat_c01 Edited December 31, 2012 by Paulinds Please use [CODEBOX] or Attachments for long contents. Quote Link to comment Share on other sites More sharing options...
darking123 Posted December 30, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Author Share Posted December 30, 2012 sir what if i want it that script to be activate to 3 maps??how will i modify it also how does this work??is this % that will be triggered? or set to number of mobs before it will be triggered?or every X Minutes? Quote Link to comment Share on other sites More sharing options...
orange Posted December 30, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Share Posted December 30, 2012 i guess if u want to change 3 maps the add those 3 names 1 below the other Quote Link to comment Share on other sites More sharing options...
darking123 Posted December 30, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Author Share Posted December 30, 2012 (edited) do you know how that works? is this % that will be triggered? or set to number of mobs before it will be triggered?or every X Minutes? bump* bump! Edited December 30, 2012 by glemor123 Quote Link to comment Share on other sites More sharing options...
WhatFT Posted December 31, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted December 31, 2012 (edited) You can do it in the hard way, I don't know if that will work but try to copy the same script and change the name AntiBot to AntiBot1, Antibot2 or anything that suits you then just change the map you wanted in each script.. XD This script will trigger once you enter the specific map you inserted and will pop out a question like A=100 + B=100 = ?? Like that.. Edited December 31, 2012 by Paulinds Quote Link to comment Share on other sites More sharing options...
RyokoMVP Posted January 1, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 209 Reputation: 3 Joined: 11/28/11 Last Seen: May 2, 2019 Share Posted January 1, 2013 @ Paulinds i think he want antibot will shown every xxx second / minutes / hours / every xx monster killed maybe.not only once every login...because he want antibot for field / dungeon CMIIW Quote Link to comment Share on other sites More sharing options...
phebs Posted January 1, 2013 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 57 Reputation: 0 Joined: 09/13/12 Last Seen: November 18, 2013 Share Posted January 1, 2013 (edited) @ Paulinds i think he want antibot will shown every xxx second / minutes / hours / every xx monster killed maybe.not only once every login...because he want antibot for field / dungeon CMIIW thumbs up Edited January 1, 2013 by tope Quote Link to comment Share on other sites More sharing options...
WhatFT Posted January 2, 2013 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted January 2, 2013 Well, I don't have that kind of script sorry XD Quote Link to comment Share on other sites More sharing options...
darking123 Posted January 2, 2013 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Author Share Posted January 2, 2013 then what is the way to trigger your script sir?? by killing 1 mob? or anything? Quote Link to comment Share on other sites More sharing options...
Question
darking123
i am requesting an anti bot for a specific map only
the anti bot on that map only thank you
i am using eathena svn
Edited by glemor123Link to comment
Share on other sites
9 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.