diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2012-01-05 21:53:16 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2012-01-05 22:41:38 +0100 |
commit | 4877fb59919aa76d24f2d62fbff30f6058154282 (patch) | |
tree | f8e6ddda70ba930ff93de2ae1cbd655decadae21 /world/map | |
parent | d9f53e465358f3dafe92deea476d00fcb4033214 (diff) | |
download | serverdata-4877fb59919aa76d24f2d62fbff30f6058154282.tar.gz serverdata-4877fb59919aa76d24f2d62fbff30f6058154282.tar.bz2 serverdata-4877fb59919aa76d24f2d62fbff30f6058154282.tar.xz serverdata-4877fb59919aa76d24f2d62fbff30f6058154282.zip |
Ferry function: setting temporary player variables to zero before closing.
Diffstat (limited to 'world/map')
-rw-r--r-- | world/map/npc/functions/ferry.txt | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/world/map/npc/functions/ferry.txt b/world/map/npc/functions/ferry.txt index 26da871d..dd3e83d8 100644 --- a/world/map/npc/functions/ferry.txt +++ b/world/map/npc/functions/ferry.txt @@ -20,7 +20,7 @@ L_PlainMenu: "Tulimshar (" + @cost_tulimshar + "GP)", L_Tulimshar, "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, "Nevermind", -; - close; + goto L_Close; L_MenuWithCandor: menu @@ -28,7 +28,7 @@ L_MenuWithCandor: "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, "Candor (" + @cost_candor + "GP)", L_Candor, "Nevermind", -; - close; + goto L_Close; L_Tulimshar: if (@loc == DOCK_tulimshar) @@ -38,7 +38,7 @@ L_Tulimshar: set Zeny, Zeny - @cost_tulimshar; warp "022-1.gat", 76, 72; - close; + goto L_Close; L_Hurnscald: if (@loc == DOCK_hurnscald) @@ -48,7 +48,7 @@ L_Hurnscald: set Zeny, Zeny - @cost_hurnscald; warp "008-1.gat", 137, 64; - close; + goto L_Close; L_Candor: if (@loc == DOCK_candor) @@ -58,18 +58,25 @@ L_Candor: set Zeny, Zeny - @cost_candor; warp "029-1.gat", 25, 37; - close; + goto L_Close; L_AlreadyThere: mes "You're already here!"; - close; + goto L_Close; L_NotEnoughGP: mes "You don't have enough money to go there!"; - close; + goto L_Close; L_LowerCost: set @cost_tulimshar, 250; set @cost_hurnscald, 250; goto L_Start; + +L_Close: + set @cost_tulimshar, 0; + set @cost_hurnscald, 0; + set @cost_candor, 0; + set @loc, 0; + close; } |