summaryrefslogtreecommitdiff
path: root/npc/annuals/xmas/2021.txt
blob: 8a24652f637abf19e9d7c18c779b9d80d8edd11f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// 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) {
        // We... Could use base name, actually, but whatever
        instance_attachmap("081-2", .@inst, false, "0812@"+X21ID2());
        instance_attachmap("081-3", .@inst, false, "0813@"+X21ID2());
        instance_attachmap("080-3", .@inst, false, "0803@"+X21ID2());
		instance_set_timeout(1800, 1800, .@inst);
		instance_init(.@inst);
    }
    if (instance_id() >= 0)
		instance_set_timeout(1800, 1800);
    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