Openkore.com

OpenKore Forums
It is currently 21 Oct 2017, 11:32

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 415 posts ]  Go to page Previous  1 ... 38, 39, 40, 41, 42
Author Message
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 26 Aug 2017, 08:12 
Offline
Human
Human

Joined: 11 Jul 2017, 00:49
Posts: 37
hakore wrote:
This is discussed one page earlier, and also on the first topic you replied to.

Instructions for the plugin is on the first page.

Please try it and come back here if there are problems.

The problem i am running into with the block you created to bypass the Do you want to move NPC is the fact that you first have to press talk cont then talk resp0, how exactly do you set it to do 2 steps in one block?


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 26 Aug 2017, 08:27 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 16 May 2008, 08:28
Posts: 214
Solution 1: autoTalkCont 1 (config.txt)

Solution 2: Create another reactOnNPC block for "talk cont" with the same msg_x but with "type continue". Note that reactOnNPC works in such a way that it triggers for every conversation step. You just have to configure it properly. See "type".

_________________
Whatever...


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 26 Aug 2017, 17:47 
Offline
Human
Human

Joined: 11 Jul 2017, 00:49
Posts: 37
Autotalkcont messes up some of my job change macros so im looking to avoid using that.

reactOnNPC talk cont {
type continue
msg_0 /Do\s+you\s+want\s+to\s+move\?/
inMap
}

reactOnNPC talk resp @resp(/Yes/) {
type responses
msg_0 /Do\s+you\s+want\s+to\s+move\?/
inMap
}

This still only triggers the talk cont and then sits there waiting for a response.


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 26 Aug 2017, 22:45 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 16 May 2008, 08:28
Posts: 214
I would have to check the source, but can't do so until after 2 days as I'm away from my pc. It needs to be adjusted if it can't catch spontaneous talk events.

Easiest way probably is to pair it with a macro. Call the macro from within reactOnNPC whose type is continue. Macro will then talk cont, pause then talk resp.

Although I'm sure chaining commands using ;; will work just as fine and I think it also has a pause command similar to macros.

Code:
reactOnNPC talk cont;;pause;;talk resp @resp(/Yes/) {


I'm just not sure about the exact syntax of pause, if someone else can verify, please.

_________________
Whatever...


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 28 Aug 2017, 02:24 
Offline
Human
Human

Joined: 11 Jul 2017, 00:49
Posts: 37
reactOnNPC macro transfernpc {
type continue
msg_0 Do you want to move?
inMap
}

macro transfernpc {
do talk cont
pause 3
do talk resp 0
}


I assume you mean use it like this? They took the npc down so i can't test it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 415 posts ]  Go to page Previous  1 ... 38, 39, 40, 41, 42

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