summaryrefslogtreecommitdiff
path: root/npc/functions/masks.txt
blob: 98e8bdf871f2f86bec6ac7e860ce4ffa7e5c4f61 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Evol functions.
// Author:
//    Reid
// Description:
//    Triggers functions to add and remove masks.
// Variables:
//    none

// Artis Aemil's Legion 

function	script	artisALRemTopMask	{
    if ((getareausers("001-2-33", 23, 27, 45, 31) >= 1) ||
        (getareausers("001-2-33", 23, 32, 26, 38) >= 1) ||
        (getareausers("001-2-33", 42, 32, 45, 38) >= 1))
    {
        removemapmask "001-2-33", 4;
    }
    return 0;
}

function	script	artisALAddTopMask	{
    if ((getareausers("001-2-33", 23, 27, 45, 31) == 0) &&
        (getareausers("001-2-33", 23, 32, 26, 38) == 0) &&
        (getareausers("001-2-33", 42, 32, 45, 38) == 0))
    {
        addmapmask "001-2-33", 4;
    }
    return 0;
}

function	script	artisALRemBotMask	{
    if (getareausers("001-2-33", 23, 32, 45, 46) >= 1)
    {
        removemapmask "001-2-33", 8;
    }
    return 0;
}

function	script	artisALAddBotMask	{
    if (getareausers("001-2-33", 23, 32, 45, 46) == 0)
    {
        addmapmask "001-2-33", 8;
    }
    return 0;
}

function	script	artisALUpdateMask	{
    if (getareausers("001-2-33", 23, 32, 45, 46) >= 1)
    {
        removemapmask "001-2-33", 8;
    }
    else
    {
        addmapmask "001-2-33", 8;
    }
    if ((getareausers("001-2-33", 23, 27, 45, 31) >= 1) ||
        (getareausers("001-2-33", 23, 32, 26, 38) >= 1) ||
        (getareausers("001-2-33", 42, 32, 45, 38) >= 1))
    {
        removemapmask "001-2-33", 4;
    }
    else
    {
        addmapmask "001-2-33", 4;
    }

    return 0;
}