Openkore.com

OpenKore Forums
It is currently 15 Dec 2017, 02:23

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: We have waited for too long after we sent a response to the
PostPosted: 09 Nov 2017, 07:13 
Offline
Human
Human

Joined: 03 Apr 2017, 00:19
Posts: 46
hakore wrote:
Try this first:

timeouts.txt

ai_npc_talk_wait_to_answer

Set this to a very high number, say 10000000000


it "WoRKs" While the progress bar is running and upgrading. But say if I enter 10, it takes me 10 seconds for each NPC before proceeding the next page.


Top
 Profile  
 
 Post subject: Re: We have waited for too long after we sent a response to the
PostPosted: 10 Nov 2017, 00:44 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 16 May 2008, 08:28
Posts: 218
How about dynamically setting ai_npc_talk_wait_to_answer using reactOnNPC plugin?

Code:
# Upon reaching the Next button, we automatically send talk cont and increase timeout for ai_npc_talk_wait_to_answer
reactOnNPC eval $messageSender->sendTalkContinue(pack("V", @eval($reactOnNPC{ID})));;eval setTimeout("ai_npc_talk_wait_to_answer", 1000000) {
   msg_0 [Spooky Machine]
   msg_1 And here we go!
   msg_2 Time to upgrade that Buckler!
   type continue
}

# When the NPC conversation ends, we automatically send talk cancel and restore timeout for ai_npc_talk_wait_to_answer
reactOnNPC eval $messageSender->sendTalkCancel(pack("V", @eval($reactOnNPC{ID})));;eval setTimeout("ai_npc_talk_wait_to_answer", 1.5) {
   msg_0 [Spooky Machine]
   type close
}


So you just have to initiate the conversation using talk command via doCommand or macro. I don't know if sendTalkContinue and sendTalkCancel will conflict with openkore's automatic handling of NPC conversations.

Note that this is just a workaround. You may raise this issue on github so an active dev can review the talkNPC routines.

Sorry, I'm not botting on any server (nor am I playing Ragnarok now), so I can't test this for you.

_________________
Whatever...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


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