blob: 268394cb7f00d6cb3ca492af8666d172fa674b39 (
plain) (
tree)
|
|
// TMW Script.
// Author:
// Jesusalva
// Notes:
// Christmas 2021 - Configuration Files
function script X21ID {
return (getcharid(1) > 0 ? getcharid(1) : getcharid(3));
}
function script X21ID2 {
return (getcharid(1) > 0 ? getcharid(1) : getcharid(0));
}
function script X21TYPE {
return (getcharid(1) > 0 ? IOT_PARTY : IOT_CHAR);
}
function script X21ED1_CLEAR {
return (XMAS2021 & X21_ALYSSARESCUE);
}
function script X21ED1_DOCLEAR {
XMAS2021 = (XMAS2021 | X21_ALYSSARESCUE);
return;
}
function script X21INIT {
.@inst = instance_create("Northen Lights", X21ID(), X21TYPE());
// Instance must be created
if (.@inst >= 0) {
.@mapa$="0812@"+X21ID2();
.@mapn$="0813@"+X21ID2();
// 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);
}
return;
}
/* You cannot fiddle with party in this region */
080-1 mapflag partylock
//081-1 mapflag partylock
081-2 mapflag partylock
081-3 mapflag partylock
/* Secure regions */
081-3 mapflag zone MMO
081-3 mapflag nosave 081-1,68,31
|