From cadf4c8c8102bc08d336029e8303eab3e905f636 Mon Sep 17 00:00:00 2001 From: hexhexD Date: Sun, 4 Feb 2024 09:42:24 -0800 Subject: [PATCH] TalkNpc task account for progress bar while talking --- src/Task/TalkNPC.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Task/TalkNPC.pm b/src/Task/TalkNPC.pm index 84537b16f5..b2b7898b41 100644 --- a/src/Task/TalkNPC.pm +++ b/src/Task/TalkNPC.pm @@ -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.";