summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@gmx.de>2013-08-25 18:01:05 +0200
committerJessica Tölke <jtoelke@gmx.de>2013-08-25 18:01:05 +0200
commit803b7fd5e4224276e5db57e8fa3d351d6529e80f (patch)
tree67dff994f7673c7ed2efaef9d496631268668b2f /world/map/npc
parent36c6803069bfe3be37d482e682a3167b8bf0363d (diff)
parentb3fc5b76efb0031277ad039d3f332b7c2b874d1c (diff)
downloadserverdata-803b7fd5e4224276e5db57e8fa3d351d6529e80f.tar.gz
serverdata-803b7fd5e4224276e5db57e8fa3d351d6529e80f.tar.bz2
serverdata-803b7fd5e4224276e5db57e8fa3d351d6529e80f.tar.xz
serverdata-803b7fd5e4224276e5db57e8fa3d351d6529e80f.zip
Merge remote-tracking branch 'origin/master' into waric
Conflicts: world/map/db/item_db.txt
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/001-1/mapflags.txt4
-rw-r--r--world/map/npc/001-1/soul-menhir.txt2
-rw-r--r--world/map/npc/001-2/mapflags.txt4
-rw-r--r--world/map/npc/001-3/guards.txt2
-rw-r--r--world/map/npc/001-3/pvpflag.txt2
-rw-r--r--world/map/npc/002-4/mine_triggerone.txt2
-rw-r--r--world/map/npc/002-4/mine_triggerthree.txt2
-rw-r--r--world/map/npc/002-4/mine_triggertwo.txt2
-rw-r--r--world/map/npc/005-1/npcs.txt2
-rw-r--r--world/map/npc/008-1/george.txt2
-rw-r--r--world/map/npc/009-1/jack.txt32
-rw-r--r--world/map/npc/009-1/mapflags.txt4
-rw-r--r--world/map/npc/009-1/soul-menhir.txt2
-rw-r--r--world/map/npc/009-2/drunks.txt4
-rw-r--r--world/map/npc/009-2/mapflags.txt4
-rw-r--r--world/map/npc/009-2/misc.txt2
-rw-r--r--world/map/npc/009-2/nurse.txt2
-rw-r--r--world/map/npc/009-2/olana.txt6
-rw-r--r--world/map/npc/009-2/selim.txt4
-rw-r--r--world/map/npc/009-2/shops.txt4
-rw-r--r--world/map/npc/009-4/orum.txt2
-rw-r--r--world/map/npc/009-4/torches.txt6
-rw-r--r--world/map/npc/009-4/waric.txt4
-rw-r--r--world/map/npc/009-5/mapflags.txt2
-rw-r--r--world/map/npc/009-6/brodomir.txt2
-rw-r--r--world/map/npc/010-2/chef.txt2
-rw-r--r--world/map/npc/010-2/dimonds.txt8
-rw-r--r--world/map/npc/010-2/loratay.txt6
-rw-r--r--world/map/npc/012-3/warningsigns.txt6
-rw-r--r--world/map/npc/012-4/pvpflag.txt2
-rw-r--r--world/map/npc/013-2/notes.txt22
-rw-r--r--world/map/npc/013-3/misc.txt2
-rw-r--r--world/map/npc/013-3/sword_chest.txt2
-rw-r--r--world/map/npc/015-3/mapflags.txt2
-rw-r--r--world/map/npc/018-2/receptionist.txt2
-rw-r--r--world/map/npc/020-1/mapflags.txt4
-rw-r--r--world/map/npc/020-1/soul-menhir.txt2
-rw-r--r--world/map/npc/020-2/mapflags.txt4
-rw-r--r--world/map/npc/020-2/shops.txt4
-rw-r--r--world/map/npc/021-1/gate_guards.txt14
-rw-r--r--world/map/npc/021-1/hetchel.txt8
-rw-r--r--world/map/npc/021-1/mapflags.txt4
-rw-r--r--world/map/npc/021-1/workers.txt6
-rw-r--r--world/map/npc/021-2/government_building.txt2
-rw-r--r--world/map/npc/021-2/mapflags.txt4
-rw-r--r--world/map/npc/022-1/mapflags.txt4
-rw-r--r--world/map/npc/022-1/tutorial.txt2
-rw-r--r--world/map/npc/025-1/rossy.txt12
-rw-r--r--world/map/npc/025-4/mapflags.txt2
-rw-r--r--world/map/npc/027-1/graves.txt24
-rw-r--r--world/map/npc/027-2/door.txt3
-rw-r--r--world/map/npc/027-2/gy_inn_shops.txt2
-rw-r--r--world/map/npc/027-2/headless_man.txt2
-rw-r--r--world/map/npc/027-3/mapflags.txt2
-rw-r--r--world/map/npc/027-4/mapflags.txt2
-rw-r--r--world/map/npc/029-3/mapflags.txt2
-rw-r--r--world/map/npc/031-2/angelaHouse.txt2
-rw-r--r--world/map/npc/031-2/cindyHouse.txt2
-rw-r--r--world/map/npc/031-3/labyrinth.txt2
-rw-r--r--world/map/npc/031-4/barrier.txt2
-rw-r--r--world/map/npc/031-4/cindyCave.txt64
-rw-r--r--world/map/npc/031-4/mapflags.txt2
-rw-r--r--world/map/npc/032-1/miriam.txt5
-rw-r--r--world/map/npc/041-1/tutorial.txt2
-rw-r--r--world/map/npc/042-2/mapflags.txt2
-rw-r--r--world/map/npc/042-2/sorfina.txt4
-rw-r--r--world/map/npc/051-1/mapflags.txt2
-rw-r--r--world/map/npc/051-3/mapflags.txt2
-rw-r--r--world/map/npc/052-1/mapflags.txt2
-rw-r--r--world/map/npc/052-2/chest.txt12
-rw-r--r--world/map/npc/052-2/mapflags.txt2
-rw-r--r--world/map/npc/056-2/mapflags.txt2
-rw-r--r--world/map/npc/056-2/notes.txt4
-rw-r--r--world/map/npc/easter/2010/Doctor.txt10
-rw-r--r--world/map/npc/functions/banker.txt2
-rw-r--r--world/map/npc/items/require_stat.txt12
76 files changed, 207 insertions, 197 deletions
diff --git a/world/map/npc/001-1/mapflags.txt b/world/map/npc/001-1/mapflags.txt
index ba066398..6150d386 100644
--- a/world/map/npc/001-1/mapflags.txt
+++ b/world/map/npc/001-1/mapflags.txt
@@ -1,2 +1,2 @@
-001-1.gat mapflag no_player_drops
-001-1.gat mapflag town
+001-1.gat|mapflag|no_player_drops
+001-1.gat|mapflag|town
diff --git a/world/map/npc/001-1/soul-menhir.txt b/world/map/npc/001-1/soul-menhir.txt
index 4ebea361..be22cb89 100644
--- a/world/map/npc/001-1/soul-menhir.txt
+++ b/world/map/npc/001-1/soul-menhir.txt
@@ -1,6 +1,6 @@
//
-001-1.gat,38,69,0|script|Soul Menhir|345,
+001-1.gat,38,69,0|script|Soul Menhir#tulimshar|345,
{
callfunc "ClearVariables";
set @map$, "001-1.gat";
diff --git a/world/map/npc/001-2/mapflags.txt b/world/map/npc/001-2/mapflags.txt
index dda29b1e..47e871dc 100644
--- a/world/map/npc/001-2/mapflags.txt
+++ b/world/map/npc/001-2/mapflags.txt
@@ -1,2 +1,2 @@
-001-2.gat mapflag no_player_drops
-001-2.gat mapflag town
+001-2.gat|mapflag|no_player_drops
+001-2.gat|mapflag|town
diff --git a/world/map/npc/001-3/guards.txt b/world/map/npc/001-3/guards.txt
index 78ee6ca6..38acaf85 100644
--- a/world/map/npc/001-3/guards.txt
+++ b/world/map/npc/001-3/guards.txt
@@ -1,6 +1,6 @@
//
-001-3.gat,77,37,0|script|Phaet|125,
+001-3.gat,77,37,0|script|Phaet#arena|125,
{
mes "[Phaet the Royal Guard]";
mes "\"Do you want to go back?\"";
diff --git a/world/map/npc/001-3/pvpflag.txt b/world/map/npc/001-3/pvpflag.txt
index 73b6e556..96d382d4 100644
--- a/world/map/npc/001-3/pvpflag.txt
+++ b/world/map/npc/001-3/pvpflag.txt
@@ -1 +1 @@
-001-3.gat mapflag pvp
+001-3.gat|mapflag|pvp
diff --git a/world/map/npc/002-4/mine_triggerone.txt b/world/map/npc/002-4/mine_triggerone.txt
index 6d7e8e13..86d9a501 100644
--- a/world/map/npc/002-4/mine_triggerone.txt
+++ b/world/map/npc/002-4/mine_triggerone.txt
@@ -1,7 +1,7 @@
//Sandstorm mine trigger 1 Trigger 002-4 35,43 (127)
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-4.gat,30,47,0|script|Button|400,0,0,
+002-4.gat,30,47,0|script|Button#mine-1|400,0,0,
{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-4/mine_triggerthree.txt b/world/map/npc/002-4/mine_triggerthree.txt
index 015928f1..76ea8e9e 100644
--- a/world/map/npc/002-4/mine_triggerthree.txt
+++ b/world/map/npc/002-4/mine_triggerthree.txt
@@ -1,7 +1,7 @@
//Sandstorm mine trigger 3 Trigger 002-4 98,42 (127)
// Variables used: nibble 4 and 5 of QUEST_SouthTulimshar
-002-4.gat,91,99,0|script|Button|400,0,0,
+002-4.gat,91,99,0|script|Button#mine-3|400,0,0,
{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/002-4/mine_triggertwo.txt b/world/map/npc/002-4/mine_triggertwo.txt
index 4af6ad7e..f51a85e3 100644
--- a/world/map/npc/002-4/mine_triggertwo.txt
+++ b/world/map/npc/002-4/mine_triggertwo.txt
@@ -3,7 +3,7 @@
// - nibble 4 and 5 of QUEST_SouthTulimshar
// - in FLAGS, FLAG_OPENED_UNDERGROUND
-002-4.gat,100,37,0|script|Button|400,0,0,
+002-4.gat,100,37,0|script|Button#mine-2|400,0,0,
{
// This NPC previously used the variable TMW_Quest
callfunc "ClearVarTMW_Quest";
diff --git a/world/map/npc/005-1/npcs.txt b/world/map/npc/005-1/npcs.txt
index 499b637e..fda22da2 100644
--- a/world/map/npc/005-1/npcs.txt
+++ b/world/map/npc/005-1/npcs.txt
@@ -1,6 +1,6 @@
//
-005-1.gat,69,76,0|shop|George|115,ShortBow :-1,Arrow :1,IronArrow :-1,Beer :-1,ChickenLeg :-2
+005-1.gat,69,76,0|shop|George#sandstorm|115,ShortBow :-1,Arrow :1,IronArrow :-1,Beer :-1,ChickenLeg :-2
005-1.gat,66,75,0|script|Kieron|132,
{
diff --git a/world/map/npc/008-1/george.txt b/world/map/npc/008-1/george.txt
index fb7406bb..5faf73bf 100644
--- a/world/map/npc/008-1/george.txt
+++ b/world/map/npc/008-1/george.txt
@@ -1,6 +1,6 @@
//
-008-1.gat,136,36,0|script|George|138,
+008-1.gat,136,36,0|script|George#pirate|138,
{
set @hw2011_npc_id, $@hw2011_npc_george;
if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
diff --git a/world/map/npc/009-1/jack.txt b/world/map/npc/009-1/jack.txt
index 6d7bf498..cbdb0558 100644
--- a/world/map/npc/009-1/jack.txt
+++ b/world/map/npc/009-1/jack.txt
@@ -219,11 +219,11 @@ L_TooMany:
L_Shield_state_3:
mes "[Jack Lumber]";
mes "\"I hope that my shield will serve you well!\"";
- if (@inspector != 1)
- goto L_Close;
next;
+ if (@inspector != 1)
+ goto L_Made_Shield;
menu
- "Me too.", L_Close,
+ "Me too.", L_Made_Shield,
"Have you seen anything that might be connected to the recent robberies in town?", L_NohMask_Answer;
// This is an ugly violation of the scripting standards,
@@ -240,6 +240,32 @@ L_NohMask_Answer:
mes "\"Sorry, no.\"";
goto L_Close;
+L_Made_Shield:
+ next;
+ mes "[Jack Lumber]";
+ mes "\"Speaking of that shield...\"";
+ mes "\"It has put me behind on all these new Nivalis orders, now that the ship is running there.\"";
+ next;
+ mes "\"Care to help out? I'll pay you for your time.\"";
+
+L_Daily:
+ set @dq_level, 30;
+ set @dq_cost, 25;
+ set @dq_count, 30;
+ set @dq_name$, "RawLog";
+ set @dq_friendly_name$, "raw logs";
+ set @dq_money, 4000;
+ set @dq_exp, 4000;
+
+ callfunc "DailyQuest";
+
+ next;
+
+ mes "[Jack Lumber]";
+ mes "\"Check back with me tomorrow to see if I need any help with that shipment.\"";
+
+ goto L_Close;
+
L_Close:
set @inspector, 0;
close;
diff --git a/world/map/npc/009-1/mapflags.txt b/world/map/npc/009-1/mapflags.txt
index f435d5d7..6e7c80b1 100644
--- a/world/map/npc/009-1/mapflags.txt
+++ b/world/map/npc/009-1/mapflags.txt
@@ -1,2 +1,2 @@
-009-1.gat mapflag no_player_drops
-009-1.gat mapflag town
+009-1.gat|mapflag|no_player_drops
+009-1.gat|mapflag|town
diff --git a/world/map/npc/009-1/soul-menhir.txt b/world/map/npc/009-1/soul-menhir.txt
index 063ac7a9..cc711625 100644
--- a/world/map/npc/009-1/soul-menhir.txt
+++ b/world/map/npc/009-1/soul-menhir.txt
@@ -1,6 +1,6 @@
//
-009-1.gat,53,40,0|script|Soul Menhir|344,
+009-1.gat,53,40,0|script|Soul Menhir#hurnscald|344,
{
callfunc "ClearVariables";
set @map$, "009-1.gat";
diff --git a/world/map/npc/009-2/drunks.txt b/world/map/npc/009-2/drunks.txt
index d97100ac..73158c14 100644
--- a/world/map/npc/009-2/drunks.txt
+++ b/world/map/npc/009-2/drunks.txt
@@ -1,6 +1,6 @@
//Left drinking contest guy
-009-2.gat,65,55,0|script|Drinker|121,
+009-2.gat,65,55,0|script|Drinker#1|121,
{
mes "[Binge Drinker]";
mes "\"Ha! I'll drink muuuch mo.. more than you! Im not ooone biiit dr...dr..unk!\"";
@@ -9,7 +9,7 @@
//Right drinking contest guy
-009-2.gat,68,55,0|script|Drinker|121,
+009-2.gat,68,55,0|script|Drinker#2|121,
{
mes "[Binge Drinker]";
mes "\"I can still drink more! Better give up you... you... teelotaler! MORE BEER MELINDA!\"";
diff --git a/world/map/npc/009-2/mapflags.txt b/world/map/npc/009-2/mapflags.txt
index 84ee64b6..81cb5f02 100644
--- a/world/map/npc/009-2/mapflags.txt
+++ b/world/map/npc/009-2/mapflags.txt
@@ -1,2 +1,2 @@
-009-2.gat mapflag no_player_drops
-009-2.gat mapflag town
+009-2.gat|mapflag|no_player_drops
+009-2.gat|mapflag|town
diff --git a/world/map/npc/009-2/misc.txt b/world/map/npc/009-2/misc.txt
index 5c80dc90..7af10c83 100644
--- a/world/map/npc/009-2/misc.txt
+++ b/world/map/npc/009-2/misc.txt
@@ -1,6 +1,6 @@
//Note in bar
-009-2.gat,54,49,0|script|Note|400,
+009-2.gat,54,49,0|script|Note#bar|400,
{
mes "[Note]";
mes "\"We refuse service to anyone who:\"";
diff --git a/world/map/npc/009-2/nurse.txt b/world/map/npc/009-2/nurse.txt
index d89b30d4..5249819d 100644
--- a/world/map/npc/009-2/nurse.txt
+++ b/world/map/npc/009-2/nurse.txt
@@ -1,4 +1,4 @@
- //######################################################################################
+//######################################################################################
//# Nurse
//# AUTHORS: Jenalya and Pjotr Orial
//# REVIEWED BY:
diff --git a/world/map/npc/009-2/olana.txt b/world/map/npc/009-2/olana.txt
index d528cc41..3e7be881 100644
--- a/world/map/npc/009-2/olana.txt
+++ b/world/map/npc/009-2/olana.txt
@@ -82,9 +82,9 @@ L_Worried:
L_See:
if (gotcherry == 1)
goto L_Task;
- if (countitem("cherry") < @Cherry_Amount)
+ if (countitem("Cherry") < @Cherry_Amount)
goto L_Worried;
- delitem "cherry", @Cherry_Amount;
+ delitem "Cherry", @Cherry_Amount;
menu
"Hi, Rossy asked me to give you this. She says it is a gift from both her and Julia.", -;
mes "[Olana]";
@@ -147,7 +147,7 @@ L_RG:
close;
L_RC:
- if(countitem("redrose") < @RedRose_Amount)
+ if(countitem("RedRose") < @RedRose_Amount)
goto L_RG;
mes "[Olana]";
set Rossy_Quest, 10;
diff --git a/world/map/npc/009-2/selim.txt b/world/map/npc/009-2/selim.txt
index 055e54eb..dee87a8e 100644
--- a/world/map/npc/009-2/selim.txt
+++ b/world/map/npc/009-2/selim.txt
@@ -90,13 +90,13 @@ L_miniskirt:
L_tanktop:
set @del, 688;
set @new, 2090;
- set @name$, "tanktop";
+ set @name$, "tank top";
goto L_picked_item;
L_tanktop_short:
set @del, 689;
set @new, 2120;
- set @name$, "short tanktop";
+ set @name$, "short tank top";
goto L_picked_item;
L_robe:
diff --git a/world/map/npc/009-2/shops.txt b/world/map/npc/009-2/shops.txt
index c6267ceb..7837b816 100644
--- a/world/map/npc/009-2/shops.txt
+++ b/world/map/npc/009-2/shops.txt
@@ -10,7 +10,7 @@
// Receptionist
// Offers the player to rest at the inn for 100gp
-009-2.gat,50,48,0|script|Receptionist|108,
+009-2.gat,50,48,0|script|Receptionist#inn|108,
{
set @npcname$, "Receptionist";
set @cost, 100;
@@ -27,4 +27,4 @@
// General Store
// Sells various things, many not sold elsewhere
-009-2.gat,32,99,0|shop|General Store|112,Milk :-1,BottleOfWater :-1,CottonShirt :-1,CottonShorts :-1,Boots :-1,SerfHat :-1,CottonHeadband :-1,CottonGloves :-1
+009-2.gat,32,99,0|shop|General Store#hurnscald|112,Milk :-1,BottleOfWater :-1,CottonShirt :-1,CottonShorts :-1,Boots :-1,SerfHat :-1,CottonHeadband :-1,CottonGloves :-1
diff --git a/world/map/npc/009-4/orum.txt b/world/map/npc/009-4/orum.txt
index a8c4b505..c6cbd403 100644
--- a/world/map/npc/009-4/orum.txt
+++ b/world/map/npc/009-4/orum.txt
@@ -18,7 +18,7 @@
//# OrumQuestBarrier nibble (0,1,2) stores the color of the barriers #
//#################################################################################
-009-4.gat,37,115,0|script|Orum|158,
+009-4.gat,37,115,0|script|Orum#barrier|158,
{
// needed to pass the very first barrier
set @B0_WISPPOWDER, 4;
diff --git a/world/map/npc/009-4/torches.txt b/world/map/npc/009-4/torches.txt
index 03acc6b0..79fb6ca1 100644
--- a/world/map/npc/009-4/torches.txt
+++ b/world/map/npc/009-4/torches.txt
@@ -268,7 +268,7 @@ L_Failed:
}
// First Torch
-009-4.gat,68,21,0|script|Torch|400,
+009-4.gat,68,21,0|script|Torch#1|400,
{
callfunc "InRangeTorch1";
callfunc "DoneWithTorches";
@@ -279,7 +279,7 @@ L_Failed:
}
// Second Torch
-009-4.gat,67,42,0|script|Torch|400,
+009-4.gat,67,42,0|script|Torch#2|400,
{
callfunc "InRangeTorch2";
callfunc "DoneWithTorches";
@@ -290,7 +290,7 @@ L_Failed:
}
// Third Torch
-009-4.gat,33,86,0|script|Torch|400,
+009-4.gat,33,86,0|script|Torch#3|400,
{
callfunc "InRangeTorch3";
callfunc "DoneWithTorches";
diff --git a/world/map/npc/009-4/waric.txt b/world/map/npc/009-4/waric.txt
index 9231bb94..13187203 100644
--- a/world/map/npc/009-4/waric.txt
+++ b/world/map/npc/009-4/waric.txt
@@ -19,7 +19,7 @@
close;
}
-009-4.gat,120,43,0|script|Orum|158,
+009-4.gat,120,43,0|script|Orum#trap|158,
{
mes "[Orum]";
mes "\"I told you to forget about this place but you did not heed my advice!\"";
@@ -28,7 +28,7 @@
close;
}
-009-4.gat,118,42,0|script|Waric|153,
+009-4.gat,118,42,0|script|Waric#trap|153,
{
set @EXP_LEARNED_ALOT, 10000;
if (OrumQuest >= 13)
diff --git a/world/map/npc/009-5/mapflags.txt b/world/map/npc/009-5/mapflags.txt
index f581bcac..5a3b920a 100644
--- a/world/map/npc/009-5/mapflags.txt
+++ b/world/map/npc/009-5/mapflags.txt
@@ -1 +1 @@
-009-5.gat mapflag nosave 009-3,162,82;
+009-5.gat|mapflag|nosave|009-3,162,82
diff --git a/world/map/npc/009-6/brodomir.txt b/world/map/npc/009-6/brodomir.txt
index 8d9bf5f5..56139103 100644
--- a/world/map/npc/009-6/brodomir.txt
+++ b/world/map/npc/009-6/brodomir.txt
@@ -1,4 +1,4 @@
-// Last Man Standing PvP Event NPC
+// Last Man Standing PvP Event NPC
// Authors: tux9th, Jenalya
// many thanks to Jenalaya, o11c, Ablu :)
// CAVE: this script requires a patch by o11c that makes it possible for
diff --git a/world/map/npc/010-2/chef.txt b/world/map/npc/010-2/chef.txt
index 6343e517..0a295d65 100644
--- a/world/map/npc/010-2/chef.txt
+++ b/world/map/npc/010-2/chef.txt
@@ -1,4 +1,4 @@
-010-2.gat,33,25,0|script|Chef|148,
+010-2.gat,33,25,0|script|Chef#dimond|148,
{
// lines belong to Easter 2011:
// set @month, 4;
diff --git a/world/map/npc/010-2/dimonds.txt b/world/map/npc/010-2/dimonds.txt
index 8fe8cbc5..300891c3 100644
--- a/world/map/npc/010-2/dimonds.txt
+++ b/world/map/npc/010-2/dimonds.txt
@@ -216,7 +216,7 @@
getinventorylist;
if (@inventorylist_count == 100)
goto L_Full_Inv;
- getitem "bowlerhat", 1;
+ getitem "BowlerHat", 1;
set FLAGS, FLAGS | FLAG_HAS_BOWLER_BURNSDAY;
close;
@@ -501,14 +501,14 @@ leave:
close;
}
-010-2.gat,71,38,0|script|Store Policy|400,
+010-2.gat,71,38,0|script|Store Policy#1|400,
{
mes "All sales are final.";
mes "Returns are subject to a 50% re-stocking fee.";
close;
}
-010-2.gat,77,38,0|script|Store Policy|400,
+010-2.gat,77,38,0|script|Store Policy#2|400,
{
mes "All sales are final.";
mes "Returns are subject to a 50% re-stocking fee.";
@@ -565,7 +565,7 @@ leave:
010-2.gat,85,41,0|shop|Blacksmith|146,ForestBow :-1,IronArrow :-1,LeatherShield :-1
-010-2.gat,65,41,0|shop|General Store|137,CottonShorts :-1,FancyHat :-1,SilkHeadband :-1,CottonSkirt :-1,Boots :-1,CottonBoots :-1
+010-2.gat,65,41,0|shop|General Store#dimond|137,CottonShorts :-1,FancyHat :-1,SilkHeadband :-1,CottonSkirt :-1,Boots :-1,CottonBoots :-1
010-2.gat,75,68,0|script|Basil|107,
{
diff --git a/world/map/npc/010-2/loratay.txt b/world/map/npc/010-2/loratay.txt
index 436f7f09..906bd874 100644
--- a/world/map/npc/010-2/loratay.txt
+++ b/world/map/npc/010-2/loratay.txt
@@ -751,7 +751,7 @@ L_robe_sheets:
mes "[Lora Tay the Seamstress]";
mes "The seamstress puts your GP away, takes your measurements and puts the silk sheets on the table. She asks you to stretch out your arms, then pins the silk sheets in place all over your body.";
next;
-
+
L_get_robe:
mes "[Lora Tay the Seamstress]";
mes "She proceeds to make a number of mysterious marks on the sheets with a charcoal pen. Meanwhile, your arms are getting tired, but you're afraid to lower them-- she used a lot of pins to put everything into place, and you lost track of where they went...";
@@ -763,7 +763,7 @@ L_get_robe:
mes "[Lora Tay the Seamstress]";
mes "She then treats the seams with some odorless liquid, making them vanish completely. Finally she hands you the finished robe.";
getitem "SilkRobe", 1;
- if (@Robe_with_sheets == 1)
+ if (@Robe_with_sheets == 1)
goto L_robe_sheet_end;
mes "\"Here you are now, this will fit. And don't you dare tell anyone that I did this! I'm not about to start a silk cocoon collection!\"";
next;
@@ -823,7 +823,7 @@ L_robe_nosilk:
goto L_main_menu;
L_end:
- set @ROBE_COCOONS_NR, 0;
+ set @ROBE_COCOONS_NR, 0;
set @ROBE_ZENY, 0;
set @ROBE_SHEETS_NR, 0;
set @ROBE_SHEETS_ZENY, 0;
diff --git a/world/map/npc/012-3/warningsigns.txt b/world/map/npc/012-3/warningsigns.txt
index 4dd2336d..bb92d1fe 100644
--- a/world/map/npc/012-3/warningsigns.txt
+++ b/world/map/npc/012-3/warningsigns.txt
@@ -1,6 +1,6 @@
//warning signs at pvp entrance!
-012-3.gat,445,61,0|script|sign|187,
+012-3.gat,445,61,0|script|sign#pvp-1|187,
{
mes "You are about to enter a dangerous area!";
next;
@@ -9,11 +9,11 @@
close;
}
-012-3.gat,451,61,0|script|sign|186,
+012-3.gat,451,61,0|script|sign#pvp-2|186,
{
mes "You are about to enter a dangerous area!";
next;
mes "This area has a great distance to town. So the protection spell of the town is not active in that cave!";
mes "That is why other players are able to attack you.";
close;
-} \ No newline at end of file
+}
diff --git a/world/map/npc/012-4/pvpflag.txt b/world/map/npc/012-4/pvpflag.txt
index b796cefa..021ecc36 100644
--- a/world/map/npc/012-4/pvpflag.txt
+++ b/world/map/npc/012-4/pvpflag.txt
@@ -1 +1 @@
-012-4.gat mapflag pvp
+012-4.gat|mapflag|pvp
diff --git a/world/map/npc/013-2/notes.txt b/world/map/npc/013-2/notes.txt
index f946254f..f0aee204 100644
--- a/world/map/npc/013-2/notes.txt
+++ b/world/map/npc/013-2/notes.txt
@@ -1,25 +1,25 @@
//
-013-2.gat,23,32,0|script|Motto|400,
+013-2.gat,23,32,0|script|Motto#wiz|400,
{
mes "Mid pleasures and palaces though we may roam,";
mes "Be it ever so humble, there's no place like home.";
close;
}
-013-2.gat,30,32,0|script|Note|400,
+013-2.gat,30,32,0|script|Note#wiz|400,
{
mes "Please do not open.";
close;
}
-013-2.gat,38,20,0|script|Saying|400,
+013-2.gat,38,20,0|script|Saying#wiz|400,
{
mes "The early bird catcheth the worm.";
close;
}
-013-2.gat,27,21,0|script|Mirror|400,
+013-2.gat,27,21,0|script|Mirror#wiz|400,
{
mes "You say: \"Mirror mirror on the wall, who has the nicest haircut of them all?\"";
next;
@@ -35,7 +35,7 @@
}
// Warp to north-eastern woods
-013-2.gat,25,23,0|script|Spell|400,
+013-2.gat,25,23,0|script|Spell#wiz1|400,
{
mes "You read: \"I see trees of green, red roses too. I see them bloom for me and you. And I think to myself: \'What a wonderful world\'\"";
next;
@@ -48,7 +48,7 @@
}
// Warp to Indian in south-eastern desert
-013-2.gat,27,24,0|script|Spell|400,
+013-2.gat,27,24,0|script|Spell#wiz2|400,
{
mes "You read: \"A red-coloured fellow smoking his pipe - down in the desert - that's what I like!\"";
next;
@@ -69,7 +69,7 @@ L_cheat:
}
// Warp to snow area
-013-2.gat,25,27,0|script|Spell|400,
+013-2.gat,25,27,0|script|Spell#wiz3|400,
{
mes "You read: \"Snow-white flakes and eminent frost - I'll go there, whatever the cost!\"";
next;
@@ -100,7 +100,7 @@ L_Close:
}
// Warp to Dimond
-013-2.gat,27,27,0|script|Spell|400,
+013-2.gat,27,27,0|script|Spell#wiz4|400,
{
mes "You read: \"People and cosiness, lively and fun - that's where I've gone!\"";
next;
@@ -111,7 +111,7 @@ L_Close:
}
// Warp to mines level 2
-013-2.gat,26,28,0|script|Spell|400,
+013-2.gat,26,28,0|script|Spell#wiz5|400,
{
mes "You read: \"Darkness and legs, eight of them each - I'd rather not go there, but now it's too late...\"";
next;
@@ -122,7 +122,7 @@ L_Close:
}
// Death
-013-2.gat,21,29,0|script|Spell|400,
+013-2.gat,21,29,0|script|Spell#wiz6|400,
{
mes "You read: \"Heart stops pumping, breath begone - life is stopping, death has come!\"";
next;
@@ -133,7 +133,7 @@ L_Close:
}
// Naked
-013-2.gat,28,29,0|script|Spell|400,
+013-2.gat,28,29,0|script|Spell#wiz7|400,
{
mes "You read: \"Cotton, steel, leather and wool - have I ever seen a greater fool?\"";
next;
diff --git a/world/map/npc/013-3/misc.txt b/world/map/npc/013-3/misc.txt
index eadfef13..60324fff 100644
--- a/world/map/npc/013-3/misc.txt
+++ b/world/map/npc/013-3/misc.txt
@@ -1,6 +1,6 @@
//
-013-3.gat,127,68,0|script|Chest|111,
+013-3.gat,127,68,0|script|Chest#boring|111,
{
mes "You can't see any way to open this chest.";
close;
diff --git a/world/map/npc/013-3/sword_chest.txt b/world/map/npc/013-3/sword_chest.txt
index f6b9836e..1bd579e8 100644
--- a/world/map/npc/013-3/sword_chest.txt
+++ b/world/map/npc/013-3/sword_chest.txt
@@ -1,6 +1,6 @@
//
-013-3.gat,177,22,0|script|Chest|111,
+013-3.gat,177,22,0|script|Chest#sword|111,
{
callfunc "ClearVariables";
if (FLAGS & FLAG_HURNSMINE_CHEST) goto L_Finished;
diff --git a/world/map/npc/015-3/mapflags.txt b/world/map/npc/015-3/mapflags.txt
index 2a8247fe..53cca2bc 100644
--- a/world/map/npc/015-3/mapflags.txt
+++ b/world/map/npc/015-3/mapflags.txt
@@ -1 +1 @@
-015-3.gat mapflag nosave 015-1,59,32;
+015-3.gat|mapflag|nosave|015-1,59,32
diff --git a/world/map/npc/018-2/receptionist.txt b/world/map/npc/018-2/receptionist.txt
index 019e6f42..45635cfd 100644
--- a/world/map/npc/018-2/receptionist.txt
+++ b/world/map/npc/018-2/receptionist.txt
@@ -1,6 +1,6 @@
//
-018-2.gat,50,24,0|script|Receptionist|108,
+018-2.gat,50,24,0|script|Receptionist#mine|108,
{
callfunc "ClearVariables";
diff --git a/world/map/npc/020-1/mapflags.txt b/world/map/npc/020-1/mapflags.txt
index 203cf649..52ed1236 100644
--- a/world/map/npc/020-1/mapflags.txt
+++ b/world/map/npc/020-1/mapflags.txt
@@ -1,2 +1,2 @@
-020-1.gat mapflag no_player_drops
-020-1.gat mapflag town
+020-1.gat|mapflag|no_player_drops
+020-1.gat|mapflag|town
diff --git a/world/map/npc/020-1/soul-menhir.txt b/world/map/npc/020-1/soul-menhir.txt
index 75ba384a..6a53b8cd 100644
--- a/world/map/npc/020-1/soul-menhir.txt
+++ b/world/map/npc/020-1/soul-menhir.txt
@@ -1,6 +1,6 @@
//
-020-1.gat,63,89,0|script|Soul Menhir|346,
+020-1.gat,63,89,0|script|Soul Menhir#nivalis|346,
{
callfunc "ClearVariables";
set @map$, "020-1.gat";
diff --git a/world/map/npc/020-2/mapflags.txt b/world/map/npc/020-2/mapflags.txt
index aaa1b90f..8c185eec 100644
--- a/world/map/npc/020-2/mapflags.txt
+++ b/world/map/npc/020-2/mapflags.txt
@@ -1,2 +1,2 @@
-020-2.gat mapflag no_player_drops
-020-2.gat mapflag town
+020-2.gat|mapflag|no_player_drops
+020-2.gat|mapflag|town
diff --git a/world/map/npc/020-2/shops.txt b/world/map/npc/020-2/shops.txt
index 80399668..d27e1b0c 100644
--- a/world/map/npc/020-2/shops.txt
+++ b/world/map/npc/020-2/shops.txt
@@ -14,9 +14,9 @@
close;
}
// Weapons shop
-020-2.gat,25,65,0|shop|Bracco|135,IronArrow :-1, Shortbow :-1, Dagger :-1, LeatherShield :-1
+020-2.gat,25,65,0|shop|Bracco|135,IronArrow :-1,ShortBow :-1,Dagger :-1,LeatherShield :-1
// Potions shop
-020-2.gat,75,24,0|shop|Mede|103,CactusDrink :-1, CactusPotion :-1, IronPotion :-1, ConcentrationPotion :-1
+020-2.gat,75,24,0|shop|Mede|103,CactusDrink :-1,CactusPotion :-1,IronPotion :-1,ConcentrationPotion :-1
// INN
020-2.gat,111,23,0|script|Kane|120,
diff --git a/world/map/npc/021-1/gate_guards.txt b/world/map/npc/021-1/gate_guards.txt
index 52fa5a4b..2cb97658 100644
--- a/world/map/npc/021-1/gate_guards.txt
+++ b/world/map/npc/021-1/gate_guards.txt
@@ -1,14 +1,14 @@
// Various guards at gates
// Guards by the gates to the port
-021-1.gat,70,23,0|script|Guard|104,
+021-1.gat,70,23,0|script|Guard#port1|104,
{
mes "[Guard]";
mes "\"Lots of stuff happens in the port district. Those sailors can get quite rowdy.\"";
close;
}
-021-1.gat,110,23,0|script|Guard|104,
+021-1.gat,110,23,0|script|Guard#port2|104,
{
mes "[Guard]";
mes "\"I'm not quite sure why I'm here, since that bridge is out.\"";
@@ -16,7 +16,7 @@
}
// Guard near the magic school
-021-1.gat,46,65,0|script|Guard|104,
+021-1.gat,46,65,0|script|Guard#school|104,
{
mes "[Guard]";
mes "\"I'm just here to provide a presence for the guards at this gate. The mages here can defend themselves without problem.\"";
@@ -24,20 +24,20 @@
}
// Guards by the gates to East Tulimshar
-021-1.gat,146,23,0|script|Guard|104,
+021-1.gat,146,23,0|script|Guard#east1|104,
{
mes "[Guard]";
mes "\"I make sure less desirables don't enter the Noble District.\"";
close;
}
-021-1.gat,156,42,0|script|Guard|104,
+021-1.gat,156,42,0|script|Guard#east2|104,
{
mes "[Guard]";
mes "\"The volcano and earthquake did a lot of damage, but the citizens of Tulimshar sure did a good job of cleaning up.\"";
close;
}
-021-1.gat,156,95,0|script|Guard|104,
+021-1.gat,156,95,0|script|Guard#east3|104,
{
mes "[Guard]";
mes "\"The Palace is East of here. That is where you will find the Council of Wizards.\"";
@@ -45,7 +45,7 @@
}
// Near the bazaar, outside the government building
-021-1.gat,55,136,0|script|Guard|123,
+021-1.gat,55,136,0|script|Guard#govt_out|123,
{
mes "[Guard]";
mes "\"This is a government building. They have some clerical and tax offices in here. There is also a jail in the subbasement.\"";
diff --git a/world/map/npc/021-1/hetchel.txt b/world/map/npc/021-1/hetchel.txt
index d2ed7012..f4072c01 100644
--- a/world/map/npc/021-1/hetchel.txt
+++ b/world/map/npc/021-1/hetchel.txt
@@ -1,7 +1,7 @@
// Hetchel the Silk Weaver
-// bh28,
+// bh28,
// 2013-03, GPLv2.
-//
+//
// Hetchel is referred to by Lora Tay.
// She weaves and sells standard double elbow square silk sheets.
// She could also sell, dyed sheets, Silk robes from Lora Tay.
@@ -9,7 +9,7 @@
//
// Hetchel's workshop is actually under repair, Shé'll be back in 021-2 when workers have finished their job.
//
-// QUEST_WG_state: Global variable indicating winter gloves status.
+// QUEST_WG_state: Global variable indicating winter gloves status.
// Lora Tay proposes silk Robe if (QUEST_WG_state>= 11).
// @SHEET_COCOONS_NR : Number of cocoons required per sheet.
// Might ne calculated from @ROBE_COCOONS_NR/@ROBE_SHEETS_NR
@@ -79,7 +79,7 @@ L_sheet_menu:
goto L_TooMany;
set Zeny, Zeny - @SheetCount * @SHEET_ZENY;
delitem "SilkCocoon", @SheetCount * @SHEET_COCOONS_NR;
- getitem "Silksheet", @SheetCount;
+ getitem "SilkSheet", @SheetCount;
mes "[Hetchel]";
mes "\"Thank you, I hope the sheets will fit your needs.";
mes "Please greet Lora for me when you see her.\"";
diff --git a/world/map/npc/021-1/mapflags.txt b/world/map/npc/021-1/mapflags.txt
index 3719ed0f..91131c25 100644
--- a/world/map/npc/021-1/mapflags.txt
+++ b/world/map/npc/021-1/mapflags.txt
@@ -1,2 +1,2 @@
-021-1.gat mapflag no_player_drops
-021-1.gat mapflag town
+021-1.gat|mapflag|no_player_drops
+021-1.gat|mapflag|town
diff --git a/world/map/npc/021-1/workers.txt b/world/map/npc/021-1/workers.txt
index 59419da0..cdba39b3 100644
--- a/world/map/npc/021-1/workers.txt
+++ b/world/map/npc/021-1/workers.txt
@@ -1,20 +1,20 @@
//
-021-1.gat,144,22,0|script|Construction Worker|155,
+021-1.gat,144,22,0|script|Construction Worker#1|155,
{
mes "[Construction worker]";
mes "\"I can't let you beyond this gate. The area is closed for renovation.\"";
close;
}
-021-1.gat,156,97,0|script|Construction Worker|155,
+021-1.gat,156,97,0|script|Construction Worker#2|155,
{
mes "[Construction worker]";
mes "\"East Tulimshar is closed for repairs.\"";
close;
}
-021-1.gat,156,44,0|script|Construction Worker|155,
+021-1.gat,156,44,0|script|Construction Worker#3|155,
{
mes "[Construction worker]";
mes "\"East Tulimshar is closed for repairs.\"";
diff --git a/world/map/npc/021-2/government_building.txt b/world/map/npc/021-2/government_building.txt
index 1422e50a..79edfe37 100644
--- a/world/map/npc/021-2/government_building.txt
+++ b/world/map/npc/021-2/government_building.txt
@@ -227,7 +227,7 @@ L_TrickOrTreat:
}
// Guard
-021-2.gat,20,19,0|script|Guard|123,1,1,
+021-2.gat,20,19,0|script|Guard#govt_in|123,1,1,
{
mes "[Guard]";
mes "\"You can't come back here.\"";
diff --git a/world/map/npc/021-2/mapflags.txt b/world/map/npc/021-2/mapflags.txt
index 8f4a9dcd..052afedc 100644
--- a/world/map/npc/021-2/mapflags.txt
+++ b/world/map/npc/021-2/mapflags.txt
@@ -1,2 +1,2 @@
-021-2.gat mapflag no_player_drops
-021-2.gat mapflag town
+021-2.gat|mapflag|no_player_drops
+021-2.gat|mapflag|town
diff --git a/world/map/npc/022-1/mapflags.txt b/world/map/npc/022-1/mapflags.txt
index f1b0444b..cb3434b7 100644
--- a/world/map/npc/022-1/mapflags.txt
+++ b/world/map/npc/022-1/mapflags.txt
@@ -1,2 +1,2 @@
-022-1.gat mapflag no_player_drops
-022-1.gat mapflag town
+022-1.gat|mapflag|no_player_drops
+022-1.gat|mapflag|town
diff --git a/world/map/npc/022-1/tutorial.txt b/world/map/npc/022-1/tutorial.txt
index 1ecbb1a8..b8fcf2c6 100644
--- a/world/map/npc/022-1/tutorial.txt
+++ b/world/map/npc/022-1/tutorial.txt
@@ -2,7 +2,7 @@
// Author: Jenalya
// if you enter the tutorial area from outside, it is set to be already done
-022-1.gat,19,37,0|script|#tutorial|45,0,2
+022-1.gat,19,37,0|script|#tutorial-outside1|45,0,2
{
callfunc "TutorialCompleted";
warp "042-1.gat", 95, 69;
diff --git a/world/map/npc/025-1/rossy.txt b/world/map/npc/025-1/rossy.txt
index de3ce386..e6b5e8d4 100644
--- a/world/map/npc/025-1/rossy.txt
+++ b/world/map/npc/025-1/rossy.txt
@@ -170,7 +170,7 @@ close;
L_Donet:
if (Rossy_Quest == 10
- && countitem("redrose") >= @RedRose_Amount)
+ && countitem("RedRose") >= @RedRose_Amount)
goto L_RG;
menu
"David took your potion and he tested it in front of me. It worked perfectly!", -;
@@ -179,9 +179,9 @@ L_Donet:
close;
L_RG:
- if (countitem("redrose") < @RedRose_Amount)
+ if (countitem("RedRose") < @RedRose_Amount)
goto L_No;
- delitem "redrose", @RedRose_Amount;
+ delitem "RedRose", @RedRose_Amount;
menu
"Your mother was so happy that she asked me to bring you these flowers.", -;
mes "[Rossy]";
@@ -198,7 +198,7 @@ close;
L_Allergic:
mes "Rossy sneezes a lot.";
if (Rossy_Quest == 12
- && countitem("redtulip") >= @RedTulip_Amount)
+ && countitem("RedTulip") >= @RedTulip_Amount)
goto L_Sorry;
close;
@@ -208,9 +208,9 @@ L_Sorry:
L_See:
mes "[Rossy]";
- if (countitem("redtulip") < @RedTulip_Amount)
+ if (countitem("RedTulip") < @RedTulip_Amount)
goto L_No;
- delitem "redtulip", @RedTulip_Amount;
+ delitem "RedTulip", @RedTulip_Amount;
set Rossy_Quest, 13;
mes "\"That's better! Go and tell my mother that she is the nicest mother in the world.\"";
next;
diff --git a/world/map/npc/025-4/mapflags.txt b/world/map/npc/025-4/mapflags.txt
index 1c8999bb..276503c9 100644
--- a/world/map/npc/025-4/mapflags.txt
+++ b/world/map/npc/025-4/mapflags.txt
@@ -1 +1 @@
-025-4.gat mapflag nosave 025-3,112,96;
+025-4.gat|mapflag|nosave|025-3,112,96
diff --git a/world/map/npc/027-1/graves.txt b/world/map/npc/027-1/graves.txt
index b33ad67e..b4d9e273 100644
--- a/world/map/npc/027-1/graves.txt
+++ b/world/map/npc/027-1/graves.txt
@@ -8,7 +8,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,89,62,0|script|Grave|400,
+027-1.gat,89,62,0|script|Grave#1|400,
{
callfunc "GraveTooFar";
mes "~ FotherJ ~";
@@ -16,7 +16,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,118,54,0|script|Grave|400,
+027-1.gat,118,54,0|script|Grave#2|400,
{
callfunc "GraveTooFar";
mes "~ Yosuhara ~";
@@ -24,7 +24,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,111,62,0|script|Grave|400,
+027-1.gat,111,62,0|script|Grave#3|400,
{
callfunc "GraveTooFar";
mes "~ Feline Monstrosity ~";
@@ -32,7 +32,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,112,76,0|script|Grave|400,
+027-1.gat,112,76,0|script|Grave#4|400,
{
callfunc "GraveTooFar";
mes "~ Superkoop ~";
@@ -40,7 +40,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,120,76,0|script|Grave|400,
+027-1.gat,120,76,0|script|Grave#5|400,
{
callfunc "GraveTooFar";
mes "~ Aroleon ~";
@@ -48,7 +48,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,100,68,0|script|Grave|400,
+027-1.gat,100,68,0|script|Grave#6|400,
{
callfunc "GraveTooFar";
mes "~ John P ~";
@@ -56,7 +56,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,94,70,0|script|Grave|400,
+027-1.gat,94,70,0|script|Grave#7|400,
{
callfunc "GraveTooFar";
mes "~ Spit23 ~";
@@ -64,7 +64,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,106,60,0|script|Grave|400,
+027-1.gat,106,60,0|script|Grave#8|400,
{
callfunc "GraveTooFar";
mes "~ Black Don ~";
@@ -72,7 +72,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,92,54,0|script|Grave|400,
+027-1.gat,92,54,0|script|Grave#9|400,
{
callfunc "GraveTooFar";
mes "~ Jaxad0127 ~";
@@ -80,7 +80,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,122,64,0|script|Grave|400,
+027-1.gat,122,64,0|script|Grave#10|400,
{
callfunc "GraveTooFar";
mes "~ Ces Vargavind ~";
@@ -88,7 +88,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,102,62,0|script|Grave|400,
+027-1.gat,102,62,0|script|Grave#11|400,
{
callfunc "GraveTooFar";
mes "~ Crush ~";
@@ -96,7 +96,7 @@ function|script|GraveTooFar|,
close;
}
-027-1.gat,104,76,0|script|Grave|400,
+027-1.gat,104,76,0|script|Grave#12|400,
{
callfunc "GraveTooFar";
mes "~ Freeyorp ~";
diff --git a/world/map/npc/027-2/door.txt b/world/map/npc/027-2/door.txt
index 8c0c54cc..08513582 100644
--- a/world/map/npc/027-2/door.txt
+++ b/world/map/npc/027-2/door.txt
@@ -15,7 +15,8 @@ L_Warp:
end;
}
-027-2.gat,26,99,0|script|#DoorOut|45,1,1,
+// TODO replace this with a plain warp
+027-2.gat,26,99,0|script|#DoorOut-gyinn|45,1,1,
{
warp "027-2.gat", 23, 98;
end;
diff --git a/world/map/npc/027-2/gy_inn_shops.txt b/world/map/npc/027-2/gy_inn_shops.txt
index 15ec2292..da1c3c57 100644
--- a/world/map/npc/027-2/gy_inn_shops.txt
+++ b/world/map/npc/027-2/gy_inn_shops.txt
@@ -7,7 +7,7 @@
// banker: function
-027-2.gat,75,22,0|shop|Chef|300,ZombieNachos :-1,LadyFingers :-1,JellAhh :-1,Snapple :-1
+027-2.gat,75,22,0|shop|Chef#graveyard|300,ZombieNachos :-1,LadyFingers :-1,JellAhh :-1,Snapple :-1
027-2.gat,90,36,0|shop|Estrilda|301,BeetleJuice :-1,GutBuster :-1,BloodWine :-1
027-2.gat,93,22,0|shop|Umfrey|302,BoneArrows :-1,ShockSweet :-1
027-2.gat,56,99,0|shop|Leofwin|304,CactusDrink :-1,CactusPotion :-1,BugLeg :-1,SmallMushroom :-1,IronPotion :-1,ConcentrationPotion :-1,HardSpike :-1,DarkCrystal :-1,Root :-1,WispPowder :-1,SpectrePowder :-1,PoltergeistPowder :-1
diff --git a/world/map/npc/027-2/headless_man.txt b/world/map/npc/027-2/headless_man.txt
index e22b6442..386ee773 100644
--- a/world/map/npc/027-2/headless_man.txt
+++ b/world/map/npc/027-2/headless_man.txt
@@ -172,7 +172,7 @@ L_Quest_finished:
goto L_Full_Inv;
mes "[Thurstan]";
mes "\"Please take this for your efforts. I got it in payment of some work I did protecting the pinkie population from a terrible scourge some time ago.\"";
- getitem "pinkiehelmet", 1;
+ getitem "PinkieHelmet", 1;
set @state, 3;
callsub S_Update_Mask;
goto L_Close;
diff --git a/world/map/npc/027-3/mapflags.txt b/world/map/npc/027-3/mapflags.txt
index 5f9c091d..4fb5481c 100644
--- a/world/map/npc/027-3/mapflags.txt
+++ b/world/map/npc/027-3/mapflags.txt
@@ -1 +1 @@
-027-3.gat mapflag nosave 027-2,107,31;
+027-3.gat|mapflag|nosave|027-2,107,31
diff --git a/world/map/npc/027-4/mapflags.txt b/world/map/npc/027-4/mapflags.txt
index 1784cd64..efe8aad8 100644
--- a/world/map/npc/027-4/mapflags.txt
+++ b/world/map/npc/027-4/mapflags.txt
@@ -1 +1 @@
-027-4.gat mapflag nosave 027-2,107,31;
+027-4.gat|mapflag|nosave|027-2,107,31
diff --git a/world/map/npc/029-3/mapflags.txt b/world/map/npc/029-3/mapflags.txt
index 845a0f01..a681598e 100644
--- a/world/map/npc/029-3/mapflags.txt
+++ b/world/map/npc/029-3/mapflags.txt
@@ -1 +1 @@
-029-3.gat mapflag nosave 029-1,55,38;
+029-3.gat|mapflag|nosave|029-1,55,38
diff --git a/world/map/npc/031-2/angelaHouse.txt b/world/map/npc/031-2/angelaHouse.txt
index 03b1b7c7..9ef5bfb6 100644
--- a/world/map/npc/031-2/angelaHouse.txt
+++ b/world/map/npc/031-2/angelaHouse.txt
@@ -3,7 +3,7 @@
// state3: it's your first visit, you can choose a reward
// state4: you can do daily quests with white and yellow presents boxes
-031-2.gat,29,28,0|script|Angela|196,
+031-2.gat,29,28,0|script|Angela#house|196,
{
set @Q_Nivalis_state_MASK, NIBBLE_5_MASK;
set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT;
diff --git a/world/map/npc/031-2/cindyHouse.txt b/world/map/npc/031-2/cindyHouse.txt
index ba8c3005..8a24a7cf 100644
--- a/world/map/npc/031-2/cindyHouse.txt
+++ b/world/map/npc/031-2/cindyHouse.txt
@@ -2,7 +2,7 @@
// state0,1,2: you shouldn't be able to reach this place
// state3 and greater: Cindy is saved, she says one of some random phrases
-031-2.gat,27,26,0|script|Cindy|197,
+031-2.gat,27,26,0|script|Cindy#house|197,
{
set @Q_Nivalis_state_MASK, NIBBLE_5_MASK;
set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT;
diff --git a/world/map/npc/031-3/labyrinth.txt b/world/map/npc/031-3/labyrinth.txt
index ff9374b1..6fc31fad 100644
--- a/world/map/npc/031-3/labyrinth.txt
+++ b/world/map/npc/031-3/labyrinth.txt
@@ -1,7 +1,7 @@
// Conditional warp for yeti cave
// Authors: Jenalya
-031-3.gat,46,24,0|script|#YetiBarrier|45,0,0,
+031-3.gat,46,24,0|script|#YetiBarrier-outside|45,0,0,
{
if ($@FIGHT_YETI_STATUS == 1) goto L_Blocked;
warp "031-4.gat", 40, 70;
diff --git a/world/map/npc/031-4/barrier.txt b/world/map/npc/031-4/barrier.txt
index e8401ba8..460a3985 100644
--- a/world/map/npc/031-4/barrier.txt
+++ b/world/map/npc/031-4/barrier.txt
@@ -1,4 +1,4 @@
-031-4.gat,40,71,0|script|#YetiBarrier|45,0,0,
+031-4.gat,40,71,0|script|#YetiBarrier-inside|45,0,0,
{
if ($@FIGHT_YETI_STATUS == 1) goto L_Block;
warp "031-3.gat", 46, 25;
diff --git a/world/map/npc/031-4/cindyCave.txt b/world/map/npc/031-4/cindyCave.txt
index 6c03e951..0be990c8 100644
--- a/world/map/npc/031-4/cindyCave.txt
+++ b/world/map/npc/031-4/cindyCave.txt
@@ -176,48 +176,12 @@ L_NextWave:
areamonster "031-4.gat", 0, 0, 95, 91, "", 1072, $@FIGHT_YETI_NUMBER, "Cindy::OnPetDeath";
- if ($@FIGHT_YETI_WAVE == 1)
- mapannounce "031-4.gat", "Cindy: Yetis!", 0;
- if ($@FIGHT_YETI_WAVE == 2)
- mapannounce "031-4.gat", "Cindy: Watch out!", 0;
- if ($@FIGHT_YETI_WAVE == 3)
- mapannounce "031-4.gat", "Cindy: More of them are coming!", 0;
- if ($@FIGHT_YETI_WAVE == 4)
- mapannounce "031-4.gat", "Cindy: Be careful! More of them!", 0;
- if ($@FIGHT_YETI_WAVE == 5)
- mapannounce "031-4.gat", "Cindy: Attention! There is another bunch of them!", 0;
- if ($@FIGHT_YETI_WAVE == 6)
- mapannounce "031-4.gat", "Cindy: Hang on! More of them!", 0;
- if ($@FIGHT_YETI_WAVE == 7)
- mapannounce "031-4.gat", "Cindy: More Yetis! Will this never end?", 0;
- if ($@FIGHT_YETI_WAVE == 8)
- mapannounce "031-4.gat", "Cindy: There are coming more and more!", 0;
- if ($@FIGHT_YETI_WAVE == 9)
- mapannounce "031-4.gat", "Cindy: Watch your back! There are so many of them!", 0;
- if ($@FIGHT_YETI_WAVE == 10)
- mapannounce "031-4.gat", "Cindy: This seems to be their final attack! I believe in you!", 0;
-
- if ($@FIGHT_YETI_WAVE == 1)
- mapannounce "031-3.gat", "Cindy: Yetis!", 0;
- if ($@FIGHT_YETI_WAVE == 2)
- mapannounce "031-3.gat", "Cindy: Watch out!", 0;
- if ($@FIGHT_YETI_WAVE == 3)
- mapannounce "031-3.gat", "Cindy: More of them are coming!", 0;
- if ($@FIGHT_YETI_WAVE == 4)
- mapannounce "031-3.gat", "Cindy: Be careful! More of them!", 0;
- if ($@FIGHT_YETI_WAVE == 5)
- mapannounce "031-3.gat", "Cindy: Attention! There is another bunch of them!", 0;
- if ($@FIGHT_YETI_WAVE == 6)
- mapannounce "031-3.gat", "Cindy: Hang on! More of them!", 0;
- if ($@FIGHT_YETI_WAVE == 7)
- mapannounce "031-3.gat", "Cindy: More Yetis! Will this never end?", 0;
- if ($@FIGHT_YETI_WAVE == 8)
- mapannounce "031-3.gat", "Cindy: There are coming more and more!", 0;
- if ($@FIGHT_YETI_WAVE == 9)
- mapannounce "031-3.gat", "Cindy: Watch your back! There are so many of them!", 0;
- if ($@FIGHT_YETI_WAVE == 10)
- mapannounce "031-3.gat", "Cindy: This seems to be their final attack! I believe in you!", 0;
-
+ set $@msg$, $@FIGHT_YETI_MESSAGES$[$@FIGHT_YETI_WAVE];
+ if ($@msg$ == "")
+ goto L_Return_1;
+ mapannounce "031-4.gat", $@msg$, 0;
+ mapannounce "031-3.gat", $@msg$, 0;
+ set $@msg$, "";
goto L_Return_1;
// Called on each player once every 5 seconds
@@ -266,6 +230,22 @@ L_End:
set @rescue_Cindy, 0;
end;
+OnInit:
+ setarray $@FIGHT_YETI_MESSAGES$,
+ "", // unused
+ // " : " is magic so that it says "global announcement from"
+ "Cindy : Yetis!",
+ "Cindy : Watch out!",
+ "Cindy : More of them are coming!",
+ "Cindy : Be careful! More of them!",
+ "Cindy : Attention! There is another bunch of them!",
+ "Cindy : Hang on! More of them!",
+ "Cindy : More Yetis! Will this never end?",
+ "Cindy : There are coming more and more!",
+ "Cindy : Watch your back! There are so many of them!",
+ "Cindy : This seems to be their final attack! I believe in you!";
+ end;
+
/////////
S_Update_Mask:
set QUEST_Nivalis_state,
diff --git a/world/map/npc/031-4/mapflags.txt b/world/map/npc/031-4/mapflags.txt
index 9e4e8f6b..cca67591 100644
--- a/world/map/npc/031-4/mapflags.txt
+++ b/world/map/npc/031-4/mapflags.txt
@@ -1 +1 @@
-031-4.gat mapflag nosave 031-3,46,26;
+031-4.gat|mapflag|nosave|031-3,46,26
diff --git a/world/map/npc/032-1/miriam.txt b/world/map/npc/032-1/miriam.txt
index f812454f..f0527388 100644
--- a/world/map/npc/032-1/miriam.txt
+++ b/world/map/npc/032-1/miriam.txt
@@ -157,7 +157,10 @@ L_teach:
|| countitem("WarlordPlate") > 0
|| countitem("KnightsHelmet") > 0
|| countitem("InfantryHelmet") > 0
- || countitem("ChainmailShirt") > 0)
+ || countitem("ChainmailShirt") > 0
+ || countitem("WarlordBoots") > 0
+ || countitem("LightPlatemail") > 0
+ || countitem("CandleHelmet") > 0)
goto L_heavymetal;
goto L_offer;
diff --git a/world/map/npc/041-1/tutorial.txt b/world/map/npc/041-1/tutorial.txt
index 813df482..98793d23 100644
--- a/world/map/npc/041-1/tutorial.txt
+++ b/world/map/npc/041-1/tutorial.txt
@@ -2,7 +2,7 @@
// Author: Jenalya
// if you enter the tutorial area, it is set to be already done
-041-1.gat,58,5,0|script|#tutorial|45,1,0
+041-1.gat,58,5,0|script|#tutorial-outside2|45,1,0
{
set FLAGS, FLAGS | FLAG_TUTORIAL_DONE;
warp "042-1.gat", 44, 143;
diff --git a/world/map/npc/042-2/mapflags.txt b/world/map/npc/042-2/mapflags.txt
index c9f5cc23..769024e1 100644
--- a/world/map/npc/042-2/mapflags.txt
+++ b/world/map/npc/042-2/mapflags.txt
@@ -1 +1 @@
-042-2.gat mapflag nosave 042-2,26,26;
+042-2.gat|mapflag|nosave|042-2,26,26
diff --git a/world/map/npc/042-2/sorfina.txt b/world/map/npc/042-2/sorfina.txt
index dd63b753..b01a83c7 100644
--- a/world/map/npc/042-2/sorfina.txt
+++ b/world/map/npc/042-2/sorfina.txt
@@ -270,7 +270,7 @@ OnTouch:
close;
}
-042-2.gat,27,23,0|script|Chest|111,
+042-2.gat,27,23,0|script|Chest#sorfina|111,
{
if (sorfina > 2) goto L_Empty;
if (sorfina == 2) goto L_Shirt;
@@ -297,7 +297,7 @@ L_Empty:
close;
}
-042-2.gat,44,31,0|script|#DoorOut|45,0,0
+042-2.gat,44,31,0|script|#DoorOut-sorfina|45,0,0
{
end;
diff --git a/world/map/npc/051-1/mapflags.txt b/world/map/npc/051-1/mapflags.txt
index 83da4b77..62670718 100644
--- a/world/map/npc/051-1/mapflags.txt
+++ b/world/map/npc/051-1/mapflags.txt
@@ -1 +1 @@
-051-1.gat mapflag nosave 007-1,86,76;
+051-1.gat|mapflag|nosave|007-1,86,76
diff --git a/world/map/npc/051-3/mapflags.txt b/world/map/npc/051-3/mapflags.txt
index 450ee23b..b02779f1 100644
--- a/world/map/npc/051-3/mapflags.txt
+++ b/world/map/npc/051-3/mapflags.txt
@@ -1 +1 @@
-051-3.gat mapflag nosave 007-1,86,76;
+051-3.gat|mapflag|nosave|007-1,86,76
diff --git a/world/map/npc/052-1/mapflags.txt b/world/map/npc/052-1/mapflags.txt
index 1490f5c0..cc8ed26a 100644
--- a/world/map/npc/052-1/mapflags.txt
+++ b/world/map/npc/052-1/mapflags.txt
@@ -1 +1 @@
-052-1.gat mapflag nosave 007-1,86,76;
+052-1.gat|mapflag|nosave|007-1,86,76
diff --git a/world/map/npc/052-2/chest.txt b/world/map/npc/052-2/chest.txt
index f1c9872e..59fe8ae4 100644
--- a/world/map/npc/052-2/chest.txt
+++ b/world/map/npc/052-2/chest.txt
@@ -12,7 +12,7 @@
// 3: player choosed to leave the room
//-----------------------------------------------------------------------------
-052-2.gat,136,73,0|script|Chest|111,
+052-2.gat,136,73,0|script|Chest#illia|111,
{
set @step, 8;
if ($@illia_progress < @step) goto L_ShouldNotBeHere;
@@ -139,11 +139,11 @@ L_PrepareLeaving:
L_Leave:
set @illia_got_rewards, 3;
set @illia_current_num_rewards, 0;
- addtimer 1000, "Chest::OnMsg1";
- addtimer 4000, "Chest::OnMsg2";
- addtimer 7000, "Chest::OnMsg3";
- addtimer 9000, "Chest::OnFx";
- addtimer 10000, "Chest::OnRing";
+ addtimer 1000, "Chest#illia::OnMsg1";
+ addtimer 4000, "Chest#illia::OnMsg2";
+ addtimer 7000, "Chest#illia::OnMsg3";
+ addtimer 9000, "Chest#illia::OnFx";
+ addtimer 10000, "Chest#illia::OnRing";
close;
OnMsg1:
diff --git a/world/map/npc/052-2/mapflags.txt b/world/map/npc/052-2/mapflags.txt
index 9c7c1d1c..04bde438 100644
--- a/world/map/npc/052-2/mapflags.txt
+++ b/world/map/npc/052-2/mapflags.txt
@@ -1 +1 @@
-052-2.gat mapflag nosave 007-1,86,76;
+052-2.gat|mapflag|nosave|007-1,86,76
diff --git a/world/map/npc/056-2/mapflags.txt b/world/map/npc/056-2/mapflags.txt
index 3701e121..43c466a2 100644
--- a/world/map/npc/056-2/mapflags.txt
+++ b/world/map/npc/056-2/mapflags.txt
@@ -1 +1 @@
-056-2.gat mapflag nosave 056-1, 56,62;
+056-2.gat|mapflag|nosave|056-1,56,62
diff --git a/world/map/npc/056-2/notes.txt b/world/map/npc/056-2/notes.txt
index fb29cd68..a458c2a9 100644
--- a/world/map/npc/056-2/notes.txt
+++ b/world/map/npc/056-2/notes.txt
@@ -1,4 +1,4 @@
-056-2.gat,77,34,0|script|Warning|400,
+056-2.gat,77,34,0|script|Warning#mirak|400,
{
mes "Turn around. Do not come any closer!";
mes "Go back upstairs and leave! I don't want to see anybody!";
@@ -6,7 +6,7 @@
mes "- Mirak";
close;
}
-056-2.gat,29,30,0|script|Note|400,
+056-2.gat,29,30,0|script|Note#mirak|400,
{
mes "DO NOT GO ANY FURTHER!";
mes "Put the supplies on the table and do not come downstairs. I don't want to be bothered.";
diff --git a/world/map/npc/easter/2010/Doctor.txt b/world/map/npc/easter/2010/Doctor.txt
index c6d20bfa..fefd9814 100644
--- a/world/map/npc/easter/2010/Doctor.txt
+++ b/world/map/npc/easter/2010/Doctor.txt
@@ -26,7 +26,7 @@ L_At_Tree:
setarray @responses$, "\"This tree, I'm sure it's - \"The man looks up distractedly.\" Oh, hello. Can't talk now, I'm afraid, this world needs my help...\"", "He looks up, confused. \"Withering... why is this world dying? Perhaps--er, who are you? You'll have to excuse me, I'm a little preoccupied with this tree...\"", "\"What-what? I mean, sorry, hello! Can't quite talk, a bit busy trying to save this world.\" He seems to be deep in thought, brandishing what looks to be a small tool near the tree.", "\"You there! Do you realise what's happening here? This world is dying, much like a human would, perhaps. Nevertheless...\""; // Not many responses are needed here, since init only happens one per player.
callsub S_Update_Knows;
next;
- if (countitem("LifeStone") > 0)
+ if (countitem("Lifestone") > 0)
goto L_has_lifestone;
close;
@@ -36,7 +36,7 @@ L_At_Tree_Knows_Doctor:
callsub S_Dialogue_Knows;
next;
- if (countitem("LifeStone") > 0)
+ if (countitem("Lifestone") > 0)
goto L_has_lifestone;
mes "[Doctor]";
mes "";
@@ -235,13 +235,13 @@ L_only_lifestone:
close;
L_offer_lifestone:
- if (countitem("LifeStone") < 1)
+ if (countitem("Lifestone") < 1)
goto L_lost_lifestone;
- delitem "LifeStone", 1;
+ delitem "Lifestone", 1;
callsub S_Update_Helped;
- if (countitem("LifeStone") == 0)
+ if (countitem("Lifestone") == 0)
goto L_one_lifestone;
mes "[Doctor]";
diff --git a/world/map/npc/functions/banker.txt b/world/map/npc/functions/banker.txt
index 8ecb85fb..eae01230 100644
--- a/world/map/npc/functions/banker.txt
+++ b/world/map/npc/functions/banker.txt
@@ -12,10 +12,10 @@ L_Start:
mes "How can I help you?\"";
next;
menu
+ "Open my storage", L_Storage,
"Deposit", L_Dep,
"Withdraw", L_With,
"Check my balance", L_Balance,
- "Open my storage", L_Storage,
"Change Bank Options", L_Change,
"Nevermind", L_Nev;
close;
diff --git a/world/map/npc/items/require_stat.txt b/world/map/npc/items/require_stat.txt
index e16e6b24..699cb8f9 100644
--- a/world/map/npc/items/require_stat.txt
+++ b/world/map/npc/items/require_stat.txt
@@ -10,17 +10,17 @@ function|script|RequireStat|,
if (@bStat$ == "" || @minbStatVal < 0) return;
set @bStatVal, 0;
if (@bStat$ == "Str")
- set @bStatVal, readParam(bStr);
+ set @bStatVal, readparam(bStr);
if (@bStat$ == "Agi")
- set @bStatVal, readParam(bAgi);
+ set @bStatVal, readparam(bAgi);
if (@bStat$ == "Vit")
- set @bStatVal, readParam(bVit);
+ set @bStatVal, readparam(bVit);
if (@bStat$ == "Dex")
- set @bStatVal, readParam(bDex);
+ set @bStatVal, readparam(bDex);
if (@bStat$ == "Int")
- set @bStatVal, readParam(bInt);
+ set @bStatVal, readparam(bInt);
if (@bStat$ == "Luk")
- set @bStatVal, readParam(bLuk);
+ set @bStatVal, readparam(bLuk);
if (@bStatVal >= @minbStatVal) return;
// If the requirement isn't met, then we end the script.
// Hence, subsequent item modifiers won't be applied.