diff options
author | Wushin <pasekei@gmail.com> | 2015-05-11 21:53:16 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-05-11 21:53:16 -0500 |
commit | da0f4578b83cc2f9df249dc1bb5bb33d720cb7a8 (patch) | |
tree | e832bd72654a02f5deb41380d494e4e50474f050 /world/map/npc/functions/water_bottle.txt | |
parent | 666512014d1a7929d511403c47fc4e49420c5423 (diff) | |
parent | 46bb91d3389c79c5375f191a7a136eb775559f99 (diff) | |
download | serverdata-da0f4578b83cc2f9df249dc1bb5bb33d720cb7a8.tar.gz serverdata-da0f4578b83cc2f9df249dc1bb5bb33d720cb7a8.tar.bz2 serverdata-da0f4578b83cc2f9df249dc1bb5bb33d720cb7a8.tar.xz serverdata-da0f4578b83cc2f9df249dc1bb5bb33d720cb7a8.zip |
Merge pull request #370 from mekolat/close-end
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; } |