summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-20 13:59:22 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-20 13:59:22 -0300
commit5629260b874fe11c31914d3f8dea2dc224b12aa7 (patch)
tree33cf053a0689bb37c70fea59b74c03371298e37d /npc
parenta5ebf6c44d96cc25ac7e1ea4eae045fcca93563d (diff)
downloadserverdata-5629260b874fe11c31914d3f8dea2dc224b12aa7.tar.gz
serverdata-5629260b874fe11c31914d3f8dea2dc224b12aa7.tar.bz2
serverdata-5629260b874fe11c31914d3f8dea2dc224b12aa7.tar.xz
serverdata-5629260b874fe11c31914d3f8dea2dc224b12aa7.zip
Fix bug on Erik the Dispatcher
Diffstat (limited to 'npc')
-rw-r--r--npc/017-10/dispatcher.txt22
1 files 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]"),