diff options
author | The Kandiman <kandiman@kandiman.(none)> | 2011-09-10 20:15:17 -0400 |
---|---|---|
committer | The Kandiman <kandiman@kandiman.(none)> | 2011-09-11 16:48:18 -0400 |
commit | 1cb0e75cbd356485ebe35bb3f5af10e1454e57a5 (patch) | |
tree | 594bbf4a1bb428ef527f6ce6ec79e4eb3e478607 /world/map/npc/functions/ferry.txt | |
parent | a9868851cfe19c503cc72b0289889c564b41dd20 (diff) | |
download | classic-serverdata-1cb0e75cbd356485ebe35bb3f5af10e1454e57a5.tar.gz classic-serverdata-1cb0e75cbd356485ebe35bb3f5af10e1454e57a5.tar.bz2 classic-serverdata-1cb0e75cbd356485ebe35bb3f5af10e1454e57a5.tar.xz classic-serverdata-1cb0e75cbd356485ebe35bb3f5af10e1454e57a5.zip |
Tab conversion and formatting project.
npc/functions and npc/items complete.
Diffstat (limited to 'world/map/npc/functions/ferry.txt')
-rw-r--r-- | world/map/npc/functions/ferry.txt | 104 |
1 files changed, 53 insertions, 51 deletions
diff --git a/world/map/npc/functions/ferry.txt b/world/map/npc/functions/ferry.txt index 95a176ec..50ad9038 100644 --- a/world/map/npc/functions/ferry.txt +++ b/world/map/npc/functions/ferry.txt @@ -1,73 +1,75 @@ // The ferry system -function script Ferry { - if (BaseLevel < 20) goto L_LowerCost; - set @cost_tulimshar, 500; - set @cost_hurnscald, 500; +function|script|Ferry|{ + if (BaseLevel < 20) + goto L_LowerCost; + set @cost_tulimshar, 500; + set @cost_hurnscald, 500; L_Start: - set @cost_candor, 1500; - mes "Where would you like to go?"; - next; - if (BaseLevel < 40) goto L_PlainMenu; - goto L_MenuWithCandor; + set @cost_candor, 1500; + mes "Where would you like to go?"; + next; + if (BaseLevel < 40) + goto L_PlainMenu; + goto L_MenuWithCandor; L_PlainMenu: - menu - "Tulimshar (" + @cost_tulimshar + "GP)", L_Tulimshar, - "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, - "Nevermind", -; - close; + menu + "Tulimshar (" + @cost_tulimshar + "GP)", L_Tulimshar, + "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, + "Nevermind", -; + close; L_MenuWithCandor: - menu - "Tulimshar (" + @cost_tulimshar + "GP)", L_Tulimshar, - "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, - "Candor (" + @cost_candor + "GP)", L_Candor, - "Nevermind", -; - close; + menu + "Tulimshar (" + @cost_tulimshar + "GP)", L_Tulimshar, + "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, + "Candor (" + @cost_candor + "GP)", L_Candor, + "Nevermind", -; + close; L_Tulimshar: - if (@loc == DOCK_tulimshar) - goto L_AlreadyThere; - if (zeny < @cost_tulimshar) - goto L_NotEnoughGP; - - set zeny, zeny - @cost_tulimshar; - warp "022-1.gat", 76, 72; - close; + if (@loc == DOCK_tulimshar) + goto L_AlreadyThere; + if (zeny < @cost_tulimshar) + goto L_NotEnoughGP; + + set zeny, zeny - @cost_tulimshar; + warp "022-1.gat", 76, 72; + close; L_Hurnscald: - if (@loc == DOCK_hurnscald) - goto L_AlreadyThere; - if (zeny < @cost_hurnscald) - goto L_NotEnoughGP; - - set zeny, zeny - @cost_hurnscald; - warp "008-1.gat", 137, 64; - close; + if (@loc == DOCK_hurnscald) + goto L_AlreadyThere; + if (zeny < @cost_hurnscald) + goto L_NotEnoughGP; + + set zeny, zeny - @cost_hurnscald; + warp "008-1.gat", 137, 64; + close; L_Candor: - if (@loc == DOCK_candor) - goto L_AlreadyThere; - if (zeny < @cost_candor) - goto L_NotEnoughGP; - - set zeny, zeny - @cost_candor; - warp "029-1.gat", 25, 37; - close; + if (@loc == DOCK_candor) + goto L_AlreadyThere; + if (zeny < @cost_candor) + goto L_NotEnoughGP; + + set zeny, zeny - @cost_candor; + warp "029-1.gat", 25, 37; + close; L_AlreadyThere: - mes "You're already here!"; - close; + mes "You're already here!"; + close; L_NotEnoughGP: - mes "You don't have enough money to go there!"; - close; + mes "You don't have enough money to go there!"; + close; L_LowerCost: - set @cost_tulimshar, 250; - set @cost_hurnscald, 250; - goto L_Start; + set @cost_tulimshar, 250; + set @cost_hurnscald, 250; + goto L_Start; } |