diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-05 23:43:14 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-05-06 11:05:34 -0400 |
commit | 46bb91d3389c79c5375f191a7a136eb775559f99 (patch) | |
tree | f602c0c106748fbb7bd9f28c7bfa7ef81cbd2ddd /world/map/npc/functions/water_bottle.txt | |
parent | 969b8628b353e7e5bbdeaac5b4afe46a8a313e4f (diff) | |
download | serverdata-46bb91d3389c79c5375f191a7a136eb775559f99.tar.gz serverdata-46bb91d3389c79c5375f191a7a136eb775559f99.tar.bz2 serverdata-46bb91d3389c79c5375f191a7a136eb775559f99.tar.xz serverdata-46bb91d3389c79c5375f191a7a136eb775559f99.zip |
remove close builtin from functions
Diffstat (limited to 'world/map/npc/functions/water_bottle.txt')
-rw-r--r-- | world/map/npc/functions/water_bottle.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/world/map/npc/functions/water_bottle.txt b/world/map/npc/functions/water_bottle.txt index b9a73740..e5f80766 100644 --- a/world/map/npc/functions/water_bottle.txt +++ b/world/map/npc/functions/water_bottle.txt @@ -8,7 +8,7 @@ function|script|WaterBottle input @count; if (@count == 0) - close; + goto L_Close; set @cost, @count * @COST_PER_BOTTLE; set @empty, countitem("EmptyBottle"); @@ -25,17 +25,21 @@ function|script|WaterBottle set Zeny, Zeny - @cost; delitem "EmptyBottle", @count; getitem "BottleOfWater", @count; - close; + goto L_Close; L_NotEnoughBottles: mes "You don't have that many empty bottles!"; - close; + goto L_Close; L_NotEnoughMoney: mes "You don't have enough gp! You need " + @cost + "gp."; - close; + goto L_Close; L_NotEnoughSlots: mes "You don't have room for these bottles!"; - close; + goto L_Close; + +L_Close: + close2; + return; } |