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
Moderator: Moderators
Code: Select all
reactOnNPC_debug 1
reactOnNPC talk text #1~1 {
delay 5
msg_0 Enter the password:
msg_1 /\s(\w+)/
}
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).
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+)$/
}
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+)/
}
Code: Select all
automacros antibot {
console /Please enter these numbers below: (\d+)/
delay 3
exclusive 1
call {
do talk num $.lastMatch1
}
}
its WORKING !! thanks bro 4epT4epT wrote:onl34, try use:
and show log consoleCode: Select all
reactOnNPC_debug 1 reactOnNPC talk text #1~1 { delay 5 msg_0 Enter the password: msg_1 /\s(\w+)/ }
there the blue the text " Download this file "genskull wrote:where i can download this reaconnpc?
nvn i think this one http://sourceforge.net/p/openkore/code/ ... ctOnNPC.pl
thank you...
use google search: "regex"onl34 wrote:but could you tell me what this for
msg_1 /\s(\w+)/ :
msg_3 /Please enter these numbers below: (\d+)/ :
/\s(.*)/i
bro if i use this antibot what macro to talk npc i use do talknpc xx xx no sequence4epT wrote:use google search: "regex"onl34 wrote:but could you tell me what this for
msg_1 /\s(\w+)/ :
msg_3 /Please enter these numbers below: (\d+)/ :
/\s(.*)/i