Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ItemModify[] generateItemModify(Item[] items, Item[] cosmetics) {
- ItemModify[] modify = new ItemModify[15];
- for (int slotId = 0; slotId < modify.length; slotId++) {
- if (items[slotId] != null && items[slotId] == cosmetics[slotId]) {
- int[] colors = new int[4];
- colors[0] = player.getEquipment().getCostumeColor();
- colors[1] = colors[0] + 12;
- colors[2] = colors[1] + 12;
- colors[3] = colors[2] + 12;
- setItemModifyColor(items[slotId], slotId, modify, colors);
- } else {
- int id = items[slotId] == null ? -1 : items[slotId].getId();
- if (id == 32152 || id == 32153 || id == 20768 || id == 20770 || id == 20772 || id == 20767
- || id == 20769 || id == 20771)
- setItemModifyColor(items[slotId], slotId, modify, id == 32151 || id == 20768 || id == 20767
- ? player.getMaxedCapeCustomized() : player.getCompletionistCapeCustomized());
- else if (id == 20708 || id == 20709) {
- ClansManager manager = player.getClanManager();
- if (manager == null)
- continue;
- int[] colors = manager.getClan().getMottifColors();
- setItemModifyColor(items[slotId], slotId, modify, colors);
- setItemModifyTexture(items[slotId], slotId, modify,
- new short[] { (short) ClansManager.getMottifTexture(manager.getClan().getMottifTop()),
- (short) ClansManager.getMottifTexture(manager.getClan().getMottifBottom()) });
- } else if (player.getAuraManager().isActivated() && slotId == Equipment.SLOT_AURA) {
- int auraId = player.getEquipment().getAuraId();
- if (auraId == -1)
- continue;
- int modelId = player.getAuraManager().getAuraModelId();
- int modelId2 = player.getAuraManager().getAuraModelId2();
- setItemModifyModel(items[slotId], slotId, modify, modelId, modelId, modelId2, modelId2, -1, -1);
- }
- }
- }
- return modify;
- }
Advertisement
Add Comment
Please, Sign In to add comment