// 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;
}