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

TalkNpc task account for progress bar while talking #3850

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Task/TalkNPC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@ sub iterate {

#We must always wait for the last sent step to be answered, if it hasn't then cancel this task.
if ($self->{wait_for_answer}) {
if (${self}->{progress_bar}) {
$ai_v{'npc_talk'}{'time'} = time;
return;
}
if (timeOut($ai_v{'npc_talk'}{'time'}, $timeResponse)) {
$self->{error_code} = NPC_TIMEOUT_AFTER_ASWER;
$self->{error_message} = "We have waited for too long after we sent a response to the npc.";
Expand Down
Loading