You are using the plugin I changed to use just for nesting commands, to your case you need the original plugin, download it from the first post.
Do the follow to see the messages from the plugin without using debug:
1) Open your reactOnNPC.pl file
2) Find these lines: (they are not together)
debug "[reactOnNPC] NPC message saved ($reactOnNPC{index}): \"$msg\".\n", "reactOnNPC";
debug "[reactOnNPC] Conditions for reactOnNPC_$i not met.\n", "reactOnNPC";
debug "[reactOnNPC] One or more lines doesn't match for \"reactOnNPC_$i\" ($j).\n", "reactOnNPC";
debug "[reactOnNPC] Matching \"$subject\" to \"$pattern\" ($line)... ", "reactOnNPC";
debug "doesn't match.\n", "reactOnNPC";
3) Where is written
debug change it to
message at all these lines.
Ex: message "doesn't match.\n", "reactOnNPC";
About the accents, I mean just this:
delapan -> dêlâpån
Just add the symbols above the vowels!
You don't need the color codes, like this:
^3FBA11
Everything started with ^ and followed by 6 hexadecimal digits is a color code.
Right now the plugin isn't work because of the letters between the words.
Try this code:
Code: Select all
reactOnNPC talk num @eval(my $numerotxt = #2~1;my $answer;switch ($numerotxt) { case /se.?.?ratus/ {$answer=1} case /dua.?.?ratus/ {$answer=2} case /tiga.?.?ratus/ {$answer=3} case /empat.?.?ratus/ {$answer=4} case /lima.?.?ratus/ {$answer=5} case /enam.?.?ratus/ {$answer=6} case /tujuh.?.?ratus/ {$answer=7} case /delapan.?.?ratus/ {$answer=8} case /sembilan.?.?ratus/ {$answer=9}}switch ($numerotxt) { case /se.?.?puluh|belas/ {$answer.=1} case /dua.?.?puluh/ {$answer.=2} case /tiga.?.?puluh/ {$answer.=3} case /empat.?.?puluh/ {$answer.=4} case /lima.?.?puluh/ {$answer.=5} case /enam.?.?puluh/ {$answer.=6} case /tujuh.?.?puluh/ {$answer.=7} case /delapan.?.?puluh/ {$answer.=8} case /sembilan.?.?puluh/ {$answer.=9} else {$answer.=0}}switch ($numerotxt) { case /satu.{0,3}$|se.?.?belas/ {$answer.=1} case /dua.{0,3}$|dua.?.?belas/ {$answer.=2} case /tiga.{0,3}$|tiga.?.?belas/ {$answer.=3} case /empat.{0,3}$|empat.?.?belas/ {$answer.=4} case /lima.{0,3}$|lima.?.?belas/ {$answer.=5} case /enam.{0,3}$|enam.?.?belas/ {$answer.=6} case /tujuh.{0,3}$|tujuh.?.?belas/ {$answer.=7} case /delapan.{0,3}$|delapan.?.?belas/ {$answer.=8} case /sembilan.{0,3}$|sembilan.?.?belas/ {$answer.=9} else {$answer.=0}}return $answer;)
type number
msg_0 /\[Police\]/
msg_1 /Input This Number:/
msg_2 /(\w+)/
}
But don't forget the accents!