Solution:
need use
reactOnNPC plugin.
1. add to the plugins folder next file:
reactOnNPC.pl
2. add to your config following options:
Code: Select all
reactOnNPC talk num @eval(my $color = '#6~1';$color = 'FF8C00' if($color eq 'FFA500'@);my @@array = ('#0~1','#0~2','#0~3','#0~4','#1~1','#1~2','#1~3','#1~4','#2~1','#2~2','#2~3','#2~4','#3~1','#3~2','#3~3','#3~4','#4~1','#4~2','#4~3','#4~4','#5~1','#5~2','#5~3','#5~4'@);my $answer;for($a = 0; $a <= 24; $a++@) {if (@@array[$a] eq $color@) {$answer = @@array[$a+1]}}return $answer) {
type number
useColors 1
delay 2
msg_0 /\^[0-9a-fA-F]{6}\d+\^000000\^([0-9a-fA-F]{6})(\d+)\^000000\^([0-9a-fA-F]{6})(\d+)\^000000/
msg_1 /\^[0-9a-fA-F]{6}\d+\^000000\^([0-9a-fA-F]{6})(\d+)\^000000\^([0-9a-fA-F]{6})(\d+)\^000000/
msg_2 /\^[0-9a-fA-F]{6}\d+\^000000\^([0-9a-fA-F]{6})(\d+)\^000000\^([0-9a-fA-F]{6})(\d+)\^000000/
msg_3 /\^[0-9a-fA-F]{6}\d+\^000000\^([0-9a-fA-F]{6})(\d+)\^000000\^([0-9a-fA-F]{6})(\d+)\^000000/
msg_4 /\^[0-9a-fA-F]{6}\d+\^000000\^([0-9a-fA-F]{6})(\d+)\^000000\^([0-9a-fA-F]{6})(\d+)\^000000/
msg_5 /\^[0-9a-fA-F]{6}\d+\^000000\^([0-9a-fA-F]{6})(\d+)\^000000\^([0-9a-fA-F]{6})(\d+)\^000000/
msg_6 /0.*\^(0000FF|A52A2A|9400D3|FFA500|008000|FF0000)\s?#/
}
3. add to your macros.txt following macro:
Code: Select all
automacro backtogoldroom {
location prontera
timeout 30
delay 2
call {
do c @warp prontera 121 160
pause 2
do talk @npc(143 169)
pause 2
do talk resp 0
}
}
enjoy