Page 1 of 1
reactOnNPC Executing Command Problem
Posted: 07 Sep 2019, 09:38
by expelliarmus
I try to follow the script i found in this forum
and everyhthing is going well but it have problem with the Executing Command part
it put the command along with the "^000000" in it..
here is the script that i use now :
Code: Select all
reactOnNPC_debug 1
reactOnNPC talk num #1~1 {
type number
useColors 1
delay 2
msg_0 /Please Enter The \^([0-9a-fA-F]{6})Blue\^000000 Code/
msg_1 /.*\^0000FF(\S+)\^[0-9a-fA-F]{6}\S+\^000000/
}
please help me how to make npc execute the right commands
Re: reactOnNPC Executing Command Problem
Posted: 16 Oct 2019, 06:25
by Mortimal
Need more info. colour is only blue(or can it be any)? is it always at the centre(or can be at the beginning or end of the text)?
if only blue and always at the centre than:
Code: Select all
reactOnNPC talk num #1~1 {
type number
useColors 1
delay 2
msg_0 /Please Enter The \^0000FFBlue\^000000 Code/
msg_1 /^.*\^0000FF(\d+)\^.*$/
}
if not U need to catalogue all colours and codes for them and give a lot of examples for me.