PepsiCoke wrote:How about this one sir? can you make the macro?
Code: Select all
reactOnNPC talk text #1~1 {
type text
delay 2
msg_0 /Type the Correct Sentences./
msg_1 / (\S+)/
}
Moderator: Moderators
PepsiCoke wrote:How about this one sir? can you make the macro?
Code: Select all
reactOnNPC talk text #1~1 {
type text
delay 2
msg_0 /Type the Correct Sentences./
msg_1 / (\S+)/
}
cant really find the right code.4epT wrote:paraotik, see example:
http://forums.openkore.com/viewtopic.ph ... 60#p251960
here is my code. . can you check whats wrong??4epT wrote:paraotik, you need to configure the plugin, see examples
Code: Select all
reactOnNPC talk num @eval(my $color1 = '#0~1';my $color2 = '#1~1';if ($color1 eq $color2@) {return '#1~2'}) {
type number
useColors 1
delay 2
msg_0 /Please Enter \^([0-9a-fA-F]{6})Red Color\^000000 Key in the Code.../i
msg_1 /\d+\^([0-9a-fA-F]{6})(\d+)\^[0-9a-fA-F]{6}\d+/
}
Code: Select all
[Jun 22 09:21:00 2014.39] Allowed other player invite to Party
[Jun 22 09:21:00 2014.39] Other players are not allowed to view your Equipment.
[Jun 22 09:21:00 2014.40] You are not a guildmaster.
[Jun 22 09:21:00 2014.50] You are now immune to attacks.
[Jun 22 09:21:00 2014.50] You are now: state: Frozen
[Jun 22 09:21:00 2014.50] You are now: look: Sight
[Jun 22 09:21:00 2014.51] Options changed.
[Jun 22 09:21:00 2014.51] Unknown #110010072: You Have 3 Chance to Type the Red Text Correctly
[Jun 22 09:21:00 2014.52] [reactOnNPC] NPC message saved (0): "You Have 3 Chance to Type the Red Text Correctly".
[Jun 22 09:21:00 2014.52] Unknown #110010072: If you failed- You will be jailed
[Jun 22 09:21:00 2014.52] [reactOnNPC] NPC message saved (1): "If you failed- You will be jailed".
[Jun 22 09:21:00 2014.53] Unknown #110010072: Input the RED COLOUR part
[Jun 22 09:21:00 2014.53] [reactOnNPC] NPC message saved (2): "Input the ^FF0000RED COLOUR^000000 part".
[Jun 22 09:21:00 2014.53] Unknown #110010072: QSqGUkxQpXJFQtQS
[Jun 22 09:21:00 2014.53] [reactOnNPC] NPC message saved (3): "^0000FFQSqGU^FF0000kxQpXJ^0000FFFQtQS^000000".
[Jun 22 09:21:00 2014.54] Unknown #110010072: Type 'talk text' (Respond to NPC)
[Jun 22 09:21:00 2014.54] [reactOnNPC] onNPCAction type is: text.
[Jun 22 09:21:00 2014.55] [reactOnNPC] Conditions for reactOnNPC_0 (npc:text , rect:text) is met.
[Jun 22 09:21:00 2014.55] [reactOnNPC] Matching [msg (0)] "You Have 3 Chance to Type the Red Text Correctly" to "/You Have 3 Chance to Type the Red Text Correctly/" ... regexp ok.
[Jun 22 09:21:00 2014.55] [reactOnNPC] Matching [msg (1)] "If you failed- You will be jailed" to "/If you failed- You will be jailed/" ... regexp ok.
[Jun 22 09:21:00 2014.56] [reactOnNPC] Matching [msg (2)] "Input the ^FF0000RED COLOUR^000000 part" to "/Input the \^([0-9a-fA-F]{6})RED COLOUR\^000000 part/" ... regexp ok.
[Jun 22 09:21:00 2014.56] [reactOnNPC] Matching [msg (3)] "^0000FFQSqGU^FF0000kxQpXJ^0000FFFQtQS^000000" to "/\s+\^([0-9a-fA-F]{6})(\S+)\^000000\s+/" ... doesn't match.
[Jun 22 09:21:00 2014.56] [reactOnNPC] One or more lines doesn't match for "reactOnNPC_0" (3).