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

evehaxor
Noob
Noob
Posts: 2
Joined: 15 Feb 2009, 17:36
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#261 Post by evehaxor »

Not Work! :(

reactOnNPC talk num #1~1 {
msg_0 [AntiBot] NPC Message: Um número irá aparecer para você em sua janela de conversa !.
msg_1 /(\d+)/
type number
}

Image

Simple? Yes...
im stupid!
Mushroom
Perl Monk
Perl Monk
Posts: 427
Joined: 04 Apr 2008, 14:04
Noob?: No
Location: Brazil

Re: reactOnNPC v.2.0.0 by hakore

#262 Post by Mushroom »

A simple macro can answer this one :O

Code: Select all

automacro anti-bot {
  console /Número: (\d+)/i
  exclusive 1
  call {
         $answer = $.lastMatch1
         do talk num $answer
         }
}
Test it.
Quit.
evehaxor
Noob
Noob
Posts: 2
Joined: 15 Feb 2009, 17:36
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#263 Post by evehaxor »

Mushroom wrote:A simple macro can answer this one :O

Code: Select all

automacro anti-bot {
  console /Número: (\d+)/i
  exclusive 1
  call {
         $answer = $.lastMatch1
         do talk num $answer
         }
}
Test it.
Image
Ops!

Normal macro
Image

im use openkore-2.0.6.1-win32
Mushroom
Perl Monk
Perl Monk
Posts: 427
Joined: 04 Apr 2008, 14:04
Noob?: No
Location: Brazil

Re: reactOnNPC v.2.0.0 by hakore

#264 Post by Mushroom »

Save the macros.txt in the UTF-8 format.
File > Save As... > Encoding > UTF-8

btw, you can have more than 1 macro in your macros.txt. You don't need to remove one macro to put another.
Quit.
ramajoda1235
Noob
Noob
Posts: 2
Joined: 13 Feb 2009, 20:31
Noob?: No

Re: reactOnNPC v.2.0.0 by hakore

#265 Post by ramajoda1235 »

Well i change the bot lenguage to english, i think is more easy to find a solution in this lenguage. I capture some codes to identify how it works.

I need help figuring out the ReaconNPC code in my config.txt

I have the reactOnNPC v.2.0.0 by hakore and i post my log console and some codes numbers to helping construct the config block.

I will apreciatte anny help thx.
You do not have the required permissions to view the files attached to this post.
Kid Bizkit
Noob
Noob
Posts: 2
Joined: 23 Jul 2008, 12:56
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#266 Post by Kid Bizkit »

I have a problem now where im playing at. The bot checker is now asking a word number, a word plus sign and a numerical number. Can someone help me out with this one? And my bot is not reacting to the npc. Im using version 2.0.5

Image

Here's the one that im using before edited by Mushroom.
reactOnNPC talk num @eval(#3~1 + #3~2) {
type number
msg_0 Welcome to Old School
msg_1 I'm going to ask a few questions.
msg_2 Answer them like you're not a NOOB, ok?
msg_3 /^What is (\d+) plus (\d+)?/
}
EDIED: There's a Close button after i put the numbers. Where or how should I add the Type Close?
niaosuan
Noob
Noob
Posts: 4
Joined: 01 Mar 2009, 13:12
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#267 Post by niaosuan »

anyone can help to built this server anti-bot bypass?
Mushroom
Perl Monk
Perl Monk
Posts: 427
Joined: 04 Apr 2008, 14:04
Noob?: No
Location: Brazil

Re: reactOnNPC v.2.0.0 by hakore

#268 Post by Mushroom »

@Kid Bizkit
I think if you set autoTalkCont to 1 (in the config.txt), it closes automaticaly.
Quit.
niaosuan
Noob
Noob
Posts: 4
Joined: 01 Mar 2009, 13:12
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#269 Post by niaosuan »

can someone help out?
You do not have the required permissions to view the files attached to this post.
pirate_hervey22
Noob
Noob
Posts: 2
Joined: 25 Jan 2009, 07:57
Noob?: Yes

Re: reactOnNPC v.2.0.0 by hakore

#270 Post by pirate_hervey22 »

can anyone help me finding out what's wrong with my reactOnNPC? i'm using OK 2.0.6.1 and reactOnNPC.pl version 2.11
thx b4 ^^
[Mar 12 23:10:00 2009.14] [GM] Police: When you cancel this window, i count that as a Bad Answer.
[Mar 12 23:10:00 2009.17] Received packet: 01B3 Handler: npc_image
[Mar 12 23:10:00 2009.19] NPC image: mets_alpha.bmp (0)
[Mar 12 23:10:00 2009.22] Received packet: 00B4 Handler: npc_talk
[Mar 12 23:10:00 2009.25] Unknown #110018326: [Police]
[Mar 12 23:10:00 2009.28] [reactOnNPC] NPC message saved (0): "[^0000FFPolice^000000]".
[Mar 12 23:10:00 2009.30] Received packet: 00B4 Handler: npc_talk
[Mar 12 23:10:00 2009.33] Unknown #110018326: Input this number:
[Mar 12 23:10:00 2009.36] [reactOnNPC] NPC message saved (1): "Input this number:".
[Mar 12 23:10:00 2009.38] Received packet: 00B4 Handler: npc_talk
[Mar 12 23:10:00 2009.41] Unknown #110018326: wenmqrts wdlpnplhh smbln
[Mar 12 23:10:00 2009.44] [reactOnNPC] NPC message saved (2): "^2E478D^B55556wenmq^6DAF92rts^2CAA9C ^590DC7wdlpn^4D297Dplhh ^35A22Dsmbln^000000".
[Mar 12 23:10:00 2009.46] Received packet: 00B4 Handler: npc_talk
[Mar 12 23:10:00 2009.49] Unknown #110018326:
[Mar 12 23:10:00 2009.52] [reactOnNPC] NPC message saved (3): " ".
[Mar 12 23:10:00 2009.54] Received packet: 00B4 Handler: npc_talk
[Mar 12 23:10:00 2009.57] Unknown #110018326: da of lma
[Mar 12 23:10:00 2009.60] [reactOnNPC] NPC message saved (4): "^55009E^1B622Cda^000000 of ^9CA813lma^000000".
[Mar 12 23:10:00 2009.62] Received packet: 00B4 Handler: npc_talk
[Mar 12 23:10:00 2009.65] Unknown #110018326: tjhplh enm seconds to respond
[Mar 12 23:10:00 2009.68] [reactOnNPC] NPC message saved (5): "^1588B4 ^0F6D2E^229403tjh^046E67plh ^AB8E43enm^000000^516801 seconds to respond".
[Mar 12 23:10:00 2009.71] Received packet: 00B5 Handler: npc_talk_continue
[Mar 12 23:10:00 2009.73] Unknown #110018326: Auto-continuing talking
[Mar 12 23:10:00 2009.76] Sent talk continue: 16 BF 8E 06
[Mar 12 23:10:00 2009.78] [reactOnNPC] onNPCAction type is: continue.
[Mar 12 23:10:00 2009.81] [reactOnNPC] Matching "[Police]" to "/[Police]/" (0)... [Mar 12 23:10:00 2009.84] regexp ok.
[Mar 12 23:10:00 2009.86] [reactOnNPC] Matching "Input this number:" to "/Input this number:/" (1)... [Mar 12 23:10:00 2009.89] regexp ok.
[Mar 12 23:10:00 2009.92] [reactOnNPC] Matching "wenmqrts wdlpnplhh smbln" to "/.*/" (2)... [Mar 12 23:10:00 2009.94] regexp ok.
[Mar 12 23:10:00 2009.97] [reactOnNPC] Matching " " to "/(.+)/" (3)... [Mar 12 23:10:00 2009.10] regexp ok.
[Mar 12 23:10:00 2009.10] [reactOnNPC] React to NPC with delay. Execute command "talk num t(u|)s|s.?.?r(a|)t(u|)s|/@) $answer=1; elsif ($numerotxt =~ /d(u|)a.?.?r(a|)t(u|)s/@) $answer=2; elsif ($numerotxt =~ /t(i|)g(a|).?.?r(a|)t(u|)s/@) $answer=3; elsif ($numerotxt =~ /emp(a|)t.?.?r(a|)t(u|)s/@) $answer=4; elsif ($numerotxt =~ /l(i|)m(a|).?.?r(a|)t(u|)s/@) $answer=5; elsif ($numerotxt =~ /en(a|)m.?.?r(a|)t(u|)s/@) $answer=6; elsif ($numerotxt =~ /t(u|)j(u|)(h|).?.?r(a|)t(u|)s/@) $answer=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.?.?r(a|)t(u|)s/@) $answer=8; elsif ($numerotxt =~ /s(e|)mb(i|)l(a|)n.?.?r(a|)t(u|)s/@) $answer=9;if ($numerotxt =~ /s(e|).?.?p(u|)l(u|)h|b(e|)l(a|)s/@) $answer.=1; elsif ($numerotxt =~ /d(u|)a.?.?p(u|)l(u|)h/@) $answer.=2; elsif ($numerotxt =~ /t(i|)g(a|).?.?p(u|)l(u|)h/@) $answer.=3; elsif ($numerotxt =~ /emp(a|)t.?.?p(u|)l(u|)h/@) $answer.=4; elsif ($numerotxt =~ /l(i|)m(a|).?.?p(u|)l(u|)h/@) $answer.=5; elsif ($numerotxt =~ /en(a|)m.?.?p(u|)l(u|)h/@) $answer.=6; elsif ($numerotxt =~ /t(u|)j(u|)(h|).?.?p(u|)l(u|)h/@) $answer.=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.?.?p(u|)l(u|)h/@) $answer.=8; elsif ($numerotxt =~ /s(e|)mb(i|)l(a|)n.?.?p(u|)l(u|)h/@) $answer.=9; elsif ($answer neq ''@) $answer.=0;if ($numerotxt =~ /s(a|)tu.{0,3}$|s(e|).?.?b(e|)l(a|)s/@) $answer.=1; elsif ($numerotxt =~ /d(u|)a.{0,3}$|d(u|)a.?.?b(e|)l(a|)s/@) $answer.=2; elsif ($numerotxt =~ /t(i|)g(a|).{0,3}$|t(i|)g(a|).?.?b(e|)l(a|)s/@) $answer.=3; elsif ($numerotxt =~ /emp(a|)t.{0,3}$|emp(a|)t.?.?b(e|)l(a|)s/@) $answer.=4; elsif ($numerotxt =~ /l(i|)m(a|).{0,3}$|l(i|)m(a|).?.?b(e|)l(a|)s/@) $answer.=5; elsif ($numerotxt =~ /en(a|)m.{0,3}$|en(a|)m.?.?b(e|)l(a|)s/@) $answer.=6; elsif ($numerotxt =~ /t[ùúûüu]j[ùúûüu]h.{0,3}$|t[ùúûüu]j[ùúûüu]h.?.?b(e|)l(a|)s/@) $answer.=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.{0,3}$|d(e|)l(a|)p(a|)n.?.?b(e|)l(a|)s/@) $answer.=8; elsif ($numerotxt =~ /s(e|)mb(i|)l(a|)n.{0,3}$|s(e|)mb(i|)l(a|)n.?.?b(e|)l(a|)s/@) $answer.=9; else $answer.=0;}return $answer;)" after 3 seconds.
[Mar 12 23:10:00 2009.11] Sent get player info: ID - 93 5A 91 06
[Mar 12 23:10:00 2009.11] Skill Use: 26
[Mar 12 23:10:00 2009.11] AI: teleport | 2
[Mar 12 23:10:00 2009.12] [reactOnNPC] Reacting to NPC. Executing command "talk num t(u|)s|s.?.?r(a|)t(u|)s|/@) $answer=1; elsif ($numerotxt =~ /d(u|)a.?.?r(a|)t(u|)s/@) $answer=2; elsif ($numerotxt =~ /t(i|)g(a|).?.?r(a|)t(u|)s/@) $answer=3; elsif ($numerotxt =~ /emp(a|)t.?.?r(a|)t(u|)s/@) $answer=4; elsif ($numerotxt =~ /l(i|)m(a|).?.?r(a|)t(u|)s/@) $answer=5; elsif ($numerotxt =~ /en(a|)m.?.?r(a|)t(u|)s/@) $answer=6; elsif ($numerotxt =~ /t(u|)j(u|)(h|).?.?r(a|)t(u|)s/@) $answer=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.?.?r(a|)t(u|)s/@) $answer=8; elsif ($numerotxt =~ /s(e|)mb(i|)l(a|)n.?.?r(a|)t(u|)s/@) $answer=9;if ($numerotxt =~ /s(e|).?.?p(u|)l(u|)h|b(e|)l(a|)s/@) $answer.=1; elsif ($numerotxt =~ /d(u|)a.?.?p(u|)l(u|)h/@) $answer.=2; elsif ($numerotxt =~ /t(i|)g(a|).?.?p(u|)l(u|)h/@) $answer.=3; elsif ($numerotxt =~ /emp(a|)t.?.?p(u|)l(u|)h/@) $answer.=4; elsif ($numerotxt =~ /l(i|)m(a|).?.?p(u|)l(u|)h/@) $answer.=5; elsif ($numerotxt =~ /en(a|)m.?.?p(u|)l(u|)h/@) $answer.=6; elsif ($numerotxt =~ /t(u|)j(u|)(h|).?.?p(u|)l(u|)h/@) $answer.=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.?.?p(u|)l(u|)h/@) $answer.=8; elsif ($numerotxt =~ /s(e|)mb(i|)l(a|)n.?.?p(u|)l(u|)h/@) $answer.=9; elsif ($answer neq ''@) $answer.=0;if ($numerotxt =~ /s(a|)tu.{0,3}$|s(e|).?.?b(e|)l(a|)s/@) $answer.=1; elsif ($numerotxt =~ /d(u|)a.{0,3}$|d(u|)a.?.?b(e|)l(a|)s/@) $answer.=2; elsif ($numerotxt =~ /t(i|)g(a|).{0,3}$|t(i|)g(a|).?.?b(e|)l(a|)s/@) $answer.=3; elsif ($numerotxt =~ /emp(a|)t.{0,3}$|emp(a|)t.?.?b(e|)l(a|)s/@) $answer.=4; elsif ($numerotxt =~ /l(i|)m(a|).{0,3}$|l(i|)m(a|).?.?b(e|)l(a|)s/@) $answer.=5; elsif ($numerotxt =~ /en(a|)m.{0,3}$|en(a|)m.?.?b(e|)l(a|)s/@) $answer.=6; elsif ($numerotxt =~ /t[ùúûüu]j[ùúûüu]h.{0,3}$|t[ùúûüu]j[ùúûüu]h.?.?b(e|)l(a|)s/@) $answer.=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.{0,3}$|d(e|)l(a|)p(a|)n.?.?b(e|)l(a|)s/@) $answer.=8; elsif ($numerotxt =~ /s(e|)mb(i|)l(a|)n.{0,3}$|s(e|)mb(i|)l(a|)n.?.?b(e|)l(a|)s/@) $answer.=9; else $answer.=0;}return $answer;)".
[Mar 12 23:10:00 2009.13] Error in function 'talk num' (Respond to NPC)
You must specify a number.
[Mar 12 23:10:00 2009.15] Received packet: 0078 Handler: actor_display
[Mar 12 23:10:00 2009.15] Received packet: 0142 Handler: npc_talk_number
[Mar 12 23:10:00 2009.15] BotKillerFnc1: Type 'talk num <number #>' to input a number.
[Mar 12 23:10:00 2009.16] [reactOnNPC] onNPCAction type is: number.
[Mar 12 23:10:00 2009.16] [reactOnNPC] Conditions for reactOnNPC_0 not met.
[Mar 12 23:10:00 2009.20] Received packet: 0095 Handler: actor_info
[Mar 12 23:10:00 2009.20] Received object info: Petite
[Mar 12 23:10:00 2009.21] Monster Info: Petite (0)
reactOnNPC talk num @eval(my $numerotxt = #2~1;
my $answer;
if($numerotxt =~ /se.?.?r(a|)t(u|)s|s.?.?r(a|)t(u|)s/@) $answer=1; elsif ($numerotxt =~ /d(u|)a.?.?r(a|)t(u|)s/@) $answer=2;

elsif ($numerotxt =~ /t(i|)g(a|).?.?r(a|)t(u|)s/@) $answer=3; elsif ($numerotxt =~ /emp(a|)t.?.?r(a|)t(u|)s/@) $answer=4;

elsif ($numerotxt =~ /l(i|)m(a|).?.?r(a|)t(u|)s/@) $answer=5; elsif ($numerotxt =~ /en(a|)m.?.?r(a|)t(u|)s/@) $answer=6;

elsif ($numerotxt =~ /t(u|)j(u|)(h|).?.?r(a|)t(u|)s/@) $answer=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.?.?r(a|)t(u|)s/@)

$answer=8; elsif ($numerotxt =~ /s(e|)mb(i|)l(a|)n.?.?r(a|)t(u|)s/@) $answer=9;if ($numerotxt =~

/s(e|).?.?p(u|)l(u|)h|b(e|)l(a|)s/@) $answer.=1; elsif ($numerotxt =~ /d(u|)a.?.?p(u|)l(u|)h/@) $answer.=2; elsif ($numerotxt

=~ /t(i|)g(a|).?.?p(u|)l(u|)h/@) $answer.=3; elsif ($numerotxt =~ /emp(a|)t.?.?p(u|)l(u|)h/@) $answer.=4; elsif ($numerotxt

=~ /l(i|)m(a|).?.?p(u|)l(u|)h/@) $answer.=5; elsif ($numerotxt =~ /en(a|)m.?.?p(u|)l(u|)h/@) $answer.=6; elsif ($numerotxt =~

/t(u|)j(u|)(h|).?.?p(u|)l(u|)h/@) $answer.=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.?.?p(u|)l(u|)h/@) $answer.=8; elsif

($numerotxt =~ /s(e|)mb(i|)l(a|)n.?.?p(u|)l(u|)h/@) $answer.=9; elsif ($answer neq ''@) $answer.=0;if ($numerotxt =~

/s(a|)tu.{0,3}$|s(e|).?.?b(e|)l(a|)s/@) $answer.=1; elsif ($numerotxt =~ /d(u|)a.{0,3}$|d(u|)a.?.?b(e|)l(a|)s/@) $answer.=2;

elsif ($numerotxt =~ /t(i|)g(a|).{0,3}$|t(i|)g(a|).?.?b(e|)l(a|)s/@) $answer.=3; elsif ($numerotxt =~

/emp(a|)t.{0,3}$|emp(a|)t.?.?b(e|)l(a|)s/@) $answer.=4; elsif ($numerotxt =~ /l(i|)m(a|).{0,3}$|l(i|)m(a|).?.?b(e|)l(a|)s/@)

$answer.=5; elsif ($numerotxt =~ /en(a|)m.{0,3}$|en(a|)m.?.?b(e|)l(a|)s/@) $answer.=6; elsif ($numerotxt =~

/t[ùúûüu]j[ùúûüu]h.{0,3}$|t[ùúûüu]j[ùúûüu]h.?.?b(e|)l(a|)s/@) $answer.=7; elsif ($numerotxt =~

/d(e|)l(a|)p(a|)n.{0,3}$|d(e|)l(a|)p(a|)n.?.?b(e|)l(a|)s/@) $answer.=8; elsif ($numerotxt =~

/s(e|)mb(i|)l(a|)n.{0,3}$|s(e|)mb(i|)l(a|)n.?.?b(e|)l(a|)s/@) $answer.=9; else $answer.=0;}return $answer;) {
type continue
useColors 0
delay 3
msg_0 /[Police]/
msg_1 /Input this number:/
msg_2 /(.+)/
}

reactOnNPC talk num @eval(my $numerotxt = #3~1;
my $answer;
if($numerotxt =~ /se.?.?r(a|)t(u|)s|s.?.?r(a|)t(u|)s/@) $answer=1; elsif ($numerotxt =~ /d(u|)a.?.?r(a|)t(u|)s/@) $answer=2;

elsif ($numerotxt =~ /t(i|)g(a|).?.?r(a|)t(u|)s/@) $answer=3; elsif ($numerotxt =~ /emp(a|)t.?.?r(a|)t(u|)s/@) $answer=4;

elsif ($numerotxt =~ /l(i|)m(a|).?.?r(a|)t(u|)s/@) $answer=5; elsif ($numerotxt =~ /en(a|)m.?.?r(a|)t(u|)s/@) $answer=6;

elsif ($numerotxt =~ /t(u|)j(u|)(h|).?.?r(a|)t(u|)s/@) $answer=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.?.?r(a|)t(u|)s/@)

$answer=8; elsif ($numerotxt =~ /s(e|)mb(i|)l(a|)n.?.?r(a|)t(u|)s/@) $answer=9;if ($numerotxt =~

/s(e|).?.?p(u|)l(u|)h|b(e|)l(a|)s/@) $answer.=1; elsif ($numerotxt =~ /d(u|)a.?.?p(u|)l(u|)h/@) $answer.=2; elsif ($numerotxt

=~ /t(i|)g(a|).?.?p(u|)l(u|)h/@) $answer.=3; elsif ($numerotxt =~ /emp(a|)t.?.?p(u|)l(u|)h/@) $answer.=4; elsif ($numerotxt

=~ /l(i|)m(a|).?.?p(u|)l(u|)h/@) $answer.=5; elsif ($numerotxt =~ /en(a|)m.?.?p(u|)l(u|)h/@) $answer.=6; elsif ($numerotxt =~

/t(u|)j(u|)(h|).?.?p(u|)l(u|)h/@) $answer.=7; elsif ($numerotxt =~ /d(e|)l(a|)p(a|)n.?.?p(u|)l(u|)h/@) $answer.=8; elsif

($numerotxt =~ /s(e|)mb(i|)l(a|)n.?.?p(u|)l(u|)h/@) $answer.=9; elsif ($answer neq ''@) $answer.=0;if ($numerotxt =~

/s(a|)tu.{0,3}$|s(e|).?.?b(e|)l(a|)s/@) $answer.=1; elsif ($numerotxt =~ /d(u|)a.{0,3}$|d(u|)a.?.?b(e|)l(a|)s/@) $answer.=2;

elsif ($numerotxt =~ /t(i|)g(a|).{0,3}$|t(i|)g(a|).?.?b(e|)l(a|)s/@) $answer.=3; elsif ($numerotxt =~

/emp(a|)t.{0,3}$|emp(a|)t.?.?b(e|)l(a|)s/@) $answer.=4; elsif ($numerotxt =~ /l(i|)m(a|).{0,3}$|l(i|)m(a|).?.?b(e|)l(a|)s/@)

$answer.=5; elsif ($numerotxt =~ /en(a|)m.{0,3}$|en(a|)m.?.?b(e|)l(a|)s/@) $answer.=6; elsif ($numerotxt =~

/t[ùúûüu]j[ùúûüu]h.{0,3}$|t[ùúûüu]j[ùúûüu]h.?.?b(e|)l(a|)s/@) $answer.=7; elsif ($numerotxt =~

/d(e|)l(a|)p(a|)n.{0,3}$|d(e|)l(a|)p(a|)n.?.?b(e|)l(a|)s/@) $answer.=8; elsif ($numerotxt =~

/s(e|)mb(i|)l(a|)n.{0,3}$|s(e|)mb(i|)l(a|)n.?.?b(e|)l(a|)s/@) $answer.=9; else $answer.=0;}return $answer;) {
type continue
useColors 0
delay 3
msg_0 /[Police]/
msg_1 /Input this number:/
msg_2 /.*/
msg_3 /(.+)/
}