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
Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#21 Post by Mucilon »

Yes you have...
As soon as I fix it, I'll post it...

heaven_love
Noob
Noob
Posts: 1
Joined: 07 May 2008, 09:38
Noob?: Yes

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

#22 Post by heaven_love »

help me please !!! :cry:
My Ro server use system : BotKiller #1 - Method 5: ASCII chars...
http://www.eathena.ws/board/index.php?showtopic=120522

Image

my bot : Image

but i don't understand perl (Practical Extraction and Repor) :(
i read topics for Mucilon : h ttp://forums.openkore.com/viewtopic.php?f=34&t=575
plz help me : responseOnASCIIchars.pl and code of config.txt
:X

i have openkore-2.0.5.1 and .svn

Thanks a lot

Damn
Noob
Noob
Posts: 8
Joined: 22 Apr 2008, 05:33

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

#23 Post by Damn »

Goodluck Mucilon~

niconiconico
Noob
Noob
Posts: 7
Joined: 18 May 2008, 04:33
Noob?: Yes

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

#24 Post by niconiconico »

Mucilon i have the same problem like gelo_norona pls send me some update when you finish fixing the plug-in gud luck mucilon! Hoping you can do it!

krrado
Noob
Noob
Posts: 6
Joined: 20 May 2008, 00:30
Noob?: No
Location: Brazil

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

#25 Post by krrado »

this is my log

[May 20 02:19:02 2008.57] [macro][log] ############## ALGUEM ME TESTOU ##############################
[May 20 02:19:02 2008.58] Item removido do inventário: Mastela Fruit (16) x 1
[May 20 02:19:02 2008.58] [GM] Police: I really sorry but i need to know if you are Playing or Boting.
[May 20 02:19:02 2008.59] Alvo morreu
[May 20 02:19:02 2008.59] Unknown #110084413: [Police]
[May 20 02:19:02 2008.61] Unknown #110084413: Input this number:
[May 20 02:19:02 2008.63] Unknown #110084413:
[May 20 02:19:02 2008.64] Unknown #110084413: one of tên
[May 20 02:19:02 2008.65] Unknown #110084413:
[May 20 02:19:02 2008.66] Unknown #110084413: ninêtÿ seconds to respond
[May 20 02:19:02 2008.67] Item Apareceu: Wind of Verdure (6) x 1 (188, 68)
[May 20 02:19:02 2008.67] Unknown #110084413: auto-continuando a conversa
[May 20 02:19:02 2008.68] Item removido do inventário: Wind of Verdure (17) x 1
[May 20 02:19:02 2008.71] Item Apareceu: Orange (7) x 1 (188, 70)
[May 20 02:19:02 2008.71] Item removido do inventário: Orange (18) x 1
[May 20 02:19:02 2008.71] Teleportando para evitar todos os jogadores
[May 20 02:19:03 2008.34] Unknown #110084413: ððððððððð#########ðððððððððð
[May 20 02:19:03 2008.41] Unknown #110084413: ððððððððð#########ðððððððððð
[May 20 02:19:03 2008.57] Unknown #110084413: ððððððððð#########ðððððððððð
[May 20 02:19:03 2008.64] Unknown #110084413: ððððððððð#########ðððððððððð
[May 20 02:19:03 2008.81] Unknown #110084413: ððððððððð#########ðððððððððð
[May 20 02:19:03 2008.88] Unknown #110084413: ððððððððð#########ðððððððððð
[May 20 02:19:03 2008.10] Unknown #110084413: ððððððððð#########ðððððððððð
[May 20 02:19:03 2008.11] Unknown #110084413: auto-continuando a conversa
[May 20 02:19:03 2008.24] Atacando: Monster Grand Peco (2)
[May 20 02:19:03 2008.30] Existe um NPC: Unknown #110084413 (320, 150) (ID 110084413) - (0)
[May 20 02:19:03 2008.31] Unknown #110084413: Digite 'talk num <número#>' para entrar um número.
[May 20 02:19:03 2008.31] [reactOnNPC] Reacting to NPC. Executing command "ASCIInumber num".
[May 20 02:19:03 2008.33] [1] : ########
[May 20 02:19:03 2008.34] [2] : ##################
[May 20 02:19:03 2008.35] [3] : #
[May 20 02:19:03 2008.37] [4] : ##########
[May 20 02:19:03 2008.37] [5] : #
[May 20 02:19:03 2008.38] [6] : ###########################
[May 20 02:19:03 2008.39] [7] : #########=########==========
[May 20 02:19:03 2008.40] [8] : #########=======##==========
[May 20 02:19:03 2008.43] [9] : #########=====##====########
[May 20 02:19:03 2008.43] [10] : #======##===##==##========##
[May 20 02:19:03 2008.45] [11] : #==######=##==========######
[May 20 02:19:03 2008.45] [12] : #====##=================##==
[May 20 02:19:03 2008.47] [13] : #==##=================##====
[May 20 02:19:03 2008.51] [ASCIInumber v2.1] Executing command "talk num ".
[May 20 02:19:03 2008.52] [ASCIInumber] *** Delay 1-3 sec. before talk num ***.

I'm using ASCIInumber v2.1 but don't work
Can you help about that Mucilon?
what I need do?

I used lengthCharNumber =8 and my bot try answer but missed all
see this log

and console3 with debug 2, what lengthCharNumber I use?
Attachments
console3.txt
debug 2
(38.02 KiB) Downloaded 778 times
console2.txt
(100.72 KiB) Downloaded 666 times

Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#26 Post by Mucilon »

Analysing the plugin, it seems to support these antibots...
You just need to input the number pattern from your server, here goes a tutorial:

Important TIP: if when you are playing with the client and the antibot shows readble numbers, I mean you can read without problems and at the openkore windows the number translated is scrumble, with unreadble or hard to read numbers, this is a color code problem... so I'll need to see your antibot text with debug on (debug 1) to compare the colors of the antibot and of the plugin...

When your server test you with this kind of antibot and the bot answer it wrong, eg. answering with some numbers missing or answering nothing or changing the number to answer... This is probably because you need to put your server number pattern inside the plugin. How to do it, you ask:

TIP: I recommend to use the notepad++ program, it is a very good editor!

1) First of all, search this part of program at the plugin file at line 197:

Code: Select all

sub onASCIICmd {
    my (undef, $args) = @_;
	&onCheckASCII;
	my %digit =  ('######===##===##===######' => 0,
                '==####==##==######====######==##==####==' => 0,
                '==####==##====####====####====##==####==' => 0,
                '##########====####====####====##########' => 0,
This is where we will have to input the numbers...

2) To input our server's number to the plugin, do this:
Example with numbers from krrado server:

Code: Select all

 [11] : ################################
 [12] : ==########====####============
 [13] : ==##====##==##==##======####==
 [14] : ==########======##====####====
 [15] : ==##====##======####==########
 [16] : ==########==########==##====##
 [17] : ========================####==
 [18] : ==============================
We can split the numbers:

Code: Select all

 [11] : ##  ########  ##  ########  ##  ########  ##
 [12] : ==  ########  ==  ==####==  ==  ========
 [13] : ==  ##====##  ==  ##==##==  ==  ==####==
 [14] : ==  ########  ==  ====##==  ==  ####====
 [15] : ==  ##====##  ==  ====####  ==  ########
 [16] : ==  ########  ==  ########  ==  ##====##
 [17] : ==  ========  ==  ========  ==  ==####==
 [18] : ==  ========  ==  ========  ==  ========
And erase the lines not used to the plugin, the numbers normally have 5 lines.

Code: Select all

 [11] : ##            ##            ##  
 [12] : ==  ########  ==  ==####==  ==  
 [13] : ==  ##====##  ==  ##==##==  ==  ==####==
 [14] : ==  ########  ==  ====##==  ==  ####====
 [15] : ==  ##====##  ==  ====####  ==  ########
 [16] : ==  ########  ==  ########  ==  ##====##
 [17] : ==            ==            ==  ==####==
 [18] : ==            ==            ==  
At this example all numbers have 8 characters at each line, so we need to copy this 8 characters from each line and place them in just one line to each number, like this:
Number 8:
line 12 . . . line 13 . . line 14 . . line 15 . . line 16
######## ##====## ######## ##====## ########
But we need to remove the spaces:
Number 8 = ##########====############====##########
And now we use the same syntax as the plugin use:
'##########====############====##########' => 8,
So at the plugin should be something like this with the new number:

Code: Select all

sub onASCIICmd {
    my (undef, $args) = @_;
	&onCheckASCII;
	my %digit =  ('######===##===##===######' => 0,
                '##########====############====##########' => 8,
                '==####==##==######====######==##==####==' => 0,
                '==####==##====####====####====##==####==' => 0,
                '##########====####====####====##########' => 0,
We can input the numbers at any order, but should be nicer place them sorted, so we can find them easily.
3) Just do this to every number from our server and it will work fine! At least I hope! :geek:
4) In some cases there are narrow numbers, for that follow this:
When you receive this kind of numbers:

Code: Select all

===============####================
==================#================
=====####======####=======#========
=====#=========#==========#========
=====####======######=====#========
=====#==#==========================
=====####==========================
To that case we need to set the $lengthCharNumber to the number with the larger length, in the exemple above the number 2 has 6 character of length.
So we'll need to split the numbers with 6 characters length like this:

Code: Select all

====  ======  =====  ####==  ===  ======  =====
====  ======  =====  ===#==  ===  ======  =====
====  =####=  =====  ####==  ===  ==#===  =====
====  =#====  =====  #=====  ===  ==#===  =====
====  =####=  =====  ######  ===  ==#===  =====
====  =#==#=  =====  ======  ===  ======  =====
====  =####=  =====  ======  ===  ======  =====
And as we have only 5 lines at each number:

Code: Select all

====          =====  ####==  ===          =====
====          =====  ===#==  ===  ======  =====
====  =####=  =====  ####==  ===  ==#===  =====
====  =#====  =====  #=====  ===  ==#===  =====
====  =####=  =====  ######  ===  ==#===  =====
====  =#==#=  =====          ===  ======  =====
====  =####=  =====          ===          =====
So the number 1 will be like this:
'========#=====#=====#=========' => 1,
Last edited by Mucilon on 10 Sep 2008, 07:52, edited 2 times in total.

KentCritz
Noob
Noob
Posts: 15
Joined: 16 May 2008, 04:45
Noob?: Yes

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

#27 Post by KentCritz »

i also have the same error

Error in function 'talk num' (Respond to NPC)
You must specify a number.


i dunno what to do now..

see part of my console...
Attachments
console.txt
see..
(10.83 KiB) Downloaded 822 times

Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#28 Post by Mucilon »

KentCritz
Did you follow the mini tutorial above?
If you did, post the lines (numbers) you inputed on the plugin.
For those last numbers from your file, they should be like this:

Code: Select all

 [7]  : ====####===########=========
 [8]  : ==########=====####=========
 [9]  : ==##====##=##==####===####==
[10] : ==####==##=======##=##====##
[11] : ====####=========##=====####
[12] : ====================##====##
[13] : ======================######
Lines to be inputed on the plugin:

Code: Select all

'==####==##########====######==##==####==' => 0,
'########====######==####======##======##' => 7,
'==####==##====##====######====##==######' => 3,

niconiconico
Noob
Noob
Posts: 7
Joined: 18 May 2008, 04:33
Noob?: Yes

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

#29 Post by niconiconico »

Mucilon im really a noob i can't understand any of what u are saying im sori..

i can't attach a console because the police is not appearing durng this time.!

niconiconico
Noob
Noob
Posts: 7
Joined: 18 May 2008, 04:33
Noob?: Yes

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

#30 Post by niconiconico »

So what you mean to say Mucilon is I have to waait everu number to appear on the program and edit the Plugin until i complete the numbers: 0 - 9?

Locked