responseOnASCIInumber.pl #for response BotKiller(ASCII)

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
k1nt4r0
Human
Human
Posts: 30
Joined: 11 Jun 2014, 12:13
Noob?: Yes

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#561 Post by k1nt4r0 »

This is the log.
[npc] Unknown #110028175: Type 'talk text' (Respond to NPC)
[plugin] [reactOnNPC] onNPCAction type is: text.
[plugin] [reactOnNPC] Conditions for reactOnNPC_0 (npc:text, rect:number) 'type' not met.
[plugin] [reactOnNPC] Conditions for reactOnNPC_1 (npc:text , rect:text) is met.
[plugin] [reactOnNPC] Matching [msg (0)] "[Police]" to "/[#=]*/" ... regexp ok.
[plugin] [reactOnNPC] Matching [msg (1)] "HHHHHHHHHHHHHHHHHHHHHHHHHHHH" to "/[#=]*/" ... regexp ok.
[plugin] [reactOnNPC] Matching [msg (2)] "HHHHHHHHHHHHHHHHHHHHHHHHHHHH" to "/[#=]*/" ... regexp ok.
[plugin] [reactOnNPC] Matching [msg (3)] "HHHHHHHHHHHHHHHHHHHHHHHHHHHH" to "/[#=]*/" ... regexp ok.
[plugin] [reactOnNPC] Matching [msg (4)] "HHHHHHHHHHHHHHHHHHHHHHHHHHHH" to "/[#=]*/" ... regexp ok.
[plugin] [reactOnNPC] Matching [msg (5)] "HHHHHHHHHHHHHHHHHHHHHHHHHHHH" to "/[#=]*/" ... regexp ok.
[plugin] [reactOnNPC] Matching [msg (6)] "" to "/[#=]*/" ... regexp ok.
[plugin] [reactOnNPC] Matching [msg (7)] "" to "/[#=]*/" ... regexp ok.
[success] [reactOnNPC] Reacting to NPC. Executing command "ASCIInumberKiller text".
[success] [responseOnASCIInumber] lengthCharNumber is 7
[success] [01] : ########
[success] [02] : ############################
[success] [03] : #
[success] [04] : ##########################################
[success] [05] : ######################
[success] [06] : ########
[success] [07] : #
[success] [08] : ############################
[success] [09] : #
[success] [10] : ############################
[success] [11] : ########
[success] [12] : ####=====#====#####==#####==
[success] [13] : #==#====#=#===#===#==#======
[success] [14] : ###====#===#==####===####===
[success] [15] : #==#===#####==#===#==#======
[success] [16] : #===#==#===#==#####==#####==
[success] [17] :
[success] [18] :
[success] [responseOnASCIInumber] Wait 3 sec. and executing command: "talk text ".
[console] Error in function 'talk text' (Respond to NPC)
You must specify a string.
This is my config.

Code: Select all

ASCIInumberKiller {
	lengthCharNumber 7
	useColors 1
	BgColor ^[B-Fb-f][A-Fa-f0-9][D-Fd-f][A-Fa-f0-9]{3}
}

reactOnNPC ASCIInumberKiller num {
	type number
msg_0 /[#=]*/
msg_1 /[#=]*/
msg_2 /[#=]*/
msg_3 /[#=]*/
msg_4 /[#=]*/
msg_5 /[#=]*/
msg_6 /[#=]*/
}

reactOnNPC ASCIInumberKiller text {
	type text
msg_1 /[#=]*/
msg_2 /[#=]*/
msg_3 /[#=]*/
msg_4 /[#=]*/
msg_5 /[#=]*/
msg_6 /[#=]*/
}

######## Main configuration ########

reactOnNPC_debug 1

And this is the .pl file edited by me.

Code: Select all

###########################
# Plugin: responseOnASCIInumber.pl
# Version: 3 (24/08/2013)
# 
package responseOnASCIInumber;

use strict;
use Plugins;
use Utils;
use Globals;
use Misc;
use Log qw(message debug);

my $line_msgNum;
my $prefix = "ASCIInumberKiller";
my @num_0;
my @num_1;
my @num_2;
my @num_3;
my %reactOnNPC;

Plugins::register('responseOnASCIInumber', 'response On ASCII number', \&onUnload, \&onUnload);
my $cmd = Commands::register(['ASCIInumberKiller', 'talk response On ASCII number', \&onASCIICmd]);
my $cmd2 = Commands::register(['z', 'talk response On ASCII number', \&onASCIICmd]);

my $hooks = Plugins::addHooks(
	['packet/npc_talk', \&onNPCTalk],
	['packet/npc_talk_close', \&onUndef]
);

sub onUnload {
	Plugins::delHooks($hooks);
	Commands::unregister($cmd);
	undef $line_msgNum;
	undef $prefix;
	undef @num_0;
	undef @num_1;
	undef @num_2;
	undef @num_3;
	undef %reactOnNPC;
	message "responseOnASCIInumber plugin unloading or reloading\n", 'success';
}

sub onUndef {
	undef %reactOnNPC;
}

sub onNPCTalk {
	my (undef, $args) = @_;
	my $msg = I18N::bytesToString(unpack("Z*", substr($args->{RAW_MSG}, 8)));
	my @npcMsg = split(/\^/,$msg);
	$msg ='';
	my $code = (defined $config{$prefix."_0_BgColor"})?$config{$prefix."_0_BgColor"}:"^[B-Fb-f][A-Fa-f0-9][D-Fd-f][A-Fa-f0-9]{3}";
	debug "[responseOnASCIInumber] BgColor is '$code'\n", "success";
	foreach my $line (@npcMsg) {
# Convert ASCII Background to '='
		if ($line =~ s/$code//) {
			$line =~ s/./=/g;
		} else {
# Convert ASCII Number to '#'
			$line =~ s/^[A-Fa-f0-9]{6}//;
			$line =~ s/./#/g;
		}
		$msg .= $line;
	}
	debug "[responseOnASCIInumber] Convert NPC message to: $msg\n", "success";
	if (!%reactOnNPC || $reactOnNPC{action}) {
		undef %reactOnNPC if %reactOnNPC;
		$reactOnNPC{index} = 1;
		$reactOnNPC{msg}[$reactOnNPC{index}] = $msg;
	} else {
		$reactOnNPC{index}++;
		$reactOnNPC{msg}[$reactOnNPC{index}] = $msg;
	}
}

sub onCheckASCII {
	undef @num_0;
	undef @num_1;
	undef @num_2;
	undef @num_3;
	my $line_msg = $reactOnNPC{index};
	$line_msgNum = 0;
	my $lengthCharNumber = (defined $config{$prefix."_0_lengthCharNumber"})?$config{$prefix."_0_lengthCharNumber"}:8;
	debug "[responseOnASCIInumber] lengthCharNumber is $lengthCharNumber\n", "success";
	for (my $i = 1; $i < $reactOnNPC{index}+1; $i++) {
		$i = "0$i" if $i < 10;
		message "[$i] : $reactOnNPC{msg}[$i]\n", "success";
	}
	#get num & position
	for (my $i = 0; $i <= length($reactOnNPC{msg}[$line_msg-1]); $i++) {
		for (my $j = 0; $j <= length($reactOnNPC{msg}[$line_msg-1]) - $lengthCharNumber; $j++) {
			$num_0[$i]	= substr($reactOnNPC{msg}[$line_msg-4], $i, $lengthCharNumber);
			$num_0[$i] .= substr($reactOnNPC{msg}[$line_msg-3], $i, $lengthCharNumber);
			$num_0[$i] .= substr($reactOnNPC{msg}[$line_msg-2], $i, $lengthCharNumber);
			$num_0[$i] .= substr($reactOnNPC{msg}[$line_msg-1], $i, $lengthCharNumber);
			$num_0[$i] .= substr($reactOnNPC{msg}[$line_msg], $i, $lengthCharNumber);

			$num_1[$i]	= substr($reactOnNPC{msg}[$line_msg-5], $i, $lengthCharNumber);
			$num_1[$i] .= substr($reactOnNPC{msg}[$line_msg-4], $i, $lengthCharNumber);
			$num_1[$i] .= substr($reactOnNPC{msg}[$line_msg-3], $i, $lengthCharNumber);
			$num_1[$i] .= substr($reactOnNPC{msg}[$line_msg-2], $i, $lengthCharNumber);
			$num_1[$i] .= substr($reactOnNPC{msg}[$line_msg-1], $i, $lengthCharNumber);

			$num_2[$i]	= substr($reactOnNPC{msg}[$line_msg-6], $i, $lengthCharNumber);
			$num_2[$i] .= substr($reactOnNPC{msg}[$line_msg-5], $i, $lengthCharNumber);
			$num_2[$i] .= substr($reactOnNPC{msg}[$line_msg-4], $i, $lengthCharNumber);
			$num_2[$i] .= substr($reactOnNPC{msg}[$line_msg-3], $i, $lengthCharNumber);
			$num_2[$i] .= substr($reactOnNPC{msg}[$line_msg-2], $i, $lengthCharNumber);

			$num_3[$i]	= substr($reactOnNPC{msg}[$line_msg-7], $i, $lengthCharNumber);
			$num_3[$i] .= substr($reactOnNPC{msg}[$line_msg-6], $i, $lengthCharNumber);
			$num_3[$i] .= substr($reactOnNPC{msg}[$line_msg-5], $i, $lengthCharNumber);
			$num_3[$i] .= substr($reactOnNPC{msg}[$line_msg-4], $i, $lengthCharNumber);
			$num_3[$i] .= substr($reactOnNPC{msg}[$line_msg-3], $i, $lengthCharNumber);
		}
		$line_msgNum += 1;
	}
	undef %reactOnNPC if %reactOnNPC;
}

sub onASCIICmd {
	my (undef, $args) = @_;
	&onCheckASCII;
	my %digit = (
	'#########====###====###====########' => 0,
	'==####=##==#####====#####==#==####=' => 0,
	'==####=##====###====###====#==####=' => 0,
	'==####=##==##=====##=====##=#######' => 1,
	'==####=====##=====##=====##=#######' => 1,
	'==####=##====#====##===##===#######' => 2,
	'######=======#==#######=====#######' => 2,
	'#######======##########=====#######' => 2,
	'######=======#==####=======#######=' => 3,
	'#######======########======########' => 3,
	'==####=##====#====#####====#==####=' => 3,
	'##====###====########======#======#' => 4,
	'====###==##==###====########======#' => 4,
	'======#====###==##==########======#' => 4,
	'#########=====#######======########' => 5,
	'==#######=====######=======#######=' => 5,
	'====##===##===#########====#==####=' => 6,
	'==####=##=====#########====#==####=' => 6,
	'#########=====#########====########' => 6,
	'#######======#====##===##===##=====' => 7,
	'#######=====##=######===##===##====' => 7,
	'#######======#======#======#======#' => 7,
	'#########====#==####=##====########' => 8,
	'#########====##########====########' => 8,
	'==####=##====#==####=##====#==####=' => 8,
	'#########====#==#####====##=####===' => 9,
	'#########====########======########' => 9,
	'==####=##====#==#####====##===##===' => 9,
	'==#=====#=#===#===#==#####==#===#==' => 'a',
	'#####==#===#==####===#===#==#####==' => 'b',
	'#####==#======#======#======#####==' => 'c',
	'###====#==#===#===#==#===#==####===' => 'd',
	'#####==#======####===#======#####==' => 'e',
	'#####==#======####===#======#======' => 'f',
	'#####==#======#==##==#===#==#####==' => 'g',
	'#===#==#===#==#####==#===#==#===#==' => 'h',
	'=###=====#======#======#=====###===' => 'i',
	'==###=====#======#===#==#===####===' => 'j',
	'#==#===#=#====##=====#=#====#==#===' => 'k',
	'#======#======#======#======#####==' => 'l',
	'#===#==##=##==#=#=#==#===#==#===#==' => 'm',
	'#===#==##==#==#=#=#==#==##==#===#==' => 'n',
	'#####==#===#==#===#==#===#==#####==' => 'o',
	'#####==#===#==#####==#======#======' => 'p',
	'####===#==#===###====#==#===#===#==' => 'r',
	'#####==#======#####======#==#####==' => 's',
	'#####====#======#======#======#====' => 't',
	'#===#==#===#==#===#==#===#==#####==' => 'u',
	'#===#==#===#===#=#====#=#=====#====' => 'v',
	'#===#==#===#==#=#=#==#=#=#===#=#===' => 'w',
	'#===#===#=#=====#=====#=#===#===#==' => 'x',
	'=#==#===#==#====##=====#=====#=====' => 'y',
	'#####=====#=====#=====#=====#####==' => 'z',
	);

	my @result_;
	my $ans = '';
	
	foreach (keys %digit) {
		for (my $k = 0; $k <= $line_msgNum; $k++) {
			if ($_ eq $num_0[$k] ) {
				$result_[$k] = $digit{$_};
			}
			if ($_ eq $num_1[$k] ) {
				$result_[$k] = $digit{$_};
			}
			if ($_ eq $num_2[$k] ) {
				$result_[$k] = $digit{$_};
			}
			if ($_ eq $num_3[$k] ) {
				$result_[$k] = $digit{$_};
			}
		}
	}
	for (my $k = 0; $k <= @result_; $k++) {
		$ans .= $result_[$k]
	}
	$cmd = "talk $args ".$ans;
	message "[responseOnASCIInumber] Wait 3 sec. and executing command: \"$cmd\".\n", "success";
# add delay 1-3 sec before $cmd
	my $startTime = time;
	while (1) {
		last if (timeOut($startTime,3));
	}
	Commands::run($cmd);
	undef $cmd;
}

1;

chubz080511
Noob
Noob
Posts: 7
Joined: 18 Jul 2014, 01:07
Noob?: Yes

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#562 Post by chubz080511 »

sorry can someone help me i cant understand any of this.did i do this correctly reactOnNPC.pl & responseOnASCIInumber.pl are in my C:\Users\RaeRon\Desktop\Bot\bot\plugins\macro

and my config block

Code: Select all

getAuto Fire Arrow {
	minAmount 0
	maxAmount 1000
	passive 0
}

getAuto Butterfly Wing {
	minAmount 0
	maxAmount 5
	passive 0
}


ASCIInumberKiller {
   lengthCharNumber 9
   BgColor ^83F52C
}

rreactOnNPC ASCIInumber num {
type number
msg_0 /.*/
msg_1 /.*/
msg_2 /.*/
msg_3 /.*/
msg_4 /.*/
msg_5 /.*/
msg_6 /.*/
}
@responseOnASCIInumber.pl

Code: Select all

sub onASCIICmd {
	my (undef, $args) = @_;
	&onCheckASCII;
	my %digit = (
	
 	'###==#######==#######==#######==#####======##' => 1,
   	'#=======#==#####==#######==#=======#==#######' => 2,
   	'#######==#=======########====#####==#=======#' => 3,
   	'==####==#==####==#=========######==#######==#' => 4,
   	'==#######=======########==#==####==##======##' => 5,
   	'==#######========#==#####====#####==#======##' => 6,
   	'========#==####==#####==######==#######==####' => 7,
   	'==#####==#=======#==#####====#####==#=======#' => 8,
   	'==#####==#========#######====#####==#=======#' => 9,
	);
this is for

snichi wrote:Hi,

I need some assistance on getting a macro to bypass this antibot security.

Here are the screenshots:

Image

Image


Hoping for kind response on this concern.

Thanks in advance...

BTW i've tried to use this responseOnASCIInumber.pl #for response BotKiller(ASCII)

but still not working for me...

chubz080511
Noob
Noob
Posts: 7
Joined: 18 Jul 2014, 01:07
Noob?: Yes

Re: <<< Anti BotKiller >>>

#563 Post by chubz080511 »

help anyone???

autoTalkCont 1 not working with anti bot i need to press next first..

i tried using xkore 1 when i login and press enter(next) my bot auto answer the question.

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#564 Post by 4epT »

chubz080511, use this settings:

Code: Select all

ASCIInumberKiller {
	lengthCharNumber 9
	BgColor ^83F52C
}

reactOnNPC ASCIInumberKiller num {
	type number
	msg_0 /[#=]*/
	msg_1 /[#=]*/
	msg_2 /[#=]*/
	msg_3 /[#=]*/
	msg_4 /[#=]*/
	msg_5 /[#=]*/
	msg_6 /[#=]*/
}
...
...
autoTalkCont 1
I use "XKore 0", it works:
Unknown #110990216: Done talking
You are now: state: Frozen
Options changed.
You are now immune to attacks.
You are now: look: Hiding
Unknown #110990213: [Anti Bot]
Unknown #110990213: Bot checking time
Unknown #110990213: Please input the number you see
Unknown #110990213: Auto-continuing talking
Allowed other player invite to Party
Other players are not allowed to view your Equipment.
Unknown #110990213: ###################################
Unknown #110990213: ###################################
Unknown #110990213: ###################################
Unknown #110990213: ###################################
Unknown #110990213: ###################################
Unknown #110990213: ###################################
Unknown #110990213: ###################################
NPC Exists: Unknown #110990213 (115, 113) (ID 110990213) - (0)
Unknown #110990213: Type 'talk num <number #>' to input a number.
[reactOnNPC] Reacting to NPC. Executing command "ASCIInumberKiller num".
[01] : ##########
[02] : #################
[03] : ###############################
[04] : ############========###############
[05] : ############==####==###############
[06] : ################==#################
[07] : ###############==##################
[08] : ###############==##################
[09] : ###############==##################
[10] : ###############==##################
[responseOnASCIInumber] Wait 3 sec. and executing command: "talk num 7".
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

k1nt4r0
Human
Human
Posts: 30
Joined: 11 Jun 2014, 12:13
Noob?: Yes

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#565 Post by k1nt4r0 »

mine only can unswer for number ascii antibot, but cant answer text antibot til now meh ~_~"

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#566 Post by 4epT »

k1nt4r0, give me your servers.txt
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

chubz080511
Noob
Noob
Posts: 7
Joined: 18 Jul 2014, 01:07
Noob?: Yes

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#567 Post by chubz080511 »

its ok now i monitored the bot and discovered that it answers my bot..my bad..but heres the problem.in my server once you login and your character is in the field with maps it automatically froze you and ask the antibot but the bot wont answer any guide to help me with this?but if you are in town theres when you login theres no security check there.so what im doing is login in the character normal way then back to town then open the bot..so once i get dc or my net gets dc when the bot reconnects its jst frozen.

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#568 Post by 4epT »

chubz080511, show a screenshot
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

k1nt4r0
Human
Human
Posts: 30
Joined: 11 Jun 2014, 12:13
Noob?: Yes

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#569 Post by k1nt4r0 »

4epT wrote:I'm sorry, I meant servers.txt
ohh
here sir http://www.4shared.com/office/tH0xpcjAba/servers.html

D-Dare-Devil
Plain Yogurt
Plain Yogurt
Posts: 67
Joined: 24 Jul 2014, 23:37
Noob?: Yes

Re: responseOnASCIInumber.pl #for response BotKiller(ASCII)

#570 Post by D-Dare-Devil »

Here's my problem :(
Image


---------
Image

------

They only require "1number" to type so that the bot can back to normal from frozen state.


This server >>> http://www.legendofragnarok.com/

Locked