-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathboss_index.js
More file actions
389 lines (379 loc) · 10.4 KB
/
Copy pathboss_index.js
File metadata and controls
389 lines (379 loc) · 10.4 KB
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
import { cmdGenerateModGroup } from './cmd.js';
const useAllowlist = (list) => {
return (table) => {
const excludes = {};
for (const [category, items] of Object.entries(table)) {
excludes[category] = items.filter((item) => !list.includes(item));
}
return excludes;
};
};
const useGWDTransforms = (name, transforms, b2p) => ({
updateDropTable: (table) => {
delete table['Uniques'];
delete table['Unique table'];
delete table['Godsword shard table'];
if (!!transforms.updateDropTable) {
transforms.updateDropTable(table);
}
},
getDefaults: (table) => {
return !!transforms.getDefaults ? transforms.getDefaults(table) : {};
},
preScript: (scope) => {
let script = `/*@ define:input
type: boolean
group: "${name}"
label: Hide coin drops from bodyguards
*/
#define VAR_${scope}_BGHIDECOINS true
CONST_${scope}_RULE (VAR_${scope}_BGHIDECOINS && name:"coins" && quantity:<=3000) {
hidden = true;
}
`;
if (b2p) {
script += '\n\n';
script += `/*@ define:input
type: boolean
group: "${name}"
label: Always show bones
*/
#define VAR_${scope}_B2P false
CONST_${scope}_RULE (VAR_${scope}_B2P && name:"*bones") {
hidden = false;
}
`;
}
return script;
},
});
const index = [
// skip: barrows (they don't drop anything)
{
name: 'Yama',
area: [1472, 10048, 0, 1535, 10111, 0],
url: 'https://oldschool.runescape.wiki/w/Yama',
},
{
name: 'Scurrius',
area: [3285, 9856, 0, 3310, 9879, 0],
url: 'https://oldschool.runescape.wiki/w/Scurrius',
},
{
name: 'Giant Mole',
area: [1728, 5120, 0, 1791, 5247, 0],
url: 'https://oldschool.runescape.wiki/w/Giant_Mole',
},
{
name: 'Deranged archaeologist',
area: [3669, 3694, 0, 3698, 3722, 0],
url: 'https://oldschool.runescape.wiki/w/Deranged_archaeologist',
},
{
name: 'Dagannoth Kings',
area: [2880, 4353, 0, 2943, 4478, 0],
url: [
'https://oldschool.runescape.wiki/w/Dagannoth_Rex',
'https://oldschool.runescape.wiki/w/Dagannoth_Prime',
'https://oldschool.runescape.wiki/w/Dagannoth_Supreme',
],
transform: {
updateDropTable: (table) => {
table['Tertiary'] = ['Ensouled dagannoth head', 'Brimstone key'];
},
getDefaults: useAllowlist([
// 100%
'Dagannoth bones',
// Weapons and armour
'Dragon axe',
'Berserker ring',
'Warrior ring',
'Mud battlestaff',
'Battlestaff',
'Seers ring',
'Archers ring',
'Archer helm',
'Farseer helm',
'Seercull',
'Mithril knife',
'Iron knife',
'Steel knife',
// Ores and bars
'Coal',
'Iron ore',
'Steel bar',
// Talismans (noted)
'Earth talisman',
'Air talisman',
'Water talisman',
// Tertiary
'Ensouled dagannoth head',
'Brimstone key',
]),
},
},
{
name: 'Sarachnis',
area: [1829, 9890, 0, 1855, 9911, 0],
url: 'https://oldschool.runescape.wiki/w/Sarachnis',
},
// skip: perilous moons (loot is from chest)
{
name: 'Kalphite Queen',
area: [3456, 9472, 0, 3519, 9535, 0],
url: 'https://oldschool.runescape.wiki/w/Kalphite_Queen',
},
{
name: "Kree'arra",
area: [2823, 5295, 2, 2843, 5309, 2],
url: [
'https://oldschool.runescape.wiki/w/Kree%27arra',
'https://oldschool.runescape.wiki/w/Flight_Kilisa',
'https://oldschool.runescape.wiki/w/Wingman_Skree',
'https://oldschool.runescape.wiki/w/Flockleader_Geerin',
],
transform: useGWDTransforms(
"Kree'arra",
{
getDefaults: (_) => {
return {
'100%': ['Big bones', 'Feather', 'Bones'],
'Food and ammunition': ['Steel arrow', 'Steel dart', 'Smoke rune'],
};
},
},
true
),
},
{
name: 'Commander Zilyana',
area: [2888, 5257, 0, 2908, 5276, 0],
url: [
'https://oldschool.runescape.wiki/w/Commander_Zilyana',
'https://oldschool.runescape.wiki/w/Starlight',
'https://oldschool.runescape.wiki/w/Bree',
'https://oldschool.runescape.wiki/w/Growler',
],
transform: useGWDTransforms('Commander Zilyana', {}, true),
},
{
name: 'General Graardor',
area: [2863, 5350, 2, 2877, 5370, 2],
url: [
'https://oldschool.runescape.wiki/w/General_Graardor',
'https://oldschool.runescape.wiki/w/Sergeant_Strongstack',
'https://oldschool.runescape.wiki/w/Sergeant_Steelwill',
'https://oldschool.runescape.wiki/w/Sergeant_Grimspike',
],
transform: useGWDTransforms(
'General Graardor',
{
getDefaults: () => ({
'100%': ['Big bones', 'Bones'],
Tertiary: ['Kebab', 'Beer', 'Right eye patch'],
'Food and ammunition': ['Steel arrow', 'Steel dart', 'Chilli potato'],
Other: ['Limpwurt root', 'Combat potion(3)', 'Super strength(3)'],
}),
},
true
),
},
{
name: "K'ril Tsutsaroth",
area: [2917, 5317, 2, 2937, 5332, 2],
url: [
'https://oldschool.runescape.wiki/w/K%27ril_Tsutsaroth',
'https://oldschool.runescape.wiki/w/Balfrug_Kreeyath',
'https://oldschool.runescape.wiki/w/Tstanon_Karlak',
'https://oldschool.runescape.wiki/w/Zakl%27n_Gritch',
],
transform: useGWDTransforms("K'ril Tsutsaroth", {}),
},
{
name: 'The Hueycoatl',
area: [1497, 3271, 0, 1529, 3301, 0],
url: 'https://oldschool.runescape.wiki/w/The_Hueycoatl',
},
{
name: 'Corporeal Beast',
area: [2961, 4366, 0, 3001, 4399, 0],
url: 'https://oldschool.runescape.wiki/w/Corporeal_Beast',
},
{
name: 'Nex',
area: [2910, 5188, 0, 2940, 5218, 0],
url: 'https://oldschool.runescape.wiki/w/Nex',
},
{
name: 'Chaos Fanatic',
area: [2973, 3849, 0, 2988, 3863, 0],
url: 'https://oldschool.runescape.wiki/w/Chaos_Fanatic',
},
{
name: 'Crazy archaeologist',
area: [2953, 3679, 0, 2985, 3708, 0],
url: 'https://oldschool.runescape.wiki/w/Crazy_archaeologist',
},
{
name: 'Scorpia',
area: [3214, 10324, 0, 3252, 10358, 0],
url: 'https://oldschool.runescape.wiki/w/Scorpia',
},
{
name: 'King Black Dragon',
area: [2240, 4672, 0, 2303, 4735, 0],
url: 'https://oldschool.runescape.wiki/w/King_Black_Dragon',
},
{
name: 'Chaos Elemental',
area: [3200, 3904, 0, 3327, 3967, 0],
url: 'https://oldschool.runescape.wiki/w/Chaos_Elemental',
},
//{
// name: 'Revenant maledictus',
// area: [3136, 10048, 0, 3263, 10239, 0],
// url: '', // drop table doesn't work without ref support
//},
{
name: "Vet'ion",
area: [3282, 10187, 1, 3307, 10216, 1],
url: 'https://oldschool.runescape.wiki/w/Vet%27ion',
},
{
name: 'Venenatis',
area: [3402, 10181, 2, 3443, 10225, 2],
url: 'https://oldschool.runescape.wiki/w/Venenatis',
},
{
name: 'Callisto',
area: [3342, 10311, 0, 3374, 10344, 0],
url: 'https://oldschool.runescape.wiki/w/Callisto',
},
{
name: 'Amoxliatl',
area: [1347, 4493, 0, 1383, 4529, 0],
url: 'https://oldschool.runescape.wiki/w/Amoxliatl',
},
// skip: royal titans, no drop
{
name: 'Zulrah',
area: [2259, 3065, 0, 2277, 3080, 0],
url: 'https://oldschool.runescape.wiki/w/Zulrah',
},
{
name: 'Vorkath',
area: [2256, 4051, 0, 2288, 4080, 0],
url: 'https://oldschool.runescape.wiki/w/Vorkath',
transform: {
updateDropTable: (table) => {
delete table['100%'];
},
getDefaults: (_) => {
return {
'Fletching materials': [
'Sapphire bolt tips',
'Emerald bolt tips',
'Ruby bolt tips',
'Diamond bolt tips',
],
Other: ['Grapes', 'Wrath talisman'],
Tertiary: ['Scaly blue dragonhide'],
};
},
preScript: () => {
return `/*@ define:input:vorkath
type: boolean
group: Vorkath
label: Hide un-noted blue d-hide
*/
#define VAR_VORKATH_BOOLEAN_GENERAL_NOHIDE true
/*@ define:input:vorkath
type: boolean
group: Vorkath
label: Hide superior dragon bones (why?)
*/
#define VAR_VORKATH_BOOLEAN_GENERAL_NOBONE false
CONST_VORKATH_RULE (VAR_VORKATH_BOOLEAN_GENERAL_NOHIDE && name:"Blue dragonhide" && noted:false) {
hidden = true;
}
CONST_VORKATH_RULE (VAR_VORKATH_BOOLEAN_GENERAL_NOBONE && name:"Superior dragon bones" && noted:false) {
hidden = true;
}`;
},
},
},
{
name: 'Phantom Muspah',
area: [2816, 4224, 0, 2879, 4287, 0],
url: 'https://oldschool.runescape.wiki/w/Phantom_Muspah',
},
{
name: 'The Nightmare',
area: [3840, 9920, 3, 3903, 9983, 3],
url: 'https://oldschool.runescape.wiki/w/The_Nightmare',
},
{
name: 'Duke Sucellus',
area: [3027, 6433, 0, 3051, 6458, 0],
url: 'https://oldschool.runescape.wiki/w/Duke_Sucellus',
},
{
name: 'The Leviathan',
area: [2053, 6355, 0, 2110, 6390, 0],
url: 'https://oldschool.runescape.wiki/w/The_Leviathan',
},
{
name: 'The Whisperer',
area: [2631, 6345, 0, 2684, 6391, 0],
url: 'https://oldschool.runescape.wiki/w/The_Whisperer',
},
{
name: 'Vardorvis',
area: [1117, 3408, 0, 1141, 3428, 0],
url: 'https://oldschool.runescape.wiki/w/Vardorvis',
},
// skip: Sporadic bosses
{
name: 'Grotesque Guardians',
area: [1664, 4544, 0, 1727, 4607, 0],
url: 'https://oldschool.runescape.wiki/w/Grotesque_Guardians',
},
{
name: 'Abyssal Sire',
area: [2944, 4736, 0, 3135, 4863, 0],
url: 'https://oldschool.runescape.wiki/w/Abyssal_Sire',
},
{
name: 'Kraken',
area: [2268, 10021, 0, 2292, 10045, 0],
url: 'https://oldschool.runescape.wiki/w/Kraken',
},
{
name: 'Cerberus',
area: [1208, 1215, 0, 1394, 1340, 0],
url: 'https://oldschool.runescape.wiki/w/Cerberus',
},
{
name: 'Araxxor',
area: [3608, 9795, 0, 3651, 9837, 0],
url: 'https://oldschool.runescape.wiki/w/Araxxor',
},
{
name: 'Thermonuclear smoke devil',
area: [2345, 9434, 0, 2380, 9464, 0],
url: 'https://oldschool.runescape.wiki/w/Thermonuclear_smoke_devil',
},
{
name: 'Alchemical Hydra',
area: [1346, 10251, 0, 1385, 10287, 0],
url: 'https://oldschool.runescape.wiki/w/Alchemical_Hydra',
},
{
name: 'Brutus',
area: [3257, 3299, 0, 3265, 3285, 0],
url: 'https://oldschool.runescape.wiki/w/Brutus',
},
];
const desc = `These sections allow you to filter out drops on a per-boss basis.
Not all of them have defaults yet, they're being added over time.`;
await cmdGenerateModGroup('boss', desc, index);