summaryrefslogtreecommitdiff
path: root/npc/annuals/tree_beard.txt
blob: a7866f2b4a8baeb0b9a948c6b0e52c0f6e80aa20 (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
020-1,90,78,0	script	#GhostTreeOne	NPC133,{
    callfunc "HalloweenTree";
    close;
}

020-1,90,78,0	script	#Tree	NPC380,{
    end;
}

020-1,90,78,0	script	#XmasTree	NPC379,{
    end;
}

020-1,90,79,0	script	Present#1	NPC386,{
    callfunc "XmasStates";
    callfunc "XmasMainItemReward";
    close;
}

009-1,54,38,0	script	#GhostTreeTwo	NPC133,{
    callfunc "HalloweenTree";
    close;
}

009-1,54,38,0	script	#TreeNoSnow	NPC394,{
    end;
}

009-1,54,38,0	script	#XmasTreeNoSnow	NPC381,{
    end;
}

009-1,54,39,0	script	Present#2	NPC386,{
    callfunc "XmasStates";
    callfunc "XmasMainItemReward";
    close;
}

001-1,57,75,0	script	#GhostTreeThree	NPC133,{
    callfunc "HalloweenTree";
    close;
}

001-1,58,75,0	script	#PalmTree	NPC384,{
    end;
}

001-1,58,76,0	script	Present#3	NPC386,{
    callfunc "XmasStates";
    callfunc "XmasMainItemReward";
    close;
}

001-1,58,75,0	script	#XmasPalmTree	NPC383,{
    end;
}

function	script	SpawnMobs	{
    donpcevent "XmasSpawnManager::OnCommandSpawnStart";
    return;
}

function	script	PresentHandler	{
    if($@xmas_time == $@xmas_reward_time)
        goto L_DeliverPresents;
    goto L_DisablePresents;

L_DeliverPresents:
    enablenpc "Present#1";
    enablenpc "Present#2";
    enablenpc "Present#3";
    goto L_Return;

L_DisablePresents:
    disablenpc "Present#1";
    disablenpc "Present#2";
    disablenpc "Present#3";
    goto L_Return;

L_Return:
    return;
}

function	script	ReplaceTrees	{
    disablenpc "#Tree";
    disablenpc "#TreeNoSnow";
    disablenpc "#PalmTree";
    disablenpc "#GhostTreeOne";
    disablenpc "#GhostTreeTwo";
    disablenpc "#GhostTreeThree";
    disablenpc "#XmasTree";
    disablenpc "#XmasTreeNoSnow";
    disablenpc "#XmasPalmTree";

    if ($@xmas_time)
        goto L_XmasTree;
    if ($@halloween_time)
        goto L_HalloweenLive;
    goto L_Tree;

L_XmasTree:
    enablenpc "#XmasTree";
    enablenpc "#XmasTreeNoSnow";
    enablenpc "#XmasPalmTree";
    goto L_Return;

L_HalloweenLive:
    enablenpc "#GhostTreeOne";
    enablenpc "#GhostTreeTwo";
    enablenpc "#GhostTreeThree";
    goto L_Return;

L_Tree:
    enablenpc "#Tree";
    enablenpc "#TreeNoSnow";
    enablenpc "#PalmTree";
    goto L_Return;

L_Return:
    return;
}