summaryrefslogtreecommitdiff
path: root/npc/018-7-1/demure.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-24 17:50:17 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-24 17:50:17 -0300
commitd1de48ff1f8e3f9b30cc1fa6e785c4883e6884f1 (patch)
treeaffec46d34b996ac0efe88d52a6ca530d9a09d7d /npc/018-7-1/demure.txt
parentcc561befe13af2dab5a3e292c77b587afee44364 (diff)
downloadserverdata-d1de48ff1f8e3f9b30cc1fa6e785c4883e6884f1.tar.gz
serverdata-d1de48ff1f8e3f9b30cc1fa6e785c4883e6884f1.tar.bz2
serverdata-d1de48ff1f8e3f9b30cc1fa6e785c4883e6884f1.tar.xz
serverdata-d1de48ff1f8e3f9b30cc1fa6e785c4883e6884f1.zip
Make maps, and use some duct tape on the FIXME's warnings
Diffstat (limited to 'npc/018-7-1/demure.txt')
-rw-r--r--npc/018-7-1/demure.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/npc/018-7-1/demure.txt b/npc/018-7-1/demure.txt
index bcb08251e..869b68c30 100644
--- a/npc/018-7-1/demure.txt
+++ b/npc/018-7-1/demure.txt
@@ -140,7 +140,6 @@ OnDem2:
Zeny += rand2(500, 1500)*max(1, @d_mode2);
// FIXME: Add a proper reward
maptimer2(.@m$, 100, strnpcinfo(NPC_NAME_UNIQUE)+"::OnBye");
- // FIXME: @d_* might not be set
01871_Demure_BlackBox();
}
end;
@@ -177,9 +176,11 @@ OnDem1:
// And finally, change form (ressurect)
.@m=monster(.@m$, 87, 57, strmobinfo(1, DemureSecondForm), DemureSecondForm, 1, strnpcinfo(NPC_NAME_UNIQUE)+"::OnDem2");
- .@p=getunitdata(.@m, UDT_MAXHP);
- setunitdata(.@m, UDT_MAXHP, .@p*@d_count*@d_mode3);
- setunitdata(.@m, UDT_HP, .@p*@d_count*@d_mode3);
+ if (@d_count) {
+ .@p=getunitdata(.@m, UDT_MAXHP);
+ setunitdata(.@m, UDT_MAXHP, .@p*@d_count*@d_mode3);
+ setunitdata(.@m, UDT_HP, .@p*@d_count*@d_mode3);
+ }
mapannounce(getmap(), .@n$+"I'll leave a 2x2 black square where you used to be!", bc_map | bc_pc);
end;