From 7922c819d4767ace993441bb27209f858e7bdb68 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Wed, 21 Jul 2010 22:57:04 -0400 Subject: Add the basics for candor Reviewed-by: Turmfalke --- npc/functions/ferry.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'npc/functions') 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; -- cgit v1.2.3-70-g09d2