diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-11-22 05:19:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-11-22 05:19:44 -0300 |
commit | 6514fa29627a32acc1eae90030af682623c471d8 (patch) | |
tree | a4f4473cc697902915abfed783b066421ca9dbc8 /npc/081-1/dungeon.txt | |
parent | 378dd80b0192630d0c0b32fb16b63ea0f66bb156 (diff) | |
download | serverdata-6514fa29627a32acc1eae90030af682623c471d8.tar.gz serverdata-6514fa29627a32acc1eae90030af682623c471d8.tar.bz2 serverdata-6514fa29627a32acc1eae90030af682623c471d8.tar.xz serverdata-6514fa29627a32acc1eae90030af682623c471d8.zip |
Instance the Northen Lights Dungeon and prevent using it outside Christmas 2021
Diffstat (limited to 'npc/081-1/dungeon.txt')
-rw-r--r-- | npc/081-1/dungeon.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/npc/081-1/dungeon.txt b/npc/081-1/dungeon.txt new file mode 100644 index 00000000..d5b97eb5 --- /dev/null +++ b/npc/081-1/dungeon.txt @@ -0,0 +1,31 @@ +// TMW Script. +// Author: +// Jesusalva +// Notes: +// Christmas 2021 - Northen Lights Dungeon Entrance + +081-1,68,30,0 script #0811Nexit NPC_HIDDEN,0,0,{ + end; +OnTouch: + if (!isChristmas21()) end; + .@id = X21ID(); + + /* We need to determine if instance exists and is needed */ + .@t = X21TYPE(); + .@mapa$="0812@"+X21ID2(); + .@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-2", .@inst, false, .@mapa$); + instance_attachmap("081-3", .@inst, false, .@mapn$); + instance_set_timeout(1800, 1800, .@inst); + instance_init(.@inst); + } + + warp .@mapa$, 90, 298; + end; +} + + |