summaryrefslogtreecommitdiff
path: root/npc/081-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-11-21 16:21:58 -0300
committerJesusaves <cpntb1@ymail.com>2021-11-21 16:21:58 -0300
commit6a941671dd609b9aa0b60698c439f8a4657fd905 (patch)
tree4349cad2df04b9abaee7285e114393dcfa3f4f44 /npc/081-2
parent9ed449f62e151c955240810397111c2f4c8e5221 (diff)
downloadserverdata-6a941671dd609b9aa0b60698c439f8a4657fd905.tar.gz
serverdata-6a941671dd609b9aa0b60698c439f8a4657fd905.tar.bz2
serverdata-6a941671dd609b9aa0b60698c439f8a4657fd905.tar.xz
serverdata-6a941671dd609b9aa0b60698c439f8a4657fd905.zip
Add the necessary scripts so the Existence Frontier can be tested.
Diffstat (limited to 'npc/081-2')
-rw-r--r--npc/081-2/_import.txt1
-rw-r--r--npc/081-2/logic.txt29
2 files changed, 30 insertions, 0 deletions
diff --git a/npc/081-2/_import.txt b/npc/081-2/_import.txt
index 279b129a..94dc948e 100644
--- a/npc/081-2/_import.txt
+++ b/npc/081-2/_import.txt
@@ -1,2 +1,3 @@
// Map 081-2: Northern Lights
// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/081-2/logic.txt",
diff --git a/npc/081-2/logic.txt b/npc/081-2/logic.txt
new file mode 100644
index 00000000..5bb7ff53
--- /dev/null
+++ b/npc/081-2/logic.txt
@@ -0,0 +1,29 @@
+// TMW Script.
+// Author:
+// Jesusalva
+// Notes:
+// Christmas 2021 - Northen Lights Dungeon
+
+081-2,90,20,0 script #0812Nexit NPC_HIDDEN,0,0,{
+ end;
+OnTouch:
+ .@id = X21ID();
+
+ /* We need to determine if instance exists and is needed */
+ .@t = X21TYPE();
+ .@mapn$="0813@"+X21ID2();
+ .@inst = instance_create("Northen Lights", .@id, .@t);
+ // Instance must be created
+ if (.@inst >= 0) {
+ // We... Could use base name, actually, but whatever
+ instance_attachmap("081-3", .@inst, false, .@mapn$);
+ instance_set_timeout(1800, 1800, .@inst);
+ instance_init(.@inst);
+ }
+
+ warp .@mapn$, 44, 49;
+ doevent instance_npcname("Pentagram#Xmas21A", .@inst)+"::OnClean";
+ end;
+}
+
+