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
User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: reactOnNPC v.2.0.2 by hakore

#351 Post by 4epT »

onl34, try use:

Code: Select all

reactOnNPC_debug 1
reactOnNPC talk text #1~1 {
   delay 5
   msg_0 Enter the password:
   msg_1 /\s(\w+)/
}

and show log console
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

telnex
Noob
Noob
Posts: 19
Joined: 22 Jul 2014, 10:13
Noob?: Yes

Re: reactOnNPC v.2.0.2 by hakore

#352 Post by telnex »

Hey I'm having a trouble with that NPC, I probably messed up at the 3rd line but I have no idea how to correct it

Code: Select all

[Jul 22 16:21:56 2014.41] Unknown #110010025: [Battle Recruiter]
[Jul 22 16:21:56 2014.41] [reactOnNPC] NPC message saved (0): "[^FFA500Battle Recruiter^000000]".
[Jul 22 16:21:56 2014.42] Unknown #110010025: Before I can send you into battle I must make sure you are capable of understanding my commands.
[Jul 22 16:21:56 2014.42] [reactOnNPC] NPC message saved (1): "Before I can send you into battle I must make sure you are capable of understanding my commands.".
[Jul 22 16:21:56 2014.42] Unknown #110010025:  
[Jul 22 16:21:56 2014.43] [reactOnNPC] NPC message saved (2): " ".
[Jul 22 16:21:56 2014.43] Unknown #110010025: Please enter these numbers below: 21402
[Jul 22 16:21:56 2014.43] [reactOnNPC] NPC message saved (3): "Please enter these numbers below: ^FF000021402^000000".
[Jul 22 16:21:56 2014.43] Unknown #110010025: Auto-continuing talking
[Jul 22 16:21:56 2014.43] [reactOnNPC] onNPCAction type is: continue.
[Jul 22 16:21:56 2014.43] [reactOnNPC] Conditions for reactOnNPC_0 (npc:continue, rect:number) 'type' not met.
[Jul 22 16:21:56 2014.59] Unknown #110010025: Type 'talk num <number #>' to input a number.
[Jul 22 16:21:56 2014.60] [reactOnNPC] onNPCAction type is: number.
[Jul 22 16:21:56 2014.60] [reactOnNPC] Conditions for reactOnNPC_0 (npc:number , rect:number) is met.
[Jul 22 16:21:56 2014.60] [reactOnNPC] Matching [msg (0)] "[Battle Recruiter]" to "/[Battle Recruiter]/" ... regexp ok.
[Jul 22 16:21:56 2014.60] [reactOnNPC] Matching [msg (1)] "Before I can send you into battle I must make sure you are capable of understanding my commands." to "/Before I can send you into battle I must make sure you are capable of understanding my commands./" ... regexp ok.
[Jul 22 16:21:56 2014.60] [reactOnNPC] Matching [msg (2)] " " to "/ /" ... regexp ok.
[Jul 22 16:21:56 2014.60] [reactOnNPC] Matching [msg (3)] "Please enter these numbers below: 21402" to "/Please enter these numbers below: ^(\d+)$^(\d+)$^(\d+)$^(\d+)$^(\d+)$/" ... doesn't match.
[Jul 22 16:21:56 2014.61] [reactOnNPC] One or more lines doesn't match for "reactOnNPC_0" (3).

In my config I'm using :

Code: Select all

reactOnNPC talk num @eval((#3~1)*10000+(#3~2)*1000+(#3~3)*100+(#3~4)*10+(#3~5)) {
	type number
	delay 3
	msg_0 /[Battle Recruiter]/
	msg_1 /Before I can send you into battle I must make sure you are capable of understanding my commands./
	msg_2 / /
	msg_3 /Please enter these numbers below: ^(\d+)$^(\d+)$^(\d+)$^(\d+)$^(\d+)$/
}

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: reactOnNPC v.2.0.2 by hakore

#353 Post by 4epT »

telnex, try this:

Code: Select all

reactOnNPC talk num #3~1 {
   type number
   delay 3
   msg_0 /[Battle Recruiter]/
   msg_1 /Before I can send you into battle I must make sure you are capable of understanding my commands./
   msg_2 / /
   msg_3 /Please enter these numbers below: (\d+)/
}
or use macros:

Code: Select all

automacros antibot {
 console /Please enter these numbers below: (\d+)/
 delay 3
 exclusive 1
 call {
  do talk num $.lastMatch1 
 }
}
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

telnex
Noob
Noob
Posts: 19
Joined: 22 Jul 2014, 10:13
Noob?: Yes

Re: reactOnNPC v.2.0.2 by hakore

#354 Post by telnex »

Ok it's working fine thanks ;D

I'll have an other question, I will probably edit this message or add a new one.

genskull
Plain Yogurt
Plain Yogurt
Posts: 88
Joined: 10 Jul 2014, 09:16
Noob?: Yes

Re: reactOnNPC v.2.0.2 by hakore

#355 Post by genskull »

where i can download this reaconnpc?

nvn i think this one http://sourceforge.net/p/openkore/code/ ... ctOnNPC.pl

thank you...

onl34
Noob
Noob
Posts: 11
Joined: 20 Jul 2014, 10:27
Noob?: Yes
Location: Indonesia ( Jakarta )

Re: reactOnNPC v.2.0.2 by hakore

#356 Post by onl34 »

4epT wrote:onl34, try use:

Code: Select all

reactOnNPC_debug 1
reactOnNPC talk text #1~1 {
   delay 5
   msg_0 Enter the password:
   msg_1 /\s(\w+)/
}
and show log console
its WORKING !! thanks bro 4epT

but could you tell me what this for

msg_1 /\s(\w+)/ :
msg_3 /Please enter these numbers below: (\d+)/ :
/\s(.*)/i :


i just want to learn .
Last edited by onl34 on 23 Jul 2014, 05:22, edited 2 times in total.

onl34
Noob
Noob
Posts: 11
Joined: 20 Jul 2014, 10:27
Noob?: Yes
Location: Indonesia ( Jakarta )

Re: reactOnNPC v.2.0.2 by hakore

#357 Post by onl34 »

genskull wrote:where i can download this reaconnpc?

nvn i think this one http://sourceforge.net/p/openkore/code/ ... ctOnNPC.pl

thank you...
there the blue the text " Download this file "

User avatar
4epT
Developers
Developers
Posts: 617
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: reactOnNPC v.2.0.2 by hakore

#358 Post by 4epT »

onl34 wrote:but could you tell me what this for

msg_1 /\s(\w+)/ :
msg_3 /Please enter these numbers below: (\d+)/ :
/\s(.*)/i
use google search: "regex"
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

onl34
Noob
Noob
Posts: 11
Joined: 20 Jul 2014, 10:27
Noob?: Yes
Location: Indonesia ( Jakarta )

Re: reactOnNPC v.2.0.2 by hakore

#359 Post by onl34 »

4epT wrote:
onl34 wrote:but could you tell me what this for

msg_1 /\s(\w+)/ :
msg_3 /Please enter these numbers below: (\d+)/ :
/\s(.*)/i
use google search: "regex"
bro if i use this antibot what macro to talk npc i use do talknpc xx xx no sequence
its is error bro

asengjr1
Noob
Noob
Posts: 5
Joined: 11 Aug 2014, 11:11
Noob?: Yes

Re: reactOnNPC v.2.0.2 by hakore

#360 Post by asengjr1 »

Hello there ,

I need help i just new at reactonNpc ( antibot ) , i made a code to skip this

here my npc antibot log console:
Pandaring Room: [SATPAM]
Pandaring Room: Silahkan Masukan Angka Yang Kamu Lihat
Pandaring Room: 151811
Pandaring Room: Auto-continuing talking
Pandaring Room: Type 'talk num <number #>' to input a number.

but the code was not succesfull some error :

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

Here my Code:
reactOnNPC talk num #1~2 {
type number
msg_0 /[SATPAM]/
msg_1 /Silahkan Masukan Angka Yang Kamu Lihat/
msg_2 /^(\d+)/i
}

Post Reply