summaryrefslogtreecommitdiff
path: root/npc/042-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-30 05:04:20 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-30 05:04:20 -0300
commit9cb0ed3ff400a6fde020770cd2e3cab4ee0936e2 (patch)
treebf27ad6e0e17a78086fb85e9f81555d42218b6ec /npc/042-4
parent2cb2b072e0eb67d80bed5df97181a9d3a051752e (diff)
downloadserverdata-9cb0ed3ff400a6fde020770cd2e3cab4ee0936e2.tar.gz
serverdata-9cb0ed3ff400a6fde020770cd2e3cab4ee0936e2.tar.bz2
serverdata-9cb0ed3ff400a6fde020770cd2e3cab4ee0936e2.tar.xz
serverdata-9cb0ed3ff400a6fde020770cd2e3cab4ee0936e2.zip
Add a random treasure chest on 042-4
Still missing the whole logic stuff D:
Diffstat (limited to 'npc/042-4')
-rw-r--r--npc/042-4/_import.txt1
-rw-r--r--npc/042-4/ctrl.txt23
2 files changed, 24 insertions, 0 deletions
diff --git a/npc/042-4/_import.txt b/npc/042-4/_import.txt
index e054eb681..00c3684cb 100644
--- a/npc/042-4/_import.txt
+++ b/npc/042-4/_import.txt
@@ -1,3 +1,4 @@
// Map 042-4: Camelot - Sewer
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/042-4/_warps.txt",
+"npc/042-4/ctrl.txt",
diff --git a/npc/042-4/ctrl.txt b/npc/042-4/ctrl.txt
new file mode 100644
index 000000000..a2b22dd78
--- /dev/null
+++ b/npc/042-4/ctrl.txt
@@ -0,0 +1,23 @@
+// TMW 2 Script
+// Author:
+// Jesusalva
+// Micksha
+// Description:
+// Controls sewers.
+// This one is simple, it just sends a message about path splitting
+// And spawn several monsters when instance is initialized D:
+// Also handles their respawn.
+
+// A simple random treasure chest - to be sure players were introduced to this
+// awesome system. Same rules as any treasure box still applies.
+042-4,94,47,0 script #chest_0424 NPC_CHEST,{
+
+ TreasureBox();
+ specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
+ close;
+
+OnInit:
+ .distance = 2;
+ end;
+}
+