OpenKore / openkore

A free/open source client and automation tool for Ragnarok Online
http://openkore.com
Other
1.25k stars 1.03k forks source link

Send response to npc as quickly as possible #3793

Closed hexhexD closed 8 months ago

hexhexD commented 8 months ago

This change removes artificial delay controlled by ai_npc_talk_wait_to_answer. Every NPC message 00B4 sets $ai_v{npc_talk}{talk} = 'initiated';, and a NPC dialog menu 00B7 sets $ai_v{'npc_talk'}{'talk'} = 'select';. By returning early on intiated, we can make talking to NPC really fast and makes the bot more enjoyable to use. I have been using this change locally for couple months now and it's working flawlessly, and it doesn't change the behavior of when an NPC sends no response.

ya4ept commented 8 months ago

@hexhexD please add some description

hexhexD commented 8 months ago

Thanks for reviewing, I added some explanation and a bit improvement.