diff options
Diffstat (limited to 'npc/003-1/mahoud.txt')
-rw-r--r-- | npc/003-1/mahoud.txt | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/npc/003-1/mahoud.txt b/npc/003-1/mahoud.txt index 36885dac5..73d97dcb4 100644 --- a/npc/003-1/mahoud.txt +++ b/npc/003-1/mahoud.txt @@ -6,16 +6,14 @@ // Mahoud is the Tulimshar Well Master 003-1,46,79,0 script Mahoud NPC_PLAYER,{ - - .@COST_PER_BOTTLE = 50; - - mes l("I can fill your bottle with water for only @@ gp the bottle.", .@COST_PER_BOTTLE); + mesn; + mes l("I can fill your bottle with water for only @@ gp the bottle.", .COST_PER_BOTTLE); mes l("After all, I am the Well Master!"); input .@count; if (.@count == 0) close; - .@Cost = .@count * .@COST_PER_BOTTLE; + .@Cost = .@count * .COST_PER_BOTTLE; .@empty = countitem("EmptyBottle"); if (.@empty < .@count) @@ -23,29 +21,27 @@ if (Zeny < .@Cost) goto L_NotEnoughMoney; getinventorylist; - if (@inventorylist_count == 100 - && countitem("BottleOfSeaWater") == 0 - && .@empty > .@count) - goto L_NotEnoughSlots; + inventoryplace BottleOfTonoriWater, .@count; - set Zeny, Zeny - .@Cost; + Zeny=Zeny-.@Cost; delitem "EmptyBottle", .@count; getitem "BottleOfTonoriWater", .@count; close; L_NotEnoughBottles: + mes ""; + mesn; mes l("You don't have that many empty bottles!"); close; L_NotEnoughMoney: - mes l("You don't have enough gp! You need @@ gp.", .@Cost); - close; - -L_NotEnoughSlots: - mes l("You don't have room for these bottles!"); + mes ""; + mesn; + mes l("You don't have enough gold! You need @@ gp.", .@Cost); close; OnInit: + .COST_PER_BOTTLE = 50; .sex = G_MALE; .distance = 7; |