summaryrefslogtreecommitdiff
path: root/npc/012-1/mahad.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-28 23:26:35 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-28 23:26:35 -0300
commitc687f87e5dbeb0c40df9c0f1f94c301b22ce5649 (patch)
tree8e489fdfc51f3d548afd5aa3dbc3598350665c54 /npc/012-1/mahad.txt
parent2486a1dd2b67bfea7722f793d1c9f180fcc8d57a (diff)
downloadserverdata-c687f87e5dbeb0c40df9c0f1f94c301b22ce5649.tar.gz
serverdata-c687f87e5dbeb0c40df9c0f1f94c301b22ce5649.tar.bz2
serverdata-c687f87e5dbeb0c40df9c0f1f94c301b22ce5649.tar.xz
serverdata-c687f87e5dbeb0c40df9c0f1f94c301b22ce5649.zip
012-1 Mahad code updated (more modern now)
Diffstat (limited to 'npc/012-1/mahad.txt')
-rw-r--r--npc/012-1/mahad.txt20
1 files changed, 7 insertions, 13 deletions
diff --git a/npc/012-1/mahad.txt b/npc/012-1/mahad.txt
index 5195b7045..a62ade08a 100644
--- a/npc/012-1/mahad.txt
+++ b/npc/012-1/mahad.txt
@@ -13,20 +13,24 @@
mes l("I can fill your bottle with water for only @@ gp the bottle.", .price);
mes l("After all, I am the Well Master!");
input .@count;
-
+ mes "";
if (!.@count)
close;
.@gp = .@count * .price;
+ // Not enough cash
if (Zeny < .@gp) {
- mesc l("Not enough money.");
+ mesn;
+ mes l("You don't have enough gold! You need @@ gp.", .@gp);
close;
}
+ // Not enough bottles
if (countitem(EmptyBottle) < .@count) {
- mesc l("Not enough bottles.");
+ mesn;
+ mes l("You don't have that many empty bottles!");
close;
}
@@ -46,17 +50,7 @@
getitem BottleOfWoodlandWater, .@count-.@iced;
close;
-L_NotEnoughBottles:
- mes "";
- mesn;
- mes l("You don't have that many empty bottles!");
- close;
-
L_NotEnoughMoney:
- mes "";
- mesn;
- mes l("You don't have enough gold! You need @@ gp.", .@Cost);
- close;
OnInit:
.price = 60;