summaryrefslogtreecommitdiff
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
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:
-rw-r--r--npc/042-3/jail.txt4
-rw-r--r--npc/042-4/_import.txt1
-rw-r--r--npc/042-4/ctrl.txt23
3 files changed, 25 insertions, 3 deletions
diff --git a/npc/042-3/jail.txt b/npc/042-3/jail.txt
index f13ad14f5..3eeb84648 100644
--- a/npc/042-3/jail.txt
+++ b/npc/042-3/jail.txt
@@ -4,9 +4,7 @@
// Micksha
// Description:
// Controls jails and lockpicks
-// TODO: Spawn slime as players are warped, so they always have the chance
-// TODO: Stationary guards outside the cells (can be spawn with player)
-// We can set their speed to nil, after all. Make them all archers :3
+// Also creates siege towers to keep prisoners in check :3
042-3,0,0,0 script #KSlimeSpawn NPC_HIDDEN,{
end;
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;
+}
+