reactOnNPC Executing Command Problem

Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.

Moderator: Moderators

Post Reply
Message
Author
expelliarmus
Noob
Noob
Posts: 2
Joined: 07 Sep 2019, 09:22
Noob?: Yes

reactOnNPC Executing Command Problem

#1 Post by expelliarmus »

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

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: reactOnNPC Executing Command Problem

#2 Post 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.
Please use pin function for uploading your file contents!

Post Reply