From c687f87e5dbeb0c40df9c0f1f94c301b22ce5649 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 28 Mar 2019 23:26:35 -0300 Subject: 012-1 Mahad code updated (more modern now) --- npc/012-1/mahad.txt | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'npc/012-1/mahad.txt') 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; -- cgit v1.2.3-60-g2f50