reactOnNPC v.2.0.2 by hakore

Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.

Moderator: Moderators

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

Re: reactOnNPC v.2.0.0 by hakore

#131 Post by Mucilon »

joeyboy262

Does your server have 2 types of antibot?
At this last massage, you will need to configure just the reactOnNPC, try this example:

Code: Select all

reactOnNPC talk num @eval(my $numerotxt = #3~1;my $answer;switch ($numerotxt) { case /[oôóòöõø0]n[eêéèë3]h[uûúùü]ndr[eêéèë3]d/ {$answer=1} case /tw[oôóòöõø0]h[uûúùü]ndr[eêéèë3]d/ {$answer=2} case /thr[eêéèë3][eêéèë3]h[uûúùü]ndr[eêéèë3]d/ {$answer=3} case /f[oôóòöõø0][uûúùü]rh[uûúùü]ndr[eêéèë3]d/ {$answer=4} case /f[iîíì\|1]v[eêéèë3]h[uûúùü]ndr[eêéèë3]d/ {$answer=5} case /s[iîíì\|1]xh[uûúùü]ndr[eêéèë3]d/ {$answer=6} case /s[eêéèë3]v[eêéèë3]nh[uûúùü]ndr[eêéèë3]d/ {$answer=7} case /[eêéèë3][iîíì\|1]ghth[uûúùü]ndr[eêéèë3]d/ {$answer=8} case /n[iîíì\|1]n[eêéèë3]h[uûúùü]ndr[eêéèë3]d/ {$answer=9}}switch ($numerotxt) { case /t[eêéèë3]n|t[eêéèë3][eêéèë3]n|[eêéèë3]l[eêéèë3]v[eêéèë3]n|tw[eêéèë3]lv[eêéèë3]/ {$answer.=1} case /tw[eêéèë3]nty/ {$answer.=2} case /th[iîíì\|1]rty/ {$answer.=3} case /f[oôóòöõø0]rty/ {$answer.=4} case /f[iîíì\|1]fty/ {$answer.=5} case /s[iîíì\|1]xty/ {$answer.=6} case /s[eêéèë3]v[eêéèë3]nty/ {$answer.=7} case /[eêéèë3][iîíì\|1]ghty/ {$answer.=8} case /n[iîíì\|1]n[eêéèë3]ty/ {$answer.=9} else {$answer.=0}}switch ($numerotxt) { case /[oôóòöõø0]n[eêéèë3].?$|[eêéèë3]l[eêéèë3]v[eêéèë3]n/ {$answer.=1} case /tw[oôóòöõø0].?$|tw[eêéèë3]lv[eêéèë3]/ {$answer.=2} case /thr[eêéèë3][eêéèë3].?$|th[iîíì\|1]rt[eêéèë3][eêéèë3]n/ {$answer.=3} case /f[oôóòöõø0][uûúùü]r.?$|f[oôóòöõø0][uûúùü]rt[eêéèë3][eêéèë3]n/ {$answer.=4} case /f[iîíì\|1]v[eêéèë3].?$|f[iîíì\|1]ft[eêéèë3][eêéèë3]n/ {$answer.=5} case /s[iîíì\|1]x.?$|s[iîíì\|1]xt[eêéèë3][eêéèë3]n/ {$answer.=6} case /s[eêéèë3]v[eêéèë3]n.?$|s[eêéèë3]v[eêéèë3]nt[eêéèë3][eêéèë3]n/ {$answer.=7} case /[eêéèë3][iîíì\|1]ght.?$|[eêéèë3][iîíì\|1]ght[eêéèë3][eêéèë3]n/ {$answer.=8} case /n[iîíì\|1]n[eêéèë3].?$|n[iîíì\|1]n[eêéèë3]t[eêéèë3][eêéèë3]n/ {$answer.=9} else {$answer.=0}}return $answer;)
	type number
	msg_0 [Police]
	msg_1 Input this number:
	msg_3 /(\w+)/
	
}
About this kind of antibot, ask at the right forum.

ringbolt
Noob
Noob
Posts: 3
Joined: 26 Jul 2008, 13:01
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#132 Post by ringbolt »

Dear mucilon, i used debug 2 and i got the following thing happened, take a look.

Image

I changed the code a little. Instead of @eval("#g0~1" || "#g1~1" || "#g2~1" || "#g3~1") {, i putted @eval("#0~1" || "#1~1" || "#2~1" || "#3~1") {

reactOnNPC talk num @eval("#0~1" || "#1~1" || "#2~1" || "#3~1") {
msg_0 /\[Policial]/
msg_1 /./
msg_2 /monstros/
msg_3 /./
msg_4 /segundos/
chatMsg_0 /^\D*(\d+)?\D*$/
chatMsg_1 /^\D*(\d+)?\D*$/
chatMsg_2 /^\D*(\d+)?\D*$/
chatMsg_3 /^\D*(\d+)?\D*$/
type number
}

and it returned this
Image


I don't know exacly what to put in the part chatMsg_0 /^\D*(\d+)?\D*$/ and in @eval("#0~1" || "#1~1" || "#2~1" || "#3~1") {
Please help me, i'm so close. aseusaushaeuh.

joeyboy262
Noob
Noob
Posts: 6
Joined: 15 Jul 2008, 01:09
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#133 Post by joeyboy262 »

sir macilion tnx a lot but i have just last 1 question.. where i put it??? config txt??? macros txt?? or reactioNPC pl?? or macro pl?? :D


reactOnNPC talk num @eval(my $numerotxt = #3~1;my $answer;switch ($numerotxt) { case /[oôóòöõø0]n[eêéèë3]h[uûúùü]ndr[eêéèë3]d/ {$answer=1} case /tw[oôóòöõø0]h[uûúùü]ndr[eêéèë3]d/ {$answer=2} case /thr[eêéèë3][eêéèë3]h[uûúùü]ndr[eêéèë3]d/ {$answer=3} case /f[oôóòöõø0][uûúùü]rh[uûúùü]ndr[eêéèë3]d/ {$answer=4} case /f[iîíì\|1]v[eêéèë3]h[uûúùü]ndr[eêéèë3]d/ {$answer=5} case /s[iîíì\|1]xh[uûúùü]ndr[eêéèë3]d/ {$answer=6} case /s[eêéèë3]v[eêéèë3]nh[uûúùü]ndr[eêéèë3]d/ {$answer=7} case /[eêéèë3][iîíì\|1]ghth[uûúùü]ndr[eêéèë3]d/ {$answer=8} case /n[iîíì\|1]n[eêéèë3]h[uûúùü]ndr[eêéèë3]d/ {$answer=9}}switch ($numerotxt) { case /t[eêéèë3]n|t[eêéèë3][eêéèë3]n|[eêéèë3]l[eêéèë3]v[eêéèë3]n|tw[eêéèë3]lv[eêéèë3]/ {$answer.=1} case /tw[eêéèë3]nty/ {$answer.=2} case /th[iîíì\|1]rty/ {$answer.=3} case /f[oôóòöõø0]rty/ {$answer.=4} case /f[iîíì\|1]fty/ {$answer.=5} case /s[iîíì\|1]xty/ {$answer.=6} case /s[eêéèë3]v[eêéèë3]nty/ {$answer.=7} case /[eêéèë3][iîíì\|1]ghty/ {$answer.=8} case /n[iîíì\|1]n[eêéèë3]ty/ {$answer.=9} else {$answer.=0}}switch ($numerotxt) { case /[oôóòöõø0]n[eêéèë3].?$|[eêéèë3]l[eêéèë3]v[eêéèë3]n/ {$answer.=1} case /tw[oôóòöõø0].?$|tw[eêéèë3]lv[eêéèë3]/ {$answer.=2} case /thr[eêéèë3][eêéèë3].?$|th[iîíì\|1]rt[eêéèë3][eêéèë3]n/ {$answer.=3} case /f[oôóòöõø0][uûúùü]r.?$|f[oôóòöõø0][uûúùü]rt[eêéèë3][eêéèë3]n/ {$answer.=4} case /f[iîíì\|1]v[eêéèë3].?$|f[iîíì\|1]ft[eêéèë3][eêéèë3]n/ {$answer.=5} case /s[iîíì\|1]x.?$|s[iîíì\|1]xt[eêéèë3][eêéèë3]n/ {$answer.=6} case /s[eêéèë3]v[eêéèë3]n.?$|s[eêéèë3]v[eêéèë3]nt[eêéèë3][eêéèë3]n/ {$answer.=7} case /[eêéèë3][iîíì\|1]ght.?$|[eêéèë3][iîíì\|1]ght[eêéèë3][eêéèë3]n/ {$answer.=8} case /n[iîíì\|1]n[eêéèë3].?$|n[iîíì\|1]n[eêéèë3]t[eêéèë3][eêéèë3]n/ {$answer.=9} else {$answer.=0}}return $answer;)
type number
msg_0 [Police]
msg_1 Input this number:
msg_3 /(\w+)/

joeyboy262
Noob
Noob
Posts: 6
Joined: 15 Jul 2008, 01:09
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#134 Post by joeyboy262 »

ans please help me??? :D

dickyirawan
Noob
Noob
Posts: 2
Joined: 04 Aug 2008, 07:26
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#135 Post by dickyirawan »

tüjûhjrätüs rsëmbïlán _pülûh qenãmk
hi can you help about this?
the number is Tujuh ratus sembilan puluh enam = 796(tüjûhjrätüs rsëmbïlán _pülûh qenãmk)
how can i use the talk resp on config?

Code: Select all

[Aug 4 17:09:24 2008.28] [GM] Polisi: Saya mohon maaf, tapi saya ingin tahu kamu Bermain atau Bot.
[Aug 4 17:09:24 2008.29] Received packet: 00B4 Handler: npc_talk
[Aug 4 17:09:24 2008.29] Unknown #110024682: [Polisi]
[Aug 4 17:09:24 2008.29] [ASCIInumber v2.2.1(fix)] There is no BgColor option at your config.txt file, assuming BgColor to '^[D-Fd-f][A-Fa-f0-9][D-Fd-f][A-Fa-f0-9]{3}'.
[Aug 4 17:09:24 2008.30] [Convert NPC message] to : ########
[Aug 4 17:09:24 2008.30] Received packet: 00B4 Handler: npc_talk
[Aug 4 17:09:24 2008.31] Unknown #110024682: Masukkan angka ini:
[Aug 4 17:09:24 2008.31] [ASCIInumber v2.2.1(fix)] There is no BgColor option at your config.txt file, assuming BgColor to '^[D-Fd-f][A-Fa-f0-9][D-Fd-f][A-Fa-f0-9]{3}'.
[Aug 4 17:09:24 2008.32] [Convert NPC message] to : ###################
[Aug 4 17:09:24 2008.32] Received packet: 00B4 Handler: npc_talk
[Aug 4 17:09:24 2008.33] Unknown #110024682: tüjûhjrätüs rsëmbïlán _pülûh qenãmk
[Aug 4 17:09:24 2008.33] [ASCIInumber v2.2.1(fix)] There is no BgColor option at your config.txt file, assuming BgColor to '^[D-Fd-f][A-Fa-f0-9][D-Fd-f][A-Fa-f0-9]{3}'.
[Aug 4 17:09:24 2008.34] [Convert NPC message] to : ###################################
[Aug 4 17:09:24 2008.35] Received packet: 00B4 Handler: npc_talk
[Aug 4 17:09:24 2008.35] Unknown #110024682:  
[Aug 4 17:09:24 2008.35] [ASCIInumber v2.2.1(fix)] There is no BgColor option at your config.txt file, assuming BgColor to '^[D-Fd-f][A-Fa-f0-9][D-Fd-f][A-Fa-f0-9]{3}'.
[Aug 4 17:09:24 2008.36] [Convert NPC message] to : #
[Aug 4 17:09:24 2008.36] Received packet: 00B4 Handler: npc_talk
[Aug 4 17:09:24 2008.37] Unknown #110024682: såtu dari tìga

ringbolt
Noob
Noob
Posts: 3
Joined: 26 Jul 2008, 13:01
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#136 Post by ringbolt »

Wainting for a response, please help me.

cuteakoeh50000
Noob
Noob
Posts: 12
Joined: 05 Aug 2008, 22:08
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#137 Post by cuteakoeh50000 »

hi im new about this answering bots, im using the latest openkore.. i just want to ask what items/folders do i need to use this answering bot.. i already have ASCIInumberKiller. and also i put this in the config.txt

ASCIInumberKiller {
lengthCharNumber 8
BgColor ^[D-Fd-f][A-Fa-f0-9][D-Fd-f][A-Fa-f0-9]{3}
}

# Use this when you need to answer a text
reactOnNPC ASCIInumberKiller text {
type text
msg_0 /.*/
msg_1 /.*/
msg_2 /.*/
msg_3 /.*/
}
macro_orphans terminate

ASCIInumberKiller {
lengthCharNumber 8
BgColor ^[D-Fd-f][A-Fa-f0-9][D-Fd-f][A-Fa-f0-9]{3}
}


responseOnASCIInumber {
lengthCharNumber 8
colorCode 1
}


---- what else do i need? and whats reactOnNPC v.2.? do i need it also?

manusiaheboh
Noob
Noob
Posts: 1
Joined: 15 Aug 2008, 09:54
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#138 Post by manusiaheboh »

hi can you help about this?

Code: Select all

Koordinat Anda : 215, 101
Gunakan @tips untuk tips bermain
(Dari: HiJaCKeR) : Sudah malam, ayo bobo
You are in Frozen state
Terdapat NPC : Tukang Ngeheal#h1-16 (225, 103) (ID 110018667) - (0)
Terdapat NPC : Agen Warp#28 (210, 106) (ID 110018619) - (1)
Terdapat NPC : Kafra Employee (210, 104) (ID 110014284) - (2)
Terdapat NPC : Representative#lou (224, 104) (ID 110014227) - (3)
Anda sekarang: Night
Unknown #110127680: [Bot Check]: Type this number:
Unknown #110127680: 393|060401065712071382664840|
Unknown #110127680: |000000000000000000000000000000000|
Unknown #110127680: 317|072241948058661948058570|
Unknown #110127680: 1189|041141576186491757334100|
Unknown #110127680: 5776|013541683564911235913390|
Unknown #110127680: |000000000000000000000000000000000|
Terdapat NPC : botcheck (215, 101) (ID 110127680) - (4)
botcheck: Ketik 'talk num <nomor #>' untuk memasukkan nomor.

GSMikami
Noob
Noob
Posts: 4
Joined: 25 May 2008, 18:56
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#139 Post by GSMikami »

Hello guys, I need your lights ^^

I play on a server which has a bot checker in the beginning to see if we are a bot or not by inputing a random number.
The number written in bold & red is always random & a three digits one. As you can see there is also white space before the number.
This is the reactOnNPC code I did to try to bypass the bot checker but it failed.

I tried to learn regexp the much I can but I cannot solve the problem by myself.
This is the bot checker sequence.
Bot Checker#Checker: Hello, Kilo.
Bot Checker#Checker: Your code number is
Bot Checker#Checker: 920.
Bot Checker#Checker: Please input this number for
Bot Checker#Checker: entering the game.
In config.txt:
reactOnNPC talk num #3~1 {
type number
msg_0 /^\[Bot Checker\]/
msg_1 /^Hello, Kilo\./
msg_2 /^Your code number is/
msg_3 /^ (\d*)\./
msg_4 /^Please input this number for/
msg_5 /^entering the game\./
}
Thank you for your help.

EDIT:
In fact there is a 3 blanks between "Hello," & "Kilo" & also 2 blanks just before the number but the forum doesn' t allow more than one white spaces & I also inclued these white spaces in my reactOnNPC code but failed to trigger

motrong_mong
Noob
Noob
Posts: 1
Joined: 04 May 2008, 14:58
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#140 Post by motrong_mong »

excuse my question !!!
help me plz ! :cry: I'm a noob & i know nothing about PERL.
I hope someone help me.....I can't pass this anti bot .
thx a lot :(
remove:X
Last edited by motrong_mong on 18 Aug 2008, 06:19, edited 1 time in total.

Post Reply