RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
ClanUtility.java
1
package
com.osroyale.content.clanchannel;
2
3
import
com.osroyale.content.clanchannel.content.ClanLevel;
4
40
41
* This
class
holds all the util methods for the clan channel system.
42
*
43
* @author Daniel
44
*/
45
public
class
ClanUtility
{
46
48
public
static
int
getRankOrdinal
(
int
button) {
49
int
base_button = -32003;
50
int
modified_button = (base_button - button) / 4;
51
return
Math.abs(modified_button);
52
}
53
55
public
static
int
getUnbanOrdinal
(
int
button) {
56
int
base_button = -14225;
57
int
modified_button = (base_button - button);
58
return
Math.abs(modified_button);
59
}
60
62
public
static
int
[]
getRewardItems
(
ClanLevel
level) {
63
int
[] items =
new
int
[30];
64
switch
(level) {
65
case
BRONZE:
66
items = BRONZE_ITEMS;
67
break
;
68
case
IRON:
69
items = IRON_ITEMS;
70
break
;
71
case
STEEL:
72
items = STEEL_ITEMS;
73
break
;
74
case
BLACK:
75
items = BLACK_ITEMS;
76
break
;
77
case
MITHRIL:
78
items = MITHRIL_ITEMS;
79
break
;
80
case
ADAMANT:
81
items = ADAMANT_ITEMS;
82
break
;
83
case
RUNE:
84
items = RUNE_ITEMS;
85
break
;
86
case
DRAGON:
87
items = DRAGON_ITEMS;
88
break
;
89
case
BARROW:
90
break
;
91
case
GILDED:
92
break
;
93
case
GODLY:
94
break
;
95
case
THIRD_AGE:
96
break
;
97
case
RARE:
98
break
;
99
}
100
return
items;
101
}
102
104
private
static
final
int
[] BRONZE_ITEMS = {
105
1155,
//Bronze full helm
106
1117,
//Bronze platebody
107
1075,
//Bronze platelegs
108
1189,
//Bronze kiteshield
109
1139,
//Bronze med helm
110
1103,
//Bronze chainbody
111
1087,
//Bronze plateskirt
112
1173,
//Bronze sq shield
113
1321,
//Bronze scimitar
114
1307,
//Bronze 2h sword
115
1291,
//Bronze longsword
116
1277,
//Bronze sword
117
1265,
//Bronze pickaxe
118
1351,
//Bronze axe
119
1375,
//Bronze battleaxe
120
1337,
//Bronze warhammer
121
1205,
//Bronze dagger
122
1422,
//Bronze mace
123
3095,
//Bronze claws
124
3190,
//Bronze halberd
125
4119,
//Bronze boots
126
7454,
//Bronze gloves
127
9174,
//Bronze crossbow
128
8844,
//Bronze defender
129
12363,
//Bronze dragon mask
130
2349,
//Bronze bar
131
12211,
//Bronze full helm (g)
132
12205,
//Bronze platebody (g)
133
12207,
//Bronze platelegs (g)
134
12213,
//Bronze kiteshield (g)
135
12209,
//Bronze plateskirt (g)
136
12221,
//Bronze full helm (t)
137
12215,
//Bronze platebody (t)
138
12217,
//Bronze platelegs (t)
139
12223,
//Bronze kiteshield (t)
140
12219,
//Bronze plateskirt (t)
141
};
142
144
private
static
final
int
[] IRON_ITEMS = {
145
1153,
//Iron full helm
146
1115,
//Iron platebody
147
1067,
//Iron platelegs
148
1191,
//Iron kiteshield
149
1137,
//Iron med helm
150
1101,
//Iron chainbody
151
1081,
//Iron plateskirt
152
1175,
//Iron sq shield
153
1323,
//Iron scimitar
154
1309,
//Iron 2h sword
155
1293,
//Iron longsword
156
1279,
//Iron sword
157
1335,
//Iron warhammer
158
1363,
//Iron battleaxe
159
1420,
//Iron mace
160
1203,
//Iron dagger
161
1267,
//Iron pickaxe
162
1349,
//Iron axe
163
4121,
//Iron boots
164
9177,
//Iron crossbow
165
8845,
//Iron defender
166
2351,
//Iron bar
167
12225,
//Iron platebody (t)
168
12227,
//Iron platelegs (t)
169
12229,
//Iron plateskirt (t)
170
12231,
//Iron full helm (t)
171
12233,
//Iron kiteshield (t)
172
12235,
//Iron platebody (g)
173
12237,
//Iron platelegs (g)
174
12239,
//Iron plateskirt (g)
175
12241,
//Iron full helm (g)
176
12243,
//Iron kiteshield (g)
177
12365,
//Iron dragon mask
178
7455,
//Iron gloves
179
3096,
//Iron claws
180
};
181
183
private
static
final
int
[] STEEL_ITEMS = {
184
1157,
//Steel full helm
185
1119,
//Steel platebody
186
1069,
//Steel platelegs
187
1193,
//Steel kiteshield
188
1141,
//Steel med helm
189
1105,
//Steel chainbody
190
1083,
//Steel plateskirt
191
1177,
//Steel sq shield
192
1207,
//Steel dagger
193
1325,
//Steel scimitar
194
1311,
//Steel 2h sword
195
1295,
//Steel longsword
196
1281,
//Steel sword
197
1339,
//Steel warhammer
198
1353,
//Steel axe
199
1365,
//Steel battleaxe
200
1424,
//Steel mace
201
2353,
//Steel bar
202
1269,
//Steel pickaxe
203
3097,
//Steel claws
204
4123,
//Steel boots
205
7456,
//Steel gloves
206
8846,
//Steel defender
207
9179,
//Steel crossbow
208
20169,
//Steel platebody (g)
209
20172,
//Steel platelegs (g)
210
20175,
//Steel plateskirt (g)
211
20178,
//Steel full helm (g)
212
20181,
//Steel kiteshield (g)
213
20184,
//Steel platebody (t)
214
20187,
//Steel platelegs (t)
215
20190,
//Steel plateskirt (t)
216
20193,
//Steel full helm (t)
217
20196,
//Steel kiteshield (t)
218
12367,
//Steel dragon mask
219
};
220
222
private
static
final
int
[] BLACK_ITEMS = {
223
1165,
//Black full helm
224
1125,
//Black platebody
225
1077,
//Black platelegs
226
1195,
//Black kiteshield
227
1151,
//Black med helm
228
1107,
//Black chainbody
229
1179,
//Black sq shield
230
1089,
//Black plateskirt
231
1217,
//Black dagger
232
8847,
//Black defender
233
1283,
//Black sword
234
1297,
//Black longsword
235
1313,
//Black 2h sword
236
1327,
//Black scimitar
237
1341,
//Black warhammer
238
1361,
//Black axe
239
1367,
//Black battleaxe
240
1426,
//Black mace
241
4125,
//Black boots
242
7457,
//Black gloves
243
2583,
//Black platebody (t)
244
2585,
//Black platelegs (t)
245
2587,
//Black full helm (t)
246
2589,
//Black kiteshield (t)
247
2591,
//Black platebody (g)
248
2593,
//Black platelegs (g)
249
2595,
//Black full helm (g)
250
2597,
//Black kiteshield (g)
251
3472,
//Black plateskirt (t)
252
3473,
//Black plateskirt (g)
253
3098,
//Black claws
254
};
255
257
private
static
final
int
[] MITHRIL_ITEMS = {
258
1159,
//Mithril full helm
259
1121,
//Mithril platebody
260
1071,
//Mithril platelegs
261
1197,
//Mithril kiteshield
262
1143,
//Mithril med helm
263
1109,
//Mithril chainbody
264
1085,
//Mithril plateskirt
265
1181,
//Mithril sq shield
266
1209,
//Mithril dagger
267
1273,
//Mithril pickaxe
268
1285,
//Mithril sword
269
1299,
//Mithril longsword
270
1315,
//Mithril 2h sword
271
1329,
//Mithril scimitar
272
1343,
//Mithril warhammer
273
1355,
//Mithril axe
274
1369,
//Mithril battleaxe
275
1428,
//Mithril mace
276
2359,
//Mithril bar
277
3099,
//Mithril claws
278
8848,
//Mithril defender
279
4127,
//Mithril boots
280
7458,
//Mithril gloves
281
12369,
//Mithril dragon mask
282
12277,
//Mithril platebody (g)
283
12279,
//Mithril platelegs (g)
284
12281,
//Mithril kiteshield (g)
285
12283,
//Mithril full helm (g)
286
12285,
//Mithril plateskirt (g)
287
12287,
//Mithril platebody (t)
288
12289,
//Mithril platelegs (t)
289
12291,
//Mithril kiteshield (t)
290
12293,
//Mithril full helm (t)
291
12295,
//Mithril plateskirt (t)
292
};
293
295
private
static
final
int
[] ADAMANT_ITEMS = {
296
1161,
//Adamant full helm
297
1123,
//Adamant platebody
298
1073,
//Adamant platelegs
299
1199,
//Adamant kiteshield
300
1145,
//Adamant med helm
301
1111,
//Adamant chainbody
302
1091,
//Adamant plateskirt
303
1183,
//Adamant sq shield
304
1211,
//Adamant dagger
305
1271,
//Adamant pickaxe
306
1287,
//Adamant sword
307
1301,
//Adamant longsword
308
1317,
//Adamant 2h sword
309
1331,
//Adamant scimitar
310
1345,
//Adamant warhammer
311
1357,
//Adamant axe
312
1371,
//Adamant battleaxe
313
1430,
//Adamant mace
314
2361,
//Adamantite bar
315
3100,
//Adamant claws
316
4129,
//Adamant boots
317
2361,
//Adamantite bar
318
8849,
//Adamant defender
319
7459,
//Adamant gloves
320
2599,
//Adamant platebody (t)
321
2601,
//Adamant platelegs (t)
322
2603,
//Adamant kiteshield (t)
323
2605,
//Adamant full helm (t)
324
2607,
//Adamant platebody (g)
325
2609,
//Adamant platelegs (g)
326
2611,
//Adamant kiteshield (g)
327
2613,
//Adamant full helm (g)
328
3474,
//Adamant plateskirt (t)
329
3475,
//Adamant plateskirt (g)
330
};
331
333
private
static
final
int
[] RUNE_ITEMS = {
334
1163,
//Rune full helm
335
1127,
//Rune platebody
336
1079,
//Rune platelegs
337
1201,
//Rune kiteshield
338
1147,
//Rune med helm
339
1113,
//Rune chainbody
340
1093,
//Rune plateskirt
341
1185,
//Rune sq shield
342
1333,
//Rune scimitar
343
1319,
//Rune 2h sword
344
1303,
//Rune longsword
345
1289,
//Rune sword
346
1275,
//Rune pickaxe
347
1347,
//Rune warhammer
348
1213,
//Rune dagger
349
1359,
//Rune axe
350
1373,
//Rune battleaxe
351
1432,
//Rune mace
352
3101,
//Rune claws
353
4131,
//Rune boots
354
7460,
//Rune gloves
355
8850,
//Rune defender
356
2363,
//Runite bar
357
2615,
//Rune platebody (g)
358
2617,
//Rune platelegs (g)
359
2619,
//Rune full helm (g)
360
2621,
//Rune kiteshield (g)
361
2623,
//Rune platebody (t)
362
2625,
//Rune platelegs (t)
363
2627,
//Rune full helm (t)
364
2629,
//Rune kiteshield (t)
365
3476,
//Rune plateskirt (g)
366
3477,
//Rune plateskirt (t)
367
};
368
370
private
static
final
int
[] DRAGON_ITEMS = {
371
11335,
//Dragon full helm
372
2513,
//Dragon chainbody
373
4087,
//Dragon platelegs
374
1187,
//Dragon sq shield
375
1149,
//Dragon med helm
376
4585,
//Dragon plateskirt
377
1215,
//Dragon dagger
378
1249,
//Dragon spear
379
1305,
//Dragon longsword
380
1377,
//Dragon battleaxe
381
1434,
//Dragon mace
382
4587,
//Dragon scimitar
383
6739,
//Dragon axe
384
7158,
//Dragon 2h sword
385
7461,
//Dragon gloves
386
11840,
//Dragon boots
387
11920,
//Dragon pickaxe
388
12954,
//Dragon defender
389
13576,
//Dragon warhammer
390
13652,
//Dragon claws
391
21009,
//Dragon sword
392
21012,
//Dragon hunter crossbow
393
21028,
//Dragon harpoon
394
12414,
//Dragon chainbody (g)
395
12415,
//Dragon platelegs (g)
396
12416,
//Dragon plateskirt (g)
397
12417,
//Dragon full helm (g)
398
12418,
//Dragon sq shield (g)
399
20000,
//Dragon scimitar (or)
400
19722,
//Dragon defender (t)
401
};
402
}
com.osroyale.content.clanchannel.ClanUtility
Definition
ClanUtility.java:45
com.osroyale.content.clanchannel.ClanUtility.getRankOrdinal
static int getRankOrdinal(int button)
Definition
ClanUtility.java:48
com.osroyale.content.clanchannel.ClanUtility.getUnbanOrdinal
static int getUnbanOrdinal(int button)
Definition
ClanUtility.java:55
com.osroyale.content.clanchannel.ClanUtility.getRewardItems
static int[] getRewardItems(ClanLevel level)
Definition
ClanUtility.java:62
com.osroyale.content.clanchannel.content.ClanLevel
Definition
ClanLevel.java:46