summaryrefslogtreecommitdiff
path: root/npc/029-0/event.txt
blob: b9d7376df9ae56a143fa4ec42c1b4028c43d93f2 (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
// 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;

OnInit:
	tradertype(NST_MARKET);
    .mobp=rand2(1000, 2500);
    .mobg=.mobp*rand2(100, 150)/10;
    .robp=rand2(900, 1200);
    .robg=.robp*rand2(80, 110);
    .distance=5;
    .sex=G_MALE;

    sellitem LeatherPatch, -1, 45;
    sellitem RawLog, -1, 40;
    sellitem Coal, -1, 35;
    sellitem IronOre, -1, 30;
    sellitem CopperOre, -1, 20;
    sellitem LeadOre, -1, 15;
    sellitem TinOre, -1, 15;
    sellitem SilverOre, -1, 14;
    sellitem GoldOre, -1, 14;
    sellitem TitaniumOre, -1, 9;
    sellitem IridiumOre, -1, 6;
    sellitem PlatinumOre, -1, 3;
    sellitem EarthPowder, -1, 3;
    sellitem EverburnPowder, -1, 2;

    sellitem AncientBlueprint, -1, 4;
    sellitem RustyKnife, -1, 5;
    sellitem TrainingWand, -1, 5;
    sellitem TrainingBow, -1, 5;

    sellitem AlchemyBlueprintA, -1, 5;
    sellitem AlchemyBlueprintB, -1, 4;
    sellitem AlchemyBlueprintC, -1, 3;
    sellitem AlchemyBlueprintD, -1, 2;
    sellitem AlchemyBlueprintE, -1, 1;

    sellitem EquipmentBlueprintA, -1, 5;
    sellitem EquipmentBlueprintB, -1, 4;
    sellitem EquipmentBlueprintC, -1, 3;
    sellitem EquipmentBlueprintD, -1, 2;
    sellitem EquipmentBlueprintE, -1, 1;

    sellitem ArcmageBoxset, 10000, 4;
    sellitem ScholarshipBadge, -1, 3;
    sellitem Bullet, -1, 90000;
    sellitem Lifestone,  -1, 800;
    sellitem Bread,  -1, 750;
    sellitem Cheese, -1, 400;
    sellitem Aquada, -1, 200;

    sellitem WhiteFur, -1, rand2(50);
    sellitem Piberries, -1, rand2(50);
    sellitem CherryCake, -1, rand2(50);
    sellitem LettuceLeaf, -1, rand2(50);
    sellitem BugLeg, -1, rand2(50);
    sellitem RoastedMaggot, -1, rand2(50);
    sellitem Moss, -1, rand2(50);
    sellitem AnimalBones, -1, rand2(40);
    sellitem Milk, -1, rand2(50);
    sellitem Mashmallow, -1, rand2(50);
    sellitem Dragonfruit, -1, rand2(50);

    if (gettime(7) != 2021)
        disablenpc .name$;

    if ($FIRESOFSTEAM && gettime(7) == 2021 &&!$@FOS_MOBDROP) {
        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:
OnClock0601:
OnClock1201:
OnClock1801:
    .mobp=rand2(1000, 2500);
    .mobg=.mobp*rand2(100, 150)/10;

    restoreshopitem LeatherPatch, 45;
    restoreshopitem RawLog, 40;
    restoreshopitem Coal, 35;
    restoreshopitem IronOre, 30;
    restoreshopitem CopperOre, 20;
    restoreshopitem LeadOre, 15;
    restoreshopitem TinOre, 15;
    restoreshopitem SilverOre, 14;
    restoreshopitem GoldOre, 14;
    restoreshopitem TitaniumOre, 9;
    restoreshopitem IridiumOre, 6;
    restoreshopitem PlatinumOre, 3;
    restoreshopitem EarthPowder, 3;
    restoreshopitem EverburnPowder, 2;

    restoreshopitem AncientBlueprint, 4;
    restoreshopitem RustyKnife, 5;
    restoreshopitem TrainingWand, 5;
    restoreshopitem TrainingBow, 5;

    restoreshopitem AlchemyBlueprintA, 5;
    restoreshopitem AlchemyBlueprintB, 4;
    restoreshopitem AlchemyBlueprintC, 3;
    restoreshopitem AlchemyBlueprintD, 2;
    restoreshopitem AlchemyBlueprintE, 1;

    restoreshopitem EquipmentBlueprintA, 5;
    restoreshopitem EquipmentBlueprintB, 4;
    restoreshopitem EquipmentBlueprintC, 3;
    restoreshopitem EquipmentBlueprintD, 2;
    restoreshopitem EquipmentBlueprintE, 1;

    restoreshopitem ArcmageBoxset, 10000, 4;
    restoreshopitem ScholarshipBadge, 3;
    restoreshopitem Lifestone, 800;
    restoreshopitem Bullet, 90000;
    restoreshopitem Bread,  750;
    restoreshopitem Cheese, 400;
    restoreshopitem Aquada, 200;

    restoreshopitem WhiteFur, rand2(50);
    restoreshopitem Piberries, rand2(50);
    restoreshopitem CherryCake, rand2(50);
    restoreshopitem LettuceLeaf, rand2(50);
    restoreshopitem BugLeg, rand2(50);
    restoreshopitem RoastedMaggot, rand2(50);
    restoreshopitem Moss, rand2(50);
    restoreshopitem AnimalBones, rand2(40);
    restoreshopitem Milk, rand2(50);
    restoreshopitem Mashmallow, rand2(50);
    restoreshopitem Dragonfruit, rand2(50);
    end;

OnMinute02:
    if (gettime(7) != 2021 || !$FIRESOFSTEAM) end;
    donpcevent "Neko::OnClock2359";
    end;
}