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 = '#0~1';$color = 'FF8C00' if($color eq 'FFA500'@);my @@array = ('#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','#6~1','#6~2','#6~3','#6~4'@);my $answer;for($a = 0; $a < 24; $a = $a+2@) {if (@@array[$a] eq $color@) {$answer = @@array[$a+1]}}return $answer) {
type number
useColors 1
delay 5
msg_0 /Enter Color.*(008000|0000FF|FF0000|9400D3|A52A2A|FFA500).*#/
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-9a-fA-F]{6}\d+\^000000\^([0-9a-fA-F]{6})(\d+)\^000000\^([0-9a-fA-F]{6})(\d+)\^000000/
}
log console:
* :zxcv34 Talk to [Anti Bot Checking]: *
You are now: state: Frozen
Options changed.
Unknown #110145776: [Anti Bot Checking]
Unknown #110145776: Are You Bot ?? if not.. follow The Correct Number Please Read Below
Unknown #110145776: Please enter the input number correctly ######
Unknown #110145776: You must enter the input number same as the ##### color
Unknown #110145776: Auto-continuing talking
Unknown #110145776: Enter Color #### ###############
Unknown #110145776: 199526759223688948664
Unknown #110145776: 212086653509728948664
Unknown #110145776: 358663331352978948664
Unknown #110145776: 911495376948368948664
Unknown #110145776: 988766166753978948664
Unknown #110145776: 378792830395398948664
Unknown #110145776: Auto-continuing talking
NPC Exists: Unknown #110145776 (151, 160) (ID 110145776) - (12)
Unknown #110145776: Type 'talk num <number #>' to input a number.
[reactOnNPC] Reacting to NPC. Executing command "talk num 7694836".
Unknown #110145776: Auto-continuing talking
Unknown #110145776: Welldone~~, zxcv34!
Unknown #110145776: Thanks For Enter the Number Correctly....
Unknown #110145776: Invite more players come here ok..tq.
You are no longer: state: Frozen
Options changed.
Unknown #110145776: Done talking
Unknown #110145773: Done talking
enjoy