Openkore.com

OpenKore Forums
It is currently 19 Sep 2014, 22:03

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 369 posts ]  Go to page Previous  1 ... 9, 10, 11, 12, 13, 14, 15 ... 37  Next
Author Message
 Post subject: Re: reactOnNPC v.1.1.1 by hakore
PostPosted: 25 Jun 2008, 22:04 
Offline
Noob
Noob

Joined: 25 Jun 2008, 20:53
Posts: 4
First excuse my english...
help ! i need a hand... and yess i'm a noob.i can't pass this anti bot since this is my first attempt!
I know nothing about PERL so what I can do is copas (Copy Paste) from this forum... every possible code and plugins in this forum to pass this anti bot system(at least that is what i can think of :? ). If you're already solved this kind of anti bot system could u give a hint (hint for a noob i meant ;) ) or link(s). I've found this same type of question of anti bot system in somewhere in this forum but it was never answered... as far as I could find. I've attached the file about console log and code at my config.txt. thx b4


Attachments:
LogsAndConfig.txt [6.87 KiB]
Downloaded 256 times
Top
 Profile  
 
 Post subject: Re: reactOnNPC v.1.1.1 by hakore
PostPosted: 26 Jun 2008, 08:29 
Offline
Cybernatic Entity
Cybernatic Entity
User avatar

Joined: 04 Apr 2008, 13:15
Posts: 249
Location: Brazil
hakore
No problem...
About the test, I'm not playing or bot anymore... don't have much time. If someone is willing to test it, please do it...
As soon as it is OK, I'll post it!

diandra05
Your english is fine... but you forgot to translate the file, I don't speak malasian (at least I think it is).

_________________
Old Openkore Manual | Macro Plugin Manual | Old Forum | My Perl Bible | Guide to figuring out server information


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.1.1.1 by hakore
PostPosted: 26 Jun 2008, 11:51 
Offline
Noob
Noob

Joined: 25 Jun 2008, 20:53
Posts: 4
Mucilon
I've already translated it but not all of it :? . O well ;) here i've translated it + add some number translation in case u'll need it. O btw I'm Indonesian and thx again.


Attachments:
LogsAndConfig.txt [7.76 KiB]
Downloaded 202 times
Top
 Profile  
 
 Post subject: Re: reactOnNPC v.1.1.1 by hakore
PostPosted: 26 Jun 2008, 15:01 
Offline
Cybernatic Entity
Cybernatic Entity
User avatar

Joined: 04 Apr 2008, 13:15
Posts: 249
Location: Brazil
First of all, take off the aabot.pl and the ASCIINumber plugins from your plugins folder.
You only need the reactOnNPC plugin!
Use something like this at your config.txt:
Code:
reactOnNPC talk num @eval(my $numerotxt = #2~1;my $answer;switch ($numerotxt) { case /seratus/ {$answer=1} case /duaratus/ {$answer=2} case /tigaratus/ {$answer=3} case /empatratus/ {$answer=4} case /limaratus/ {$answer=5} case /enamratus/ {$answer=6} case /tujuhratus/ {$answer=7} case /delapanratus/ {$answer=8} case /sembilanratus/ {$answer=9}}switch ($numerotxt) { case /sepuluh|belas/ {$answer.=1} case /duapuluh/ {$answer.=2} case /tigapuluh/ {$answer.=3} case /empatpuluh/ {$answer.=4} case /limapuluh/ {$answer.=5} case /enampuluh/ {$answer.=6} case /tujuhpuluh/ {$answer.=7} case /delapanpuluh/ {$answer.=8} case /sembilanpuluh/ {$answer.=9} else {$answer.=0}}switch ($numerotxt) { case / .?satu.? |sebelas/ {$answer.=1} case / .?dua.? |duabelas/ {$answer.=2} case / .?tiga.? |tigabelas/ {$answer.=3} case / .?empat.? |empatbelas/ {$answer.=4} case / .?lima.? |limabelas/ {$answer.=5} case / .?enam.? |enambelas/ {$answer.=6} case / .?tujuh.? |tujuhbelas/ {$answer.=7} case / .?delapan.? |delapanbelas/ {$answer.=8} case / .?sembilan.? |sembilanbelas/ {$answer.=9} else {$answer.=0}}return $answer;)
   type number
   msg_0 /\[Police\]/
   msg_1 /Input This Number:/
   msg_2 /(\w+)/
}

You will need to input the accents!

_________________
Old Openkore Manual | Macro Plugin Manual | Old Forum | My Perl Bible | Guide to figuring out server information


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.1.1.1 by hakore
PostPosted: 27 Jun 2008, 03:36 
Offline
Noob
Noob

Joined: 25 Jun 2008, 20:53
Posts: 4
I have tried it... but is not working... even the kore didn't try to answer d anti bot system, what cause of it ? is it because of this "You will need to input the accents!" or something else that i have to add. I haven't changed anything since i am a noob and i want to know d output of this code so if the code answer d anti bot but wrong answer maybe i can edit it somehow.
here i've attached the log + translation and the reactOnNPC plugins in case the problem isn't in the code but in the plugins.
oo btw "You will need to input the accents!" you mean something like this ?
^3FBA11t dêlâpån y^029105 pülûh s^5E9D86f lïma g^000000.
^3FBA11t Eight y^029105 y s^5E9D86f lïma g^000000.

THX


Attachments:
LogConfigPlugins.txt [11.08 KiB]
Downloaded 154 times
Top
 Profile  
 
 Post subject: Re: reactOnNPC v.1.1.1 by hakore
PostPosted: 27 Jun 2008, 10:31 
Offline
Cybernatic Entity
Cybernatic Entity
User avatar

Joined: 04 Apr 2008, 13:15
Posts: 249
Location: Brazil
You are using the plugin I changed to use just for nesting commands, to your case you need the original plugin, download it from the first post.
Do the follow to see the messages from the plugin without using debug:
1) Open your reactOnNPC.pl file
2) Find these lines: (they are not together)
debug "[reactOnNPC] NPC message saved ($reactOnNPC{index}): \"$msg\".\n", "reactOnNPC";
debug "[reactOnNPC] Conditions for reactOnNPC_$i not met.\n", "reactOnNPC";
debug "[reactOnNPC] One or more lines doesn't match for \"reactOnNPC_$i\" ($j).\n", "reactOnNPC";
debug "[reactOnNPC] Matching \"$subject\" to \"$pattern\" ($line)... ", "reactOnNPC";
debug "doesn't match.\n", "reactOnNPC";
3) Where is written debug change it to message at all these lines.
Ex: message "doesn't match.\n", "reactOnNPC";

About the accents, I mean just this:
delapan -> dêlâpån
Just add the symbols above the vowels!

You don't need the color codes, like this: ^3FBA11
Everything started with ^ and followed by 6 hexadecimal digits is a color code.

Right now the plugin isn't work because of the letters between the words.
Try this code:
Code:
reactOnNPC talk num @eval(my $numerotxt = #2~1;my $answer;switch ($numerotxt) { case /se.?.?ratus/ {$answer=1} case /dua.?.?ratus/ {$answer=2} case /tiga.?.?ratus/ {$answer=3} case /empat.?.?ratus/ {$answer=4} case /lima.?.?ratus/ {$answer=5} case /enam.?.?ratus/ {$answer=6} case /tujuh.?.?ratus/ {$answer=7} case /delapan.?.?ratus/ {$answer=8} case /sembilan.?.?ratus/ {$answer=9}}switch ($numerotxt) { case /se.?.?puluh|belas/ {$answer.=1} case /dua.?.?puluh/ {$answer.=2} case /tiga.?.?puluh/ {$answer.=3} case /empat.?.?puluh/ {$answer.=4} case /lima.?.?puluh/ {$answer.=5} case /enam.?.?puluh/ {$answer.=6} case /tujuh.?.?puluh/ {$answer.=7} case /delapan.?.?puluh/ {$answer.=8} case /sembilan.?.?puluh/ {$answer.=9} else {$answer.=0}}switch ($numerotxt) { case /satu.{0,3}$|se.?.?belas/ {$answer.=1} case /dua.{0,3}$|dua.?.?belas/ {$answer.=2} case /tiga.{0,3}$|tiga.?.?belas/ {$answer.=3} case /empat.{0,3}$|empat.?.?belas/ {$answer.=4} case /lima.{0,3}$|lima.?.?belas/ {$answer.=5} case /enam.{0,3}$|enam.?.?belas/ {$answer.=6} case /tujuh.{0,3}$|tujuh.?.?belas/ {$answer.=7} case /delapan.{0,3}$|delapan.?.?belas/ {$answer.=8} case /sembilan.{0,3}$|sembilan.?.?belas/ {$answer.=9} else {$answer.=0}}return $answer;)
   type number
   msg_0 /\[Police\]/
   msg_1 /Input This Number:/
   msg_2 /(\w+)/
}

But don't forget the accents!

_________________
Old Openkore Manual | Macro Plugin Manual | Old Forum | My Perl Bible | Guide to figuring out server information


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.0 by hakore
PostPosted: 27 Jun 2008, 19:19 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 16 May 2008, 08:28
Posts: 99
I already added v.2.0.0 in the first page.

_________________
Whatever...


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.0 by hakore
PostPosted: 01 Jul 2008, 00:55 
Offline
Noob
Noob

Joined: 16 Jun 2008, 22:34
Posts: 16
ok i've made some additions to the reactOnNPC plugin so it will catch guild messages and succeded, but i still can't get my bot to respond, can you point me in the right direction, here is my log:

Log with Spanish words
********************
You are in Frozen state
NPC image: mets_alpha.bmp (0)
Unknown #110019081: [Policía]
[reactOnNPC] NPC message saved (1): "[^0000FFPolicía^000000]".
[Guild] Red Plant: wagabo fapeyip mivuv
[reactOnNPC] NPC message saved (2): "Plant: wagabo fapeyip mivuv".
[Guild] Black Mushroom: hap 947 tajax
[reactOnNPC] NPC message saved (3): "k Mushroom: hap 947 tajax".
[Guild] Snake: yep otarot eh exovC
[reactOnNPC] NPC message saved (4): "e: yep otarot eh exovC".
[Guild] Blue Plant: gopiconoki idudox fehE
[reactOnNPC] NPC message saved (5): " Plant: gopiconoki idudox fehE".
Unknown #110019081:
[reactOnNPC] NPC message saved (6): " ".
Unknown #110019081: Un monstruo acaba de decir un número (ver chat log)
[reactOnNPC] NPC message saved (7): "^F51200Un monstruo acaba de decir un
número (ver chat log)^000000".
Unknown #110019081:
[reactOnNPC] NPC message saved (8): " ".
Unknown #110019081: Restan sesenta y cinco segundos
[reactOnNPC] NPC message saved (9): "^0C0542 Restan
^5D1E76^35B90Bsesenta^9522A3 y ^49BC8Bcinco^000000^924C80 segundos".
Unknown #110019081: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
Statistics posting failed: HTTP server returned error status.
NPC Exists: BotKillerFnc1 (93, 62) (ID 110019081) - (0)
BotKillerFnc1: Type 'talk num <number #>' to input a number.
[reactOnNPC] onNPCAction type is: number.
Calculating random route to: Inside Pyramid(moc_pryd01): 96, 152
On route to: Inside Pyramid(moc_pryd01): 96, 152
Route Solution Ready!
----------------------------------------

Translated log

You are in Frozen state
NPC image: mets_alpha.bmp (0)
Unknown #110019081: [Police]
[reactOnNPC] NPC message saved (1): "[^0000FFPolice^000000]".
[Guild] Red Plant: wagabo fapeyip mivuv
[reactOnNPC] NPC message saved (2): "Plant: wagabo fapeyip mivuv".
[Guild] Black Mushroom: hap 947 tajax
[reactOnNPC] NPC message saved (3): "k Mushroom: hap 947 tajax".
[Guild] Snake: yep otarot eh exovC
[reactOnNPC] NPC message saved (4): "e: yep otarot eh exovC".
[Guild] Blue Plant: gopiconoki idudox fehE
[reactOnNPC] NPC message saved (5): " Plant: gopiconoki idudox fehE".
Unknown #110019081:
[reactOnNPC] NPC message saved (6): " ".
Unknown #110019081: A monster said a number (see chat log)
[reactOnNPC] NPC message saved (7): "^F51200A monster said a number (see chat log)^000000".
Unknown #110019081:
[reactOnNPC] NPC message saved (8): " ".
Unknown #110019081: Remains sixty five seconds
[reactOnNPC] NPC message saved (9): "^0C0542 Remains
^5D1E76^35B90Bsixty^9522A3 y ^49BC8Bfive^000000^924C80 seconds".
Unknown #110019081: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
Statistics posting failed: HTTP server returned error status.
NPC Exists: BotKillerFnc1 (93, 62) (ID 110019081) - (0)
BotKillerFnc1: Type 'talk num <number #>' to input a number.
[reactOnNPC] onNPCAction type is: number.
Calculating random route to: Inside Pyramid(moc_pryd01): 96, 152
On route to: Inside Pyramid(moc_pryd01): 96, 152
Route Solution Ready!
******************************
At my config.txt i have this:

reactOnNPC talk num @resp(#1~2#1~3#1~4#1~5
#2~2#2~3#2~4#2~5
#3~2#3~3#3~4#3~5
#4~2#4~3#4~4#4~5
#5~2#5~3#5~4#5~5)
{
type number
msg_0 [Policía]
msg_1 /\d+/
msg_2 /\d+/
msg_3 /\d+/
msg_4 /\d+/
msg_5 /\d+/
}
-----------------------------------------------------
I'am posting my modified reactOnNPC.pl so you can see waht i did.
a million thanks in advanced!!


Attachments:
reactOnNPC.pl [5.27 KiB]
Downloaded 244 times
Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.0 by hakore
PostPosted: 01 Jul 2008, 01:58 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 16 May 2008, 08:28
Posts: 99
Try this, and use the attached modified plugin. I need to fix some codes.

It's not tested though.

Code:
reactOnNPC talk num @eval("#g0~1" || "#g1~1" || "#g2~1" || "#g3~1") {
   msg_0 /\[Policía\]/
   msg_1 /./
   msg_2 /Un monstruo acaba de decir un número \(ver chat log\)/
   msg_3 /./
   msg_4 /Restan .* segundos/
   guildMsg_0 /^\D*(\d+)?\D*$/
   guildMsg_1 /^\D*(\d+)?\D*$/
   guildMsg_2 /^\D*(\d+)?\D*$/
   guildMsg_3 /^\D*(\d+)?\D*$/
   type number
}


Attachments:
File comment: Modified reactONNPC.pl by tomcs70
reactOnNPC.pl [6.69 KiB]
Downloaded 538 times

_________________
Whatever...
Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.0 by hakore
PostPosted: 01 Jul 2008, 05:56 
Offline
Noob
Noob

Joined: 16 Jun 2008, 22:34
Posts: 16
Million thanks Hakore. It did worked, the only funny thing is that somehow
i had to change the spanish words at the config.txt for the english version.
Here it's my log
************************************

You have look: GM Perfect Hide
You have look: Ruwach
You are in Frozen state
NPC image: mets_alpha.bmp (0)
[GM] Police: I really sorry but i need to know if you are Playing or Boting.
Unknown #110019081: [Police]
[reactOnNPC] NPC message saved (0): "[^0000FFPolice^000000]".
[Guild] Snake: axicoc 791 orovu
[reactOnNPC] Guild message saved (0): "Snake: axicoc 791 orovu".
[Guild] White Plant: ecilufi hurepek lehibu
[reactOnNPC] Guild message saved (1): "White Plant: ecilufi hurepek lehibu".
[Guild] Petite: iralul irenu bit
[reactOnNPC] Guild message saved (2): "Petite: iralul irenu bit".
[Guild] Eggyra: ugipixuf iyuc firepop
[reactOnNPC] Guild message saved (3): "Eggyra: ugipixuf iyuc firepop".
Unknown #110019081:
[reactOnNPC] NPC message saved (1): " ".
Unknown #110019081: Enter the number who said one of the monsters:
[reactOnNPC] NPC message saved (2): "^F51200Enter the number who said one of
the monsters:^000000".
Unknown #110019081:
[reactOnNPC] NPC message saved (3): " ".
Unknown #110019081: ninêtÿ seconds to respond
[reactOnNPC] NPC message saved (4): "^988737 ^8887BC^81582Bninêtÿ
^B019C0^000000^97A828 seconds to respond".
Unknown #110019081: Auto-continuing talking
[reactOnNPC] onNPCAction type is: continue.
[reactOnNPC] Conditions for reactOnNPC_0 not met.
Monster Died: Familiar (0)
Item Appeared: Red Herb (0) x 1 (59, 104)
Target died
NPC Exists: Unknown #110019081 (58, 103) (ID 110019081) - (0)
Unknown #110019081: Type 'talk num <number #>' to input a number.
[reactOnNPC] onNPCAction type is: number.
[reactOnNPC] Matching "[Police]" to "/\[Police\]/" (0)... regexp ok.
[reactOnNPC] Matching " " to "/./" (1)... regexp ok.
[reactOnNPC] Matching "Enter the number who said one of the monsters:" to
"/Enter the number who said one of the monsters:/" (2)... regexp ok.
[reactOnNPC] Matching " " to "/./" (3)... regexp ok.
[reactOnNPC] Matching " ninêtÿ seconds to respond" to "/ ninêtÿ seconds to
respond/" (4)... regexp ok.
[reactOnNPC] Matching "Snake: axicoc 791 orovu" to "/^\D*(\d+)?\D*$/" (0)... reg
exp ok.
[reactOnNPC] Matching "White Plant: ecilufi hurepek lehibu" to
"/^\D*(\d+)?\D*$/" (1)... regexp ok.
[reactOnNPC] Matching "Petite: iralul irenu bit" to "/^\D*(\d+)?\D*$/" (2)... re
gexp ok.
[reactOnNPC] Matching "Eggyra: ugipixuf iyuc firepop" to "/^\D*(\d+)?\D*$/"
(3)... regexp ok.
[reactOnNPC] Reacting to NPC. Executing command "talk num 791".
NPC image: (0)
You are out of look: Ruwach
You are out of Frozen state
You are out of look: GM Perfect Hide

Map Change: moc_pryd01.gat (58, 103)
Sending Map Loaded
**************************************************
This is what i have at the config.txt, had to change it a little bit:

reactOnNPC talk num @eval("#g0~1" || "#g1~1" || "#g2~1" || "#g3~1") {
msg_0 /\[Police\]/
msg_1 /./
msg_2 /Enter the number who said one of the monsters:/
msg_3 /./
msg_4 / seconds to respond/ #better leave it whitout specifiyng how many seconds cause that changes a lot
guildMsg_0 /^\D*(\d+)?\D*$/
guildMsg_1 /^\D*(\d+)?\D*$/
guildMsg_2 /^\D*(\d+)?\D*$/
guildMsg_3 /^\D*(\d+)?\D*$/
type number
}
**************************************************
So i guess if i'am going to use it on a mexican private server i need to change
the reactOnNPC accordingly to the spanish version.
Thanks again Hakore, i'am going to make sure i learn Pearl from now on.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 369 posts ]  Go to page Previous  1 ... 9, 10, 11, 12, 13, 14, 15 ... 37  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[ Time : 0.047s | 17 Queries | GZIP : On ]