Openkore.com

OpenKore Forums
It is currently 15 Dec 2019, 23:13

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: reactOnNPC Executing Command Problem
PostPosted: 07 Sep 2019, 09:38 
Offline
Noob
Noob

Joined: 07 Sep 2019, 09:22
Posts: 2
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


Top
 Profile  
 
 Post subject: Re: reactOnNPC Executing Command Problem
PostPosted: 16 Oct 2019, 06:25 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 391
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.

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group