From 5629260b874fe11c31914d3f8dea2dc224b12aa7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 20 Aug 2019 13:59:22 -0300 Subject: Fix bug on Erik the Dispatcher --- npc/017-10/dispatcher.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/npc/017-10/dispatcher.txt b/npc/017-10/dispatcher.txt index 59d78f527..49bff36a4 100644 --- a/npc/017-10/dispatcher.txt +++ b/npc/017-10/dispatcher.txt @@ -31,6 +31,17 @@ break; case 2: mesc l("Your homunculus is already on a mission!"), 1; + + // Homunculus should return from mission + if (gettimetick(2) > HOMUN_DEPLOYDATE) { + select + l("Recall"); + recallhomunculus(); + .@xp=lootField(HOMUN_DEPLOYFIELD); + gethomunexp(.@xp); + getexp 0, (.@lv*min(10000, gethominfo(3))/10000)*5; + close; + } mesc l("It should be back in @@", FuzzyTime(HOMUN_DEPLOYDATE)), 1; close; break; @@ -45,17 +56,6 @@ close; } - // Homunculus should return from mission - if (homstatus()) { - select - l("Recall"); - recallhomunculus(); - .@xp=lootField(HOMUN_DEPLOYFIELD); - gethomunexp(.@xp); - getexp 0, (.@lv*min(10000, gethominfo(3))/10000)*5; - close; - } - L_Main: select l("Deploy to Piou Fields [1h]"), -- cgit v1.2.3-70-g09d2