Openkore.com
http://forums.openkore.com/

reactOnNPC Executing Command Problem
http://forums.openkore.com/viewtopic.php?f=34&t=212972
Page 1 of 1

Author:  expelliarmus [ 07 Sep 2019, 09:38 ]
Post subject:  reactOnNPC Executing Command Problem

Image


Image

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:
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

Author:  Mortimal [ 16 Oct 2019, 06:25 ]
Post subject:  Re: reactOnNPC Executing Command Problem

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:
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.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/