diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-07-21 22:57:04 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-07-22 18:57:49 -0400 |
commit | 7922c819d4767ace993441bb27209f858e7bdb68 (patch) | |
tree | 007195bb0c39852eb8cf254adb9456cbeb9a8dcc /npc/functions | |
parent | df4e6c4107511d5f533ebe54b710fa6431726300 (diff) | |
download | serverdata-7922c819d4767ace993441bb27209f858e7bdb68.tar.gz serverdata-7922c819d4767ace993441bb27209f858e7bdb68.tar.bz2 serverdata-7922c819d4767ace993441bb27209f858e7bdb68.tar.xz serverdata-7922c819d4767ace993441bb27209f858e7bdb68.zip |
Add the basics for candor
Reviewed-by: Turmfalke
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/ferry.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/npc/functions/ferry.txt b/npc/functions/ferry.txt index 9bc3eea2..d0fcd04f 100644 --- a/npc/functions/ferry.txt +++ b/npc/functions/ferry.txt @@ -3,12 +3,25 @@ function script Ferry { set @cost_tulimshar, 1000; set @cost_hurnscald, 1000; + set @cost_candor, 3000; 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; + +L_MenuWithCandor: menu "Tulimshar (" + @cost_tulimshar + "GP)", L_Tulimshar, "Hurnscald (" + @cost_hurnscald + "GP)", L_Hurnscald, + "Candor (" + @cost_candor + "GP)", L_Candor, "Nevermind", -; close; @@ -32,6 +45,16 @@ L_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; + L_AlreadyThere: mes "You're already here!"; close; |