summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-24 12:41:44 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-24 12:41:44 -0300
commit9573bc7e120c8bf1c94b775a95192763eae8dcee (patch)
treea4a8995428a64edcda648d5fc6814aaf49b73be7 /npc
parent90dfc8fbb877b4c871309024084948e25294cd22 (diff)
downloadserverdata-9573bc7e120c8bf1c94b775a95192763eae8dcee.tar.gz
serverdata-9573bc7e120c8bf1c94b775a95192763eae8dcee.tar.bz2
serverdata-9573bc7e120c8bf1c94b775a95192763eae8dcee.tar.xz
serverdata-9573bc7e120c8bf1c94b775a95192763eae8dcee.zip
Mapflags and sketch of variable scope
Diffstat (limited to 'npc')
-rw-r--r--npc/014-4/_import.txt1
-rw-r--r--npc/014-4/kamelot.txt41
-rw-r--r--npc/042-0/_import.txt1
-rw-r--r--npc/042-0/mf.txt12
4 files changed, 55 insertions, 0 deletions
diff --git a/npc/014-4/_import.txt b/npc/014-4/_import.txt
index 4a11db4f5..56c0bfb7d 100644
--- a/npc/014-4/_import.txt
+++ b/npc/014-4/_import.txt
@@ -2,6 +2,7 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/014-4/_mobs.txt",
"npc/014-4/_warps.txt",
+"npc/014-4/kamelot.txt",
"npc/014-4/mapflags.txt",
"npc/014-4/slide.txt",
"npc/014-4/thorn.txt",
diff --git a/npc/014-4/kamelot.txt b/npc/014-4/kamelot.txt
new file mode 100644
index 000000000..6fa0dc890
--- /dev/null
+++ b/npc/014-4/kamelot.txt
@@ -0,0 +1,41 @@
+// TMW 2 Script
+// Author:
+// Jesusalva
+// Micksha
+// Description:
+// This NPC is a work on progress. It measures all players equal.
+// Controls the weekly guild dungeon feature.
+// Variable structure:
+
+// $KAMELOT_ID [ guild_id ] = instance id
+// $KAMELOT_QUEST [ guild_id ] = quest status (bitmask)
+ // 0 - Not started
+ // 1 - Quest Assigned by Arthur
+ // 2 - Guinevere dialog clear
+ // 4 - Weapon Room cutscene seen
+ // 8 - Sewer Gate open
+ // 16 - Magic Seal Broken
+ // 32 - Boss cutscene seen (presumably, victory)
+// $KAMELOT_KEY [ guild_id ] = (bitmask) Keys and Lockpicks
+ // 1 - Treasure A (Boss Room key)
+ // 2 - Treasure B
+ // 4 - Treasure C
+ // 8 - Treasure D
+ // 16 - Weapon Room Key
+
+// $KAMELOT_KEYMASK [ guild_id ] = Which bit was assigned as the key
+// $KAMELOT_COOLDOWN [ guild_id ] = Last attempt (weekly attempts)
+
+014-4,47,63,0 script #KamelotEnter NPC_HIDDEN,{
+ end;
+
+OnTouch:
+ if (!is_staff())
+ end;
+ dispbottom l("Advised Raid Party: One Thief, one Mage");
+ end;
+
+OnInit:
+ end;
+}
+
diff --git a/npc/042-0/_import.txt b/npc/042-0/_import.txt
index 7e15c38f5..208d161d7 100644
--- a/npc/042-0/_import.txt
+++ b/npc/042-0/_import.txt
@@ -1,3 +1,4 @@
// Map 042-0: Camelot - Throne Room
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/042-0/_warps.txt",
+"npc/042-0/mf.txt",
diff --git a/npc/042-0/mf.txt b/npc/042-0/mf.txt
new file mode 100644
index 000000000..714ce279b
--- /dev/null
+++ b/npc/042-0/mf.txt
@@ -0,0 +1,12 @@
+042-0 mapflag zone MMO
+042-1 mapflag zone MMO
+042-2 mapflag zone MMO
+042-3 mapflag zone MMO
+042-4 mapflag zone MMO
+042-5 mapflag zone MMO
+042-6 mapflag zone MMO
+042-7 mapflag zone MMO
+042-8 mapflag zone MMO
+042-9 mapflag zone MMO
+042-10 mapflag zone MMO
+042-11 mapflag zone MMO