summaryrefslogtreecommitdiff
path: root/world/map/npc/051-1/desertmonsters.txt
blob: a3497055bc8c9790f384ab279aed3dacda0dbb57 (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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
051-1,134,36,67,49|monster|SoulSnake|1096,12,100000ms,30000ms,IlliaDMobs051-1::On1096

// The soul snakes release a Sealed Soul at random, once the soul collecting is started
051-1,0,0,0|script|IlliaDMobs051-1|32767
{
    end;

On1096:
    if (rand(4) == 0 && $@illia_progress == 3 && $@illia_level_3_progress == 1)
        getitem "SealedSoul", 1;
    set @mobID, 1010;
    callfunc "MobPoints";
    end;

}

// Soul eater spawns. They will eat a Sealed Soul when killed, and when the soul collecting is started.

// Spawn in the island
051-1,142,38,0|script|#SoulEaters0Trigger|32767,3,3
{
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if ($@SoulEaters0_count > 0)
        end;
    donpcevent "#SoulEaters0::OnSpawn";
    end;
}

051-1,142,38,0|script|#SoulEaters0|32767
{
    end;

OnSpawn:
    set $@SoulEaters0_count, 5;
    areamonster "051-1", 139, 34, 145, 41, "", 1097, $@SoulEaters0_count, "#SoulEaters0::OnSoulEaterDeath";
    end;

OnSoulEaterDeath:
    set $@SoulEaters0_count, $@SoulEaters0_count - 1;
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if (countitem("SealedSoul") == 0)
        end;
    delitem "SealedSoul", countitem("SealedSoul");
    message strcharinfo(0), "The Soul Eater feeds on the Sealed Souls you are carrying.";
    end;
}

// Spawn inside the north building
051-1,134,16,0|script|#SoulEaters1Trigger|32767,9,2
{
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if ($@SoulEaters1_count > 0)
        end;
    donpcevent "#SoulEaters1::OnSpawn";
    end;
}

051-1,134,16,0|script|#SoulEaters1|32767
{
    end;

OnSpawn:
    set $@SoulEaters1_count, 7;
    areamonster "051-1", 125, 14, 143, 18, "", 1097, $@SoulEaters1_count, "#SoulEaters1::OnSoulEaterDeath";
    end;

OnSoulEaterDeath:
    set $@SoulEaters1_count, $@SoulEaters1_count - 1;
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if (countitem("SealedSoul") == 0)
        end;
    delitem "SealedSoul", countitem("SealedSoul");
    message strcharinfo(0), "The Soul Eater feeds on the Sealed Souls you are carrying.";
    end;
}

// Spawn in the south grass area
051-1,137,55,0|script|#SoulEaters2Trigger|32767,5,4
{
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if ($@SoulEaters2_count > 0)
        end;
    donpcevent "#SoulEaters2::OnSpawn";
    end;
}

051-1,137,55,0|script|#SoulEaters2|32767
{
    end;

OnSpawn:
    set $@SoulEaters2_count, 4;
    areamonster "051-1", 134, 54, 139, 58, "", 1097, $@SoulEaters2_count, "#SoulEaters2::OnSoulEaterDeath";
    end;

OnSoulEaterDeath:
    set $@SoulEaters2_count, $@SoulEaters2_count - 1;
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if (countitem("SealedSoul") == 0)
        end;
    delitem "SealedSoul", countitem("SealedSoul");
    message strcharinfo(0), "The Soul Eater feeds on the Sealed Souls you are carrying.";
    end;
}

// Spawn near the eastern cliff
051-1,155,35,0|script|#SoulEaters3Trigger|32767,4,7
{
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if ($@SoulEaters3_count > 0)
        end;
    donpcevent "#SoulEaters3::OnSpawn";
    end;
}

051-1,155,35,0|script|#SoulEaters3|32767
{
    end;

OnSpawn:
    set $@SoulEaters3_count, 4;
    areamonster "051-1", 151, 29, 160, 45, "", 1097, $@SoulEaters3_count, "#SoulEaters3::OnSoulEaterDeath";
    end;

OnSoulEaterDeath:
    set $@SoulEaters3_count, $@SoulEaters3_count - 1;
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if (countitem("SealedSoul") == 0)
        end;
    delitem "SealedSoul", countitem("SealedSoul");
    message strcharinfo(0), "The Soul Eater feeds on the Sealed Souls you are carrying.";
    end;
}

// Spawn near the western cliff
051-1,120,38,0|script|#SoulEaters4Trigger|32767,6,9
{
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if ($@SoulEaters4_count > 0)
        end;
    donpcevent "#SoulEaters4::OnSpawn";
    end;
}

051-1,120,38,0|script|#SoulEaters4|32767
{
    end;

OnSpawn:
    set $@SoulEaters4_count, 4;
    areamonster "051-1", 116, 29, 127, 50, "", 1097, $@SoulEaters4_count, "#SoulEaters4::OnSoulEaterDeath";
    end;

OnSoulEaterDeath:
    set $@SoulEaters4_count, $@SoulEaters4_count - 1;
    if ($@illia_progress != 3 || $@illia_level_3_progress != 1)
        end;
    if (countitem("SealedSoul") == 0)
        end;
    delitem "SealedSoul", countitem("SealedSoul");
    message strcharinfo(0), "The Soul Eater feeds on the Sealed Souls you are carrying.";
    end;
}