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.
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 . */
}
2. add to the plugins folder next file: reactOnNPC.pl
Сonsole log:
You 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.
reactOnNPC_debug 1
reactOnNPC c talk num @eval(#3~1 #4~1 #3~2) {
type number
useColors 1
delay 2
msg_0 /If A = (/d+) B = (/d+)/
msg_1 /How many is A (.) B ?/
}
reactOnNPC_debug 1
reactOnNPC talk num @eval(#0~1 #1~1 #0~2) {
type number
useColors 1
delay 5
msg_0 /If A = (\d+)\s+B = (\d+)/
msg_1 /How many is A (.) B ?/
}
reactOnNPC_debug 1
reactOnNPC talk num @eval(#0~1 #1~1 #0~2) {
type number
useColors 1
delay 5
msg_0 /If A = (\d+)\s+B = (\d+)/
msg_1 /How many is A (.) B ?/
}
oh its working 100% now sir thank you so much. more power! thanks thanks again .
sub cmdTalk {
if (!$net || $net->getState() != Network::IN_GAME) {
error TF("You must be logged in the game to use this command '%s'\n", shift);
return;
}
my (undef, $args) = @_;
my ($arg1) = $args =~ /^(\w+)/;
my ($arg2) = $args =~ /^\w+ (\d+)/;