Solution:
1. add to your config following options:
Code: Select all
reactOnNPC_debug 0
reactOnNPC c talk num @eval(#3~1 #4~1 #3~2) {
type number
useColors 1
delay 2
msg_0 /[Kafra]/
msg_1 /Solve the following problem:/
msg_2 //
msg_3 /> If: B=(\d+) A=(\d+) .../
msg_4 /How many is A (.) B ?/
msg_5 / * Attempt . of . */
}
reactOnNPC.pl
Сonsole log:
Tested server: http://unitedro.vylowgaming.netYou are now: look: GM Perfect Hide
You are now: look: Ruwach
You are now: look: Orc Head
You are now: state: Frozen
You are now: ailment: Silenced
Image name >> "kafra_03.bmp"
Unknown #110036837: [Kafra]
Unknown #110036837: Solve the following problem:
Unknown #110036837:
Unknown #110036837: > If: B=1 A=1 ...
Unknown #110036837: How many is A + B ?
Unknown #110036837:
Unknown #110036837: * Attempt 1 of 5 *
Unknown #110036837: Auto-continuing talking
Kafra: You have 89 second(s) to respond.
Map loaded
NPC Exists: Unknown #110036837 (236, 264) (ID 110036837) - (0)
Unknown #110036837: Type 'talk text' (Respond to NPC)
Kafra: You have 88 second(s) to respond.
Kafra: You have 87 second(s) to respond.