summaryrefslogtreecommitdiff
path: root/npc/017-1/fairy_collector.txt
blob: 687f5f081a2481d323569c52f530da2b403524d2 (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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
// TMW2/LoF scripts.
// Authors:
//    TMW-LoF Team
//    Jesusalva
// Description:
//    Collect every piece of equipment ingame for no real reason
//    Cannot be completed yet, because not every piece of equipment is available ingame

017-1,135,106,0	script	Royal Fairy	NPC_FAIRY_B,{
    .@n=getq(LoFQuest_Fairy);
    .@q=getq(General_Collector);
    mesn;

    if (.@n == 0) goto L_Busy;
    if (.@n < 3) goto L_Incomplete;
    if (.@n >= 3) goto L_Main;

L_Busy:
    mesq l("Hi, I'm too busy to talk right now, please go away. Very pressing matters at hand.");
    close;

L_Incomplete:
    mesq l("Hello, I noticed my dear friend, Susanne, asked you to help us save my sisters; do not forget to ask Susanne where the Fafi Dragon was last seen.");
    close;

L_Main:
    if (!(TELEPORTERS & TP_LILIT) && rand2(3) == 2) {
        mesn;
        mesq l("Have you ever met our Queen Lilit? She is lovely but hates @@ for some reason...", get_race());
        next;
        mesc l("Do you want a tip? \"It's not suicide if you know how to swim.\"");
        next;
    }
    /*
	COLLECT_CHESTPLATE:     1
	COLLECT_HEADGEAR:       2
	COLLECT_PANTS:          4
	COLLECT_SHOES:          8
	COLLECT_NECKLACES:      16
	COLLECT_RINGS:          32
	COLLECT_ACESSORIES:     64
	COLLECT_SCARFS:         128
	COLLECT_GLOVES:         256
	COLLECT_SHIELDS:        512
	COLLECT_1HSWORDS:       1024
	COLLECT_2HSWORDS:       2048
	COLLECT_BOWS:           4096
	COLLECT_FIREGUNS:       8192
	COLLECT_WANDS:          16384
	COLLECT_QUIVERS:        32768
	COLLECT_MOUNTS:         65536
	COLLECT_PETS:           131072

    */
    do {
    mesn;
    mesq l("Are you trying to collect every piece of equipment ingame? Come tell me if you are and I'll give you a collector stamp!");
    mesc l("Not every piece of equipment is ingame yet.");
    mes "";
    select
        l("Good bye!"),
        rif(false && !(.@q & COLLECT_CHESTPLATE), l("Chestplates")),
        rif(false && !(.@q & COLLECT_HEADGEAR), l("Headgear")),
        rif(false && !(.@q & COLLECT_PANTS), l("Pants")),
        rif(false && !(.@q & COLLECT_SHOES), l("Shoes")),
        rif(false && !(.@q & COLLECT_NECKLACES), l("Necklaces")),
        rif(false && !(.@q & COLLECT_RINGS), l("Rings")),
        rif(false && !(.@q & COLLECT_ACESSORIES), l("Accessories")),
        rif(false && !(.@q & COLLECT_SCARFS), l("Scarfs")),
        rif(false && !(.@q & COLLECT_GLOVES), l("Gloves")),
        rif(false && !(.@q & COLLECT_SHIELDS), l("Shields")),
        rif(false && !(.@q & COLLECT_1HSWORDS), l("1 Hand Swords")),
        rif(false && !(.@q & COLLECT_2HSWORDS), l("2 Hand Swords")),
        rif(true  && !(.@q & COLLECT_BOWS), l("Bows")),
        rif(true  && !(.@q & COLLECT_FIREGUNS), l("Fire Staves")),
        rif(true  && !(.@q & COLLECT_WANDS), l("Wands")),
        rif(true  && !(.@q & COLLECT_QUIVERS), l("Quivers")),
        rif(false && !(.@q & COLLECT_MOUNTS), l("Mounts")),
        rif(false && !(.@q & COLLECT_PETS), l("Pets")),
        l("Trade stamps");
    mes "";
    switch (@menu) {
        // Chestplate
        case 1:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Headgear
        case 2:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Pants
        case 3:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Shoes
        case 4:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Necklaces
        case 5:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Rings
        case 6:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Accessories
        case 7:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Scarfs
        case 8:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Gloves
        case 9:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // Shields
        case 10:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // 1H Swords
        case 11:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        // 2H Swords
        case 12:
        msObjective(countitem(Scythe), "* "+getitemlink(Scythe));
        msObjective(countitem(ThunderStaff), "* "+getitemlink(ThunderStaff));
        msObjective(countitem(MiereCleaver), "* "+getitemlink(MiereCleaver));
        msObjective(countitem(Broadsword), "* "+getitemlink(Broadsword));
        msObjective(countitem(Kanabo), "* "+getitemlink(Kanabo));
        msObjective(countitem(BlacksmithAxe), "* "+getitemlink(BlacksmithAxe));
        msObjective(countitem(CentaurSpear), "* "+getitemlink(CentaurSpear));
        msObjective(false, l("* More equipment coming soon..."));
        next;
        break;
        // Bows
        case 13:
        msObjective(countitem(TrainingBow), "* "+getitemlink(TrainingBow));
        msObjective(countitem(WoodenBow), "* "+getitemlink(WoodenBow));
        msObjective(countitem(ShortBow), "* "+getitemlink(ShortBow));
        msObjective(countitem(ForestBow), "* "+getitemlink(ForestBow));
        msObjective(countitem(ElficBow), "* "+getitemlink(ElficBow));
        msObjective(countitem(ChampionshipBow), "* "+getitemlink(ChampionshipBow));
        msObjective(countitem(BansheeBow), "* "+getitemlink(BansheeBow));
        //msObjective(countitem(ElvishBow), "* "+getitemlink(ElvishBow));
        msObjective(false, l("* More equipment coming soon..."));
        next;
        break;
        // Firearms
        case 14:
        msObjective(countitem(PynRifle), "* "+getitemlink(PynRifle));
        msObjective(countitem(PynGatling), "* "+getitemlink(PynGatling));
        msObjective(countitem(PynShotgun), "* "+getitemlink(PynShotgun));
        msObjective(countitem(PynRevolver), "* "+getitemlink(PynRevolver));
        msObjective(countitem(Dustynator), "* "+getitemlink(Dustynator));
        next;
        if (countitem(PynRifle) &&
            countitem(PynGatling) &&
            countitem(PynShotgun) &&
            countitem(PynRevolver) &&
            countitem(Dustynator)) {
                setq1 General_Collector, .@q|COLLECT_FIREGUNS;
                .@q=getq(General_Collector);
            }
        next;
        break;
        // Wands
        case 15:
        msObjective(countitem(TrainingWand), "* "+getitemlink(TrainingWand));
        msObjective(countitem(NoviceWand), "* "+getitemlink(NoviceWand));
        msObjective(countitem(ReinbooWand), "* "+getitemlink(ReinbooWand));
        msObjective(countitem(ApprenticeWand), "* "+getitemlink(ApprenticeWand));
        msObjective(countitem(LeaderWand), "* "+getitemlink(LeaderWand));
        msObjective(countitem(LegendaryWand), "* "+getitemlink(LegendaryWand));
        next;
        if (countitem(TrainingWand) &&
            countitem(NoviceWand) &&
            countitem(ReinbooWand) &&
            countitem(ApprenticeWand) &&
            countitem(LeaderWand) &&
            countitem(LegendaryWand)) {
                setq1 General_Collector, .@q|COLLECT_WANDS;
                .@q=getq(General_Collector);
            }
        next;
        break;
        // Quivers
        case 16:
        msObjective(countitem(LeatherQuiver), "* "+getitemlink(LeatherQuiver));
        msObjective(countitem(IronQuiver), "* "+getitemlink(IronQuiver));
        msObjective(countitem(BronzeQuiver), "* "+getitemlink(BronzeQuiver));
        msObjective(countitem(PlatinumQuiver), "* "+getitemlink(PlatinumQuiver));
        next;
        if (countitem(LeatherQuiver) &&
            countitem(IronQuiver) &&
            countitem(BronzeQuiver) &&
            countitem(PlatinumQuiver)) {
                setq1 General_Collector, .@q|COLLECT_QUIVERS;
                .@q=getq(General_Collector);
            }
        next;
        break;
        // Mounts
        case 17:
        msObjective(countitem(LegendaryTortuga), "* "+getitemlink(LegendaryTortuga));
        next;
        break;
        // Pets
        case 18:
        msObjective(countitem(CreasedShirt), "* "+getitemlink(CreasedShirt));
        next;
        break;
        case 19:
        mesn;
        mesq l("Sorry! Not yet implemented!");
        next;
        break;

    }

    } while (@menu != 0);
    close;
}