armark1ng

Untitled

Sep 11th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. private ItemModify[] generateItemModify(Item[] items, Item[] cosmetics) {
  2. ItemModify[] modify = new ItemModify[15];
  3. for (int slotId = 0; slotId < modify.length; slotId++) {
  4. if (items[slotId] != null && items[slotId] == cosmetics[slotId]) {
  5. int[] colors = new int[4];
  6. colors[0] = player.getEquipment().getCostumeColor();
  7. colors[1] = colors[0] + 12;
  8. colors[2] = colors[1] + 12;
  9. colors[3] = colors[2] + 12;
  10. setItemModifyColor(items[slotId], slotId, modify, colors);
  11. } else {
  12. int id = items[slotId] == null ? -1 : items[slotId].getId();
  13. if (id == 32152 || id == 32153 || id == 20768 || id == 20770 || id == 20772 || id == 20767
  14. || id == 20769 || id == 20771)
  15. setItemModifyColor(items[slotId], slotId, modify, id == 32151 || id == 20768 || id == 20767
  16. ? player.getMaxedCapeCustomized() : player.getCompletionistCapeCustomized());
  17. else if (id == 20708 || id == 20709) {
  18. ClansManager manager = player.getClanManager();
  19. if (manager == null)
  20. continue;
  21. int[] colors = manager.getClan().getMottifColors();
  22. setItemModifyColor(items[slotId], slotId, modify, colors);
  23. setItemModifyTexture(items[slotId], slotId, modify,
  24. new short[] { (short) ClansManager.getMottifTexture(manager.getClan().getMottifTop()),
  25. (short) ClansManager.getMottifTexture(manager.getClan().getMottifBottom()) });
  26. } else if (player.getAuraManager().isActivated() && slotId == Equipment.SLOT_AURA) {
  27. int auraId = player.getEquipment().getAuraId();
  28. if (auraId == -1)
  29. continue;
  30. int modelId = player.getAuraManager().getAuraModelId();
  31. int modelId2 = player.getAuraManager().getAuraModelId2();
  32. setItemModifyModel(items[slotId], slotId, modify, modelId, modelId, modelId2, modelId2, -1, -1);
  33. }
  34. }
  35. }
  36. return modify;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment