summaryrefslogtreecommitdiff
path: root/world/map/npc/annuals/fathertime.txt
blob: 852b0025eaca2f41ba6c488c053e9700b119242e (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
// Annual Timer
// One timer to check to enable all holiday events
017-9,26,28,0|script|#HolidayConfig|32767
{
    end;

OnInit:
    if (debug >= 2) end;
    goto L_StartTimer;

L_StartTimer:
    setnpctimer 0;
    initnpctimer;
    end;

OnTimer20000:
    setnpctimer 0;
    donpcevent "#XmasConfig::OnCommandRestartQuest";
    donpcevent "#HalloweenConfig::OnCommandRestartQuest";
    initnpctimer;
    end;
}
017-9,31,24,0|script|HolidayDebug#1|105
{
    if(getgmlevel() < 40)
        goto L_End;

    menu
        "Xmas.", L_XmasDebug,
        "Halloween.", L_HalloweenDebug;

L_XmasDebug:
    callfunc "XmasDebug";
    goto L_End;

L_HalloweenDebug:
    callfunc "HalloweenDebug";
    goto L_End;

L_End:
    end;
}