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

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

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

#71 Post by Mucilon »

babolgam
No problem...

blackbeat0599
There are 2 reasons that this problem may happen:
1) If you did not open the plugin file and edit the $lengthCharNumber variable to 8, in your case. Find at the line 74 this declaration:

Code: Select all

my $lengthCharNumber = 5;
Change it to:

Code: Select all

my $lengthCharNumber = 8;
If it is already 8, never mind!
2) You need to input the number pattern from your server to your plugin, you can follow the tutorial I made:
http://forums.openkore.com/viewtopic.php?p=4468#p4468
Try to read the posts after this mini tutorial, there are a lot of doubts posted that you may have...

People who downloaded the new plugin to test
Did you all use it?
Did it work fine?
Did You have any problem installing it?
I need to know... if it is ok, I'll change the first post and use just this one!
Thanks for your help in advance.
babolgam
Noob
Noob
Posts: 17
Joined: 27 May 2008, 06:50
Noob?: No

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

#72 Post by babolgam »

Muc I followed your mini tutorial but I can't seem to figure out the pattern for the server I'm playing with. I can't figure out how many characters on each line cuz it randomly changes. Here is the file for the numbers from our server.
You do not have the required permissions to view the files attached to this post.
genox28
Noob
Noob
Posts: 15
Joined: 22 Apr 2008, 07:41

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

#73 Post by genox28 »

@mucilon

for me its working

@all

i hope we all not abuse this bot on myRO.,
and hope admin will not visit this page.,
were all dead if he did that.,

so now., no feeding ok try to have some numbers
Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#74 Post by Mucilon »

babolgam
Let's make it again...
When you have this numbers:

Code: Select all

[12] : =########===================
[13] : =======##=============####==
[14] : =====##===########==##====##
[15] : ===##=====##==========####==
[16] : =##=======########==##====##
[17] : ==========##====##====####==
[18] : ==========########==========
Each number has 8 character per line, these numbers don't change the length, what happen is that there are "spaces" between the numbers, so we can split them, like this:

Code: Select all

[12] : =  ########  =  ========  ==  ========
[13] : =  ======##  =  ========  ==  ==####==
[14] : =  ====##==  =  ########  ==  ##====##
[15] : =  ==##====  =  ##======  ==  ==####==
[16] : =  ##======  =  ########  ==  ##====##
[17] : =  ========  =  ##====##  ==  ==####==
[18] : =  ========  =  ########  ==  ========
Like this, each number has 8 character, isn't it?
So we take off the lines that are not used by the number:

Code: Select all

[12] : =  ########  =            ==  
[13] : =  ======##  =            ==  ==####==
[14] : =  ====##==  =  ########  ==  ##====##
[15] : =  ==##====  =  ##======  ==  ==####==
[16] : =  ##======  =  ########  ==  ##====##
[17] : =            =  ##====##  ==  ==####==
[18] : =            =  ########  ==  
So we use just this lines to each number. Did you get it?
Like this:
'########======##====##====##====##======' => 7,

genox28
OK, thanks.
I'll change the first post!
babolgam
Noob
Noob
Posts: 17
Joined: 27 May 2008, 06:50
Noob?: No

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

#75 Post by babolgam »

So it's going to be the same pattern for all the questions? From what I see the pattern is 1 = then another 1 = then 2 = for the spaces. I compared it with the first digits given. I kinda get it but I'll still try if something will come up. Thanks a lot sir. Now I'm learning...xD
babolgam
Noob
Noob
Posts: 17
Joined: 27 May 2008, 06:50
Noob?: No

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

#76 Post by babolgam »

Sir I've tried the new Plugin you made and also inputted all the necessary numbers needed but there's a new prob... Here is the console log. I need some help on this. Thanks
You do not have the required permissions to view the files attached to this post.
Mucilon
Cybernatic Entity
Cybernatic Entity
Posts: 249
Joined: 04 Apr 2008, 13:15
Noob?: Yes
Location: Brazil

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

#77 Post by Mucilon »

babolgam
Did you use this block at your config.txt?

Code: Select all

responseOnASCIInumber {
  lengthCharNumber 8    # length of each line of the number
  colorCode 0                 # color code of your server
}
Today there are two color codes 0 and 1,
0 to genox28's server (I think it is myRO) and most of the servers
1 to Forgotten's server
babolgam
Noob
Noob
Posts: 17
Joined: 27 May 2008, 06:50
Noob?: No

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

#78 Post by babolgam »

Yeah I did. Am i suppose to delete this lines? I just left it there and just added the block you made. What I noticed about the errors is that it always says this: Error in function 'talk num' (Respond to NPC). You must specify a number. Should I put a number on the config block? Sorry for the hassle i'm giving you and thank you for helping.

reactOnNPC ASCIInumber num {
type number
msg_0 /.*/
msg_1 /.*/
msg_2 /.*/
msg_3 /.*/
msg_4 /.*/
msg_5 /.*/
msg_6 /.*/

}

I tried changing the my $ to 8 and also the default which is this:
my $lengthCharNumber = $config{$prefix."_lengthCharNumber"}; but I still get same errors as usual. What seems to be the problem here?
Last edited by babolgam on 29 May 2008, 22:13, edited 1 time in total.
KentCritz
Noob
Noob
Posts: 15
Joined: 16 May 2008, 04:45
Noob?: Yes

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

#79 Post by KentCritz »

mucilon i think the color code 0 not working in myRO... i use code 0 in my myro bot... it doesnt show the numbers...
You do not have the required permissions to view the files attached to this post.
Forgotten
Noob
Noob
Posts: 5
Joined: 21 May 2008, 23:41
Noob?: Yes

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

#80 Post by Forgotten »

Now i can read the text in console. thanks Mucion. but my bot not auto answer. Error in function 'talk num' (Respond to NPC). You must specify a number.
and What block i must add at my config?