summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-07-21 22:57:04 -0400
committerChuck Miller <shadowmil@gmail.com>2010-07-22 18:57:49 -0400
commit7922c819d4767ace993441bb27209f858e7bdb68 (patch)
tree007195bb0c39852eb8cf254adb9456cbeb9a8dcc /npc/functions
parentdf4e6c4107511d5f533ebe54b710fa6431726300 (diff)
downloadserverdata-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.txt23
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;