summaryrefslogtreecommitdiff
path: root/world/map/npc/008-1
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/008-1')
-rw-r--r--world/map/npc/008-1/_import.txt1
-rw-r--r--world/map/npc/008-1/_warps.txt8
-rw-r--r--world/map/npc/008-1/diryn.txt125
-rw-r--r--world/map/npc/008-1/dock.txt23
-rw-r--r--world/map/npc/008-1/mapflags.txt1
5 files changed, 30 insertions, 128 deletions
diff --git a/world/map/npc/008-1/_import.txt b/world/map/npc/008-1/_import.txt
index 19468e6b..8808364d 100644
--- a/world/map/npc/008-1/_import.txt
+++ b/world/map/npc/008-1/_import.txt
@@ -9,3 +9,4 @@ npc: npc/008-1/diryn.txt
npc: npc/008-1/dock.txt
npc: npc/008-1/george.txt
npc: npc/008-1/hinnak.txt
+npc: npc/008-1/mapflags.txt
diff --git a/world/map/npc/008-1/_warps.txt b/world/map/npc/008-1/_warps.txt
index 9ce6481b..60785011 100644
--- a/world/map/npc/008-1/_warps.txt
+++ b/world/map/npc/008-1/_warps.txt
@@ -1,10 +1,10 @@
// This file is generated automatically. All manually changes will be removed when running the Converter.
// Hurnscald Outskirts warps
-008-1.gat,54,61|warp|Hurnscald West Entrance|-1,1,009-1.gat,25,36
-008-1.gat,79,80|warp|Hurnscald South Entrance|2,-1,009-1.gat,48,54
-008-1.gat,127,61|warp|Hurnscald East Entrance|-1,0,009-1.gat,96,36
-008-1.gat,79,49|warp|Hurnscald North Entrance|2,-1,009-1.gat,48,25
+008-1.gat,54,61|warp|To Hurnscald West Entrance|-1,1,009-1.gat,25,36
+008-1.gat,79,80|warp|To Hurnscald South Entrance|2,-1,009-1.gat,48,54
+008-1.gat,127,61|warp|To Hurnscald East Entrance|-1,0,009-1.gat,96,36
+008-1.gat,79,49|warp|To Hurnscald North Entrance|2,-1,009-1.gat,48,25
008-1.gat,24,62|warp|To Woodland|-1,2,011-1.gat,123,61
008-1.gat,79,17|warp|To Woodland Mining Camp|2,-1,018-1.gat,78,97
008-1.gat,79,102|warp|To Woodland|2,-1,007-1.gat,68,22
diff --git a/world/map/npc/008-1/diryn.txt b/world/map/npc/008-1/diryn.txt
index 5ed6ca02..22985393 100644
--- a/world/map/npc/008-1/diryn.txt
+++ b/world/map/npc/008-1/diryn.txt
@@ -1,128 +1,11 @@
// This is a teleportation (warp) NPC. Its purpose is to offer expensive, fast trips throughout the world.
-// Author: Wombat
+// Author: Wombat, wushin
// cost depending on level and adapted to new scripting guidelines: Jenalya
008-1.gat,81,82,0|script|Diryn the Traveler|103,
{
- if (BaseLevel < 45)
- goto L_LowerCost;
-
- set @cost_druidtree, 1500;
- set @cost_graveyard, 1500;
- set @cost_magichouse, 1000;
- set @cost_terranitecave, 1500;
- set @cost_tulimshar, 1000;
- set @cost_nivalis, 1500;
- goto L_Start;
-
-L_Start:
- mes "[Diryn]";
- mes "\"Greetings. I am Diryn the Traveler, Assistant Councilor of Tulimshar and teleporter extraordinaire. Tulimshar is expanding our influence throughout the world, so I was sent here to aid all who are willing and able to take on the threats to our interests.\"";
- next;
- mes "\"The monsters of the world have grown out of control, harming people, trade and travel. Needless to say, Tulimshar is not happy with this problem. Our solution: Rally those powerful enough to combat the monster threat and send them to hot spots to challenge the monster threat head on. However, teleportation to these areas is not only extremely dangerous, but also highly expensive. Do you think you got what it takes?\"";
- menu
- "I sure do!", L_Diryn_Yes,
- "No, thank you.", L_Diryn_No;
-
-L_Diryn_Yes:
- mes "[Diryn]";
- mes "\"Excellent. I can send you to many places, but again, the fees are large. Where shall I send you?\"";
- menu
- "Druid Tree (" + @cost_druidtree + " GP)", L_Diryn_Druid_Tree,
- "Graveyard (" + @cost_graveyard + " GP)", L_Diryn_Graveyard,
- "Magic House (" + @cost_magichouse + " GP)", L_Diryn_Magic_House,
- "Terranite Cave (" + @cost_terranitecave + " GP)", L_Diryn_Terranite,
- "Tulimshar Town Square (" + @cost_tulimshar + " GP)", L_Diryn_Tulimshar,
- "Sage Nikolai's Mansion (" + @cost_nivalis + " GP)", L_Diryn_Nivalis,
- "I'm not interested.", L_Diryn_No;
-
-L_Diryn_Druid_Tree:
- if (Zeny < @cost_druidtree)
- goto L_NoMoney;
- mes "[Diryn]";
- mes "\"Be fearless!\"";
- close2;
- set Zeny, Zeny - @cost_druidtree;
- warp "005-1.gat",73,36;
- goto L_Clearvars;
-
-L_Diryn_Graveyard:
- if (Zeny < @cost_graveyard)
- goto L_NoMoney;
- mes "[Diryn]";
- mes "\"Be fearless!\"";
- close2;
- set Zeny, Zeny - @cost_graveyard;
- warp "027-1.gat",70,85;
- goto L_Clearvars;
-
-L_Diryn_Magic_House:
- if (Zeny < @cost_magichouse)
- goto L_NoMoney;
- mes "[Diryn]";
- mes "\"Be fearless!\"";
- close2;
- set Zeny, Zeny - @cost_magichouse;
- warp "013-1.gat",45,92;
- goto L_Clearvars;
-
-L_Diryn_Terranite:
- if (Zeny < @cost_terranitecave)
- goto L_NoMoney;
- mes "[Diryn]";
- mes "\"Be fearless!\"";
- close2;
- set Zeny, Zeny - @cost_terranitecave;
- warp "012-3.gat",445,65;
- goto L_Clearvars;
-
-L_Diryn_Tulimshar:
- if (Zeny < @cost_tulimshar)
- goto L_NoMoney;
- mes "[Diryn]";
- mes "\"Be fearless!\"";
- close2;
- set Zeny, Zeny - @cost_tulimshar;
- warp "001-1.gat",44,70;
- goto L_Clearvars;
-
-L_Diryn_Nivalis:
- if (Zeny < @cost_nivalis)
- goto L_NoMoney;
- mes "[Diryn]";
- mes "\"Be fearless!\"";
- close2;
- set Zeny, Zeny - @cost_nivalis;
- warp "048-1.gat",65,45;
- goto L_Clearvars;
-
-L_Diryn_No:
- mes "[Diryn]";
- mes "\"Perhaps some day you will have the courage to help us. Enjoy your stay here in Hurnscald.\"";
- close2;
- goto L_Clearvars;
-
-L_NoMoney:
- mes "[Diryn]";
- mes "\"Sorry, you don't have enough money. Maybe next time.\"";
- close2;
- goto L_Clearvars;
-
-L_LowerCost:
- set @cost_druidtree, 750;
- set @cost_graveyard, 750;
- set @cost_magichouse, 500;
- set @cost_terranitecave, 750;
- set @cost_tulimshar, 500;
- set @cost_nivalis, 500;
- goto L_Start;
-
-L_Clearvars:
- set @cost_druidtree, 0;
- set @cost_graveyard, 0;
- set @cost_magichouse, 0;
- set @cost_terranitecave, 0;
- set @cost_tulimshar, 0;
- set @cost_nivalis, 0;
+ set @NpcName$, "Diryn";
+ set @NpcTravelBit, $@hurnscald_bit;
+ callfunc "Traveler";
end;
}
diff --git a/world/map/npc/008-1/dock.txt b/world/map/npc/008-1/dock.txt
index fc6bbfeb..a5f736b6 100644
--- a/world/map/npc/008-1/dock.txt
+++ b/world/map/npc/008-1/dock.txt
@@ -1,8 +1,25 @@
// The ferry dock
-008-1.gat,140,64,0|script|#hurnscalddock|45,2,1,
+008-1.gat,134,63,0|script|Ferry Schedule#5|397,
{
- set @loc, DOCK_hurnscald;
- callfunc "Ferry";
+ callfunc "FerryManifest";
+ end;
+}
+
+008-1.gat,147,64,0|script|Hurnscald Koga|395,8,3,
+{
+ callfunc "BoardFerry";
+ close;
+}
+
+008-1.gat,120,44,0|script|#HurnscaldDock|45,
+{
+ end;
+OnCommandArrive:
+ enablenpc "Hurnscald Koga";
+ end;
+
+OnCommandWarp:
+ disablenpc "Hurnscald Koga";
end;
}
diff --git a/world/map/npc/008-1/mapflags.txt b/world/map/npc/008-1/mapflags.txt
new file mode 100644
index 00000000..67199894
--- /dev/null
+++ b/world/map/npc/008-1/mapflags.txt
@@ -0,0 +1 @@
+008-1.gat|mapflag|resave|009-2,149,43