Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send response to npc as quickly as possible #3793

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

hexhexD
Copy link
Member

@hexhexD hexhexD commented Sep 23, 2023

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.

src/Task/TalkNPC.pm Outdated Show resolved Hide resolved
@ya4ept
Copy link
Contributor

ya4ept commented Sep 30, 2023

@hexhexD please add some description

@hexhexD
Copy link
Member Author

hexhexD commented Oct 8, 2023

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

@hexhexD hexhexD merged commit d29adb2 into OpenKore:master Oct 9, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants