summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-13 00:14:56 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-13 00:14:56 -0300
commit22fbb497f47845736ba1fcdc957168d2bb682d20 (patch)
tree75415c22ae131f7f89511044b0486f4ac60df19a
parent5447c0e512d63b3b7642f3daafde072224ec850b (diff)
downloadserverdata-22fbb497f47845736ba1fcdc957168d2bb682d20.tar.gz
serverdata-22fbb497f47845736ba1fcdc957168d2bb682d20.tar.bz2
serverdata-22fbb497f47845736ba1fcdc957168d2bb682d20.tar.xz
serverdata-22fbb497f47845736ba1fcdc957168d2bb682d20.zip
Fix Pihro
-rw-r--r--npc/017-4/pihro.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/017-4/pihro.txt b/npc/017-4/pihro.txt
index ed8de51d6..d9bb3d3d3 100644
--- a/npc/017-4/pihro.txt
+++ b/npc/017-4/pihro.txt
@@ -48,8 +48,10 @@
Zeny >= .@price) {
inventoryplace .@prize, 220;
delitem .@base1, .@amon1;
- delitem .@base2, .@amon2;
- delitem .@base3, .@amon3;
+ if (.@base2 > 0)
+ delitem .@base2, .@amon2;
+ if (.@base3 > 0)
+ delitem .@base3, .@amon3;
Zeny = Zeny - .@price;
getitem .@prize, rand(100,220);