From 9cb0ed3ff400a6fde020770cd2e3cab4ee0936e2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 Apr 2020 05:04:20 -0300 Subject: Add a random treasure chest on 042-4 Still missing the whole logic stuff D: --- npc/042-3/jail.txt | 4 +--- npc/042-4/_import.txt | 1 + npc/042-4/ctrl.txt | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 npc/042-4/ctrl.txt 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; +} + -- cgit v1.2.3-70-g09d2