summaryrefslogtreecommitdiff
path: root/npc/029-0/event.txt
blob: abaf56a8a745d06f61db9be358b5e876e14a02ff (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
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Exclusive for Fires of Steam 2021 - When our OVH server datacenter got fire.

029-0,111,37,0	script	Alliance Hero#FoS	NPC_HALBERDBARBARIAN,{
    if (gettime(7) != 2021 || !$FIRESOFSTEAM) {
        disablenpc .name$;
        die(); end;
    }
    compareandsetq TulimsharQuest_DarkInvocator, 0, 4;
    mesn;
    mesq l("Sooo, the police station of Moubootaur Legends went ablaze. Constable Perry is too busy to monitor illegal operation on this continent.");
    next;
    mesn;
    mesq l("Therefore... Are you perhaps interested in some... illicit goods? %%p");
    next;
    select
        l("Show me what you got, noob."),
        l("Actually - Do you exchange goods even more illegal goods than this?"),
        l("Actually - Do you exchange illegal... research results?");
    mes "";
    if (@menu == 1) {
        closeclientdialog;
        openshop .name$;
        close;
    }
    else if (@menu == 2) {
        mesn;
        mesq l("Yes I do... I sell %s %s for the small amount of %s GP. Interested? %%%%p", fnum(.mobp), l("Monster Points"), fnum(.mobg));
        if (Zeny < .mobg) close;
        next;
        if (askyesno() == ASK_NO) close;
        if (Zeny < .mobg) { die(); close; }
        Zeny-=.mobg;
        Mobpt+=.mobp;
        mes "";
        mesn;
        mesq l("Hehehe... A pleasure doing business with you!");
    } else if (@menu == 3) {
        mesn;
        mesq l("Yes I do... I sell %s %s for the small amount of %s GP. Interested? %%%%p", fnum(.robp), l("Research Points"), fnum(.robg));
        if (Zeny < .robg) close;
        next;
        if (askyesno() == ASK_NO) close;
        if (Zeny < .robg) { die(); close; }
        Zeny-=.robg;
        Mobpt+=.robp;
        mes "";
        mesn;
        mesq l("Hehehe... A pleasure doing business with you!");
    }
    close;

OnRw:
    logmes(sprintf("%s - Reward Granted by System Admin", getcharid(3)));
    getitem StrangeCoin, 2000;
    getitembound FireScroll, 1, 1;
    getexp 1000000, 500000;
    Mobpt+=1000000;
    Zeny+=1000000;
    dispbottom l("Jesusalva : \\o/");
    end;

OnInit:
    bindatcmd "steambk", "Alliance Hero#FoS::OnRw", 100, 99, 1;
	tradertype(NST_MARKET);
    .mobp=rand2(1000, 2500);
    .mobg=.mobp*rand2(100, 150)/10;
    .robp=rand2(900, 1200);
    .robg=.robp*rand2(40, 60);//rand2(80, 110);
    .distance=5;
    .sex=G_MALE;

    sellitem Coal,          -1, 50+($FIRESOFSTEAM*3-3);
    sellitem LeatherPatch,  800, 45+($FIRESOFSTEAM*3-3);
    sellitem RawLog,        -1, 40+($FIRESOFSTEAM*3-3);
    sellitem WoodenLog,     -1, 40+($FIRESOFSTEAM*3-3);
    sellitem IronOre,       -1, 30+($FIRESOFSTEAM*3-3);
    sellitem CopperOre,     1000, 20+($FIRESOFSTEAM*2-2);
    sellitem SilverOre,     2000, 14+($FIRESOFSTEAM*2-2);
    sellitem GoldOre,       3000, 14+($FIRESOFSTEAM*2-2);
    sellitem TinOre,        3600, 15+($FIRESOFSTEAM*2-2);
    sellitem LeadOre,       4000, 15+($FIRESOFSTEAM*2-2);
    sellitem TitaniumOre,   6000, 9+($FIRESOFSTEAM*2-2);
    sellitem IridiumOre,    16000, 6+($FIRESOFSTEAM*2-2);
    sellitem PlatinumOre,   24000, 3+($FIRESOFSTEAM*2-2);
    sellitem EarthPowder,   -1, 3+$FIRESOFSTEAM-1;
    sellitem EverburnPowder, 15000, 2+$FIRESOFSTEAM-1;

    sellitem AncientBlueprint,  10000, 4+$FIRESOFSTEAM-1;
    sellitem RustyKnife,        -1, 5+$FIRESOFSTEAM-1;
    sellitem TrainingWand,      -1, 5+$FIRESOFSTEAM-1;
    sellitem TrainingBow,       -1, 5+$FIRESOFSTEAM-1;

    sellitem AlchemyBlueprintA, -1, 5+$FIRESOFSTEAM-1;
    sellitem AlchemyBlueprintB, -1, 4+$FIRESOFSTEAM-1;
    sellitem AlchemyBlueprintC, -1, 3+$FIRESOFSTEAM-1;
    sellitem AlchemyBlueprintD, -1, 2+$FIRESOFSTEAM-1;
    sellitem AlchemyBlueprintE, -1, max(1, 1+$FIRESOFSTEAM-1);

    sellitem EquipmentBlueprintA, -1, 5+$FIRESOFSTEAM-1;
    sellitem EquipmentBlueprintB, -1, 4+$FIRESOFSTEAM-1;
    sellitem EquipmentBlueprintC, -1, 3+$FIRESOFSTEAM-1;
    sellitem EquipmentBlueprintD, -1, 2+$FIRESOFSTEAM-1;
    sellitem EquipmentBlueprintE, -1, max(1, 1+$FIRESOFSTEAM-1);

    sellitem ArcmageBoxset,     10000, 4+$FIRESOFSTEAM-1;
    sellitem ScholarshipBadge,  -1, 3+$FIRESOFSTEAM-1;
    sellitem Bullet,            4, 90000+($FIRESOFSTEAM*1000-1000);
    sellitem Lifestone,         -1, 800+$FIRESOFSTEAM-1;
    sellitem Bread,             -1, 750+$FIRESOFSTEAM-1;
    sellitem Cheese,            -1, 400+$FIRESOFSTEAM-1;
    sellitem Aquada,            -1, 200+$FIRESOFSTEAM-1;

    sellitem WhiteFur,          -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem Piberries,         -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem CherryCake,        -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem LettuceLeaf,       -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem BugLeg,            -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem RoastedMaggot,     -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem Moss,              -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem AnimalBones,       -1, 1+rand2(40)+$FIRESOFSTEAM;
    sellitem Milk,              -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem Mashmallow,        -1, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem Dragonfruit,       1200, 1+rand2(50)+$FIRESOFSTEAM;
    sellitem Root,              -1, 40+$FIRESOFSTEAM-1;
    sellitem ManaPiouFeathers,  -1, 1+rand2(300)+$FIRESOFSTEAM;

    if ($EVENT$ != "Steam")
        disablenpc .name$;

    if ($FIRESOFSTEAM && gettime(7) == 2021 &&!$@FOS_MOBDROP) {
        /* This code is overriden by seasons.txt
        addmonsterdrop(Scar, DarkCrystal, 500);
        addmonsterdrop(Crafty, DarkCrystal, 500);
        addmonsterdrop(GiantMutatedBat, DarkCrystal, 550);
        addmonsterdrop(Forain, DarkCrystal, 500);
        addmonsterdrop(GreenDragon, DarkCrystal, 500);
        addmonsterdrop(EliteDuck, DarkCrystal, 550);
        addmonsterdrop(Terranite, DarkCrystal, 500);
        addmonsterdrop(JackO, DarkCrystal, 550);
        addmonsterdrop(RedSkullSlime, DarkCrystal, 500);
        addmonsterdrop(Michel, DarkCrystal, 500);
        addmonsterdrop(CopperSkullSlime, DarkCrystal, 500);
        addmonsterdrop(MonsterGeneral, DarkCrystal, 10000);
        */
        setiteminfo(DarkCrystal, ITEMINFO_SELLPRICE, rand2(100, 200));
        $@FOS_MOBDROP=true;
    }
    end;

OnClock0001:
OnClock0201:
OnClock0401:
OnClock0601:
OnClock0801:
OnClock1001:
OnClock1201:
OnClock1401:
OnClock1601:
OnClock1801:
OnClock2001:
OnClock2201:
    .mobp=rand2(1000, 2500);
    .mobg=.mobp*rand2(100, 150)/10;
    .robp=rand2(900, 1200);
    .robg=.robp*rand2(40, 60);//rand2(80, 110);

    restoreshopitem Coal,           50+($FIRESOFSTEAM*3-3);
    restoreshopitem LeatherPatch, 800, 45+($FIRESOFSTEAM*3-3);
    restoreshopitem RawLog,         40+($FIRESOFSTEAM*3-3);
    restoreshopitem WoodenLog,      40+($FIRESOFSTEAM*3-3);
    restoreshopitem IronOre,        30+($FIRESOFSTEAM*3-3);
    restoreshopitem CopperOre,   1000, 20+($FIRESOFSTEAM*2-2);
    restoreshopitem SilverOre,   2000, 14+($FIRESOFSTEAM*2-2);
    restoreshopitem GoldOre,     3000, 14+($FIRESOFSTEAM*2-2);
    restoreshopitem TinOre,      3600, 15+($FIRESOFSTEAM*2-2);
    restoreshopitem LeadOre,     4000, 15+($FIRESOFSTEAM*2-2);
    restoreshopitem TitaniumOre, 6000, 9+($FIRESOFSTEAM*2-2);
    restoreshopitem IridiumOre,  16000, 6+($FIRESOFSTEAM*2-2);
    restoreshopitem PlatinumOre, 24000, 3+($FIRESOFSTEAM*2-2);
    restoreshopitem EarthPowder, 3+$FIRESOFSTEAM-1;
    restoreshopitem EverburnPowder, 15000, 2+$FIRESOFSTEAM-1;

    restoreshopitem AncientBlueprint, 10000, 4+$FIRESOFSTEAM-1;
    restoreshopitem RustyKnife, 5+$FIRESOFSTEAM-1;
    restoreshopitem TrainingWand, 5+$FIRESOFSTEAM-1;
    restoreshopitem TrainingBow, 5+$FIRESOFSTEAM-1;

    restoreshopitem AlchemyBlueprintA, 5+$FIRESOFSTEAM-1;
    restoreshopitem AlchemyBlueprintB, 4+$FIRESOFSTEAM-1;
    restoreshopitem AlchemyBlueprintC, 3+$FIRESOFSTEAM-1;
    restoreshopitem AlchemyBlueprintD, 2+$FIRESOFSTEAM-1;
    restoreshopitem AlchemyBlueprintE, 1+$FIRESOFSTEAM-1;

    restoreshopitem EquipmentBlueprintA, 5+$FIRESOFSTEAM-1;
    restoreshopitem EquipmentBlueprintB, 4+$FIRESOFSTEAM-1;
    restoreshopitem EquipmentBlueprintC, 3+$FIRESOFSTEAM-1;
    restoreshopitem EquipmentBlueprintD, 2+$FIRESOFSTEAM-1;
    restoreshopitem EquipmentBlueprintE, 1+$FIRESOFSTEAM-1;

    restoreshopitem ArcmageBoxset, 10000, 4+$FIRESOFSTEAM-1;
    restoreshopitem ScholarshipBadge, 3+$FIRESOFSTEAM-1;
    restoreshopitem Lifestone, 800+$FIRESOFSTEAM-1;
    restoreshopitem Bullet, 4, 90000+$FIRESOFSTEAM-1;
    restoreshopitem Bread,  750+$FIRESOFSTEAM-1;
    restoreshopitem Cheese, 400+$FIRESOFSTEAM-1;
    restoreshopitem Aquada, 200+$FIRESOFSTEAM-1;

    restoreshopitem WhiteFur, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem Piberries, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem CherryCake, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem LettuceLeaf, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem BugLeg, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem RoastedMaggot, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem Moss, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem AnimalBones, 1+rand2(40)+$FIRESOFSTEAM;
    restoreshopitem Milk, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem Mashmallow, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem Dragonfruit, 1200, 1+rand2(50)+$FIRESOFSTEAM;
    restoreshopitem Root, 40+$FIRESOFSTEAM;
    restoreshopitem ManaPiouFeathers, 1+rand2(300)+$FIRESOFSTEAM;
    end;

OnMinute02:
    if ($EVENT$ != "Steam") end;
    donpcevent "Neko::OnClock2359";
    end;
}