summaryrefslogtreecommitdiff
path: root/world/map/npc/026-1/munro.txt
blob: 38909113ed034eb10e53c7bf827c7be467cca385 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
026-1.gat,24,37,0|script|Munro|183,
{
    mes "[Munro]";
    mes "\"Whoh dude...\"";
    next;
    mes "[Munro]";
    mes "\"Man.. I don't know how I got here.. freaky..\"";
    next;
    mes "[Munro]";
    mes "\"Hey dude, what's that on your face? It's creeping me out!\"";
    menu
        "There is nothing on my face..", L_Nothing,
        "What, This skin?",-;
    mes "[Munro]";
    mes "\"Skin? Whoh far-out man.. This must be that weirdo place my brother Parua told me about..\"";
    next;
    mes "Munro stares at you vacantly for a moment";
    next;
    mes "Munro's eye-holes suddenly seem more aware";
    next;
    mes "[Munro]";
    mes "\"WHOH! SKIN? d.....dude! How can you stand having that stuff all over you? That's gotta suck!\"";
    next;
    mes "[Munro]";
    mes "\"Here dude.. Take this. It won't get rid of that groady skin but it'll at least make you LOOK normal..\"";
    getitem "SkeletonCharm",1;
    next;
    mes "[Munro]";
    mes "\"I have a lot of these man.. a LOT. Take all you want man.. Just remember they only work when I'm around to power them. Freaky-deaky skull power you know?\"";
    close;
    goto L_Exit;

L_Nothing:
    mes "[Munro]";
    mes "\"Oh.. ok dude! Whatever you say!\"";
    goto L_Exit;

L_Exit:
    close;
}

026-1.gat,25,37,0|script|#AnnualHalloween|-1,
{
    end;

OnInit:
    if (debug >= 2) end;
    initnpctimer;
    end;

OnTimer1000:
    set $@isHalloween, 0;
    if ((gettime(6) == 10 && gettime(5) >= 27) || (gettime(6) == 11 && gettime(5) <= 5))
        set $@isHalloween, 1;

    if (gettime(6) == 12 && gettime(5) >= 23 && gettime(5) <= 26)
        set $@isHalloween, 1;

    if ($@isHalloween)
        goto L_enablemunro;

    goto L_disablemunro;


L_enablemunro:
    enablenpc "Munro";
    goto L_End;

L_disablemunro:
    disablenpc "Munro";

L_End:
    setnpctimer 0;
    end;
}


function|script|CheckMunro|,
{
    if ((gettime(6) == 10 && gettime(5) >= 27) || (gettime(6) == 11 && gettime(5) <= 5))
        goto L_Return;

    if (gettime(6) == 12 && gettime(5) >= 23 && gettime(5) <= 26)
        goto L_Return;

    callfunc "UnequipLater";

L_Return:
    return;
}