55 13280, 13337, 13333, 13335, 13329, 20760, 13331, 21285, 13281, 13330,
56 13332, 13334, 13336, 13338, 20764, 21282
64 final int wearId = packet.readShort();
68 switch (interfaceId) {
71 final Item item = player.inventory.
get(wearSlot);
73 if (item ==
null || item.getId() != wearId) {
81 if (!item.isEquipable()) {
85 if (
Activity.evaluate(player, it -> !it.canEquipItem(player, item, item.getEquipmentType()))) {
90 player.interfaceManager.close(
false);
94 player.send(
new SendMessage(
"[WearItem] - [id= " + wearId +
"] [slot= " + wearSlot +
"] [itemcontainer " + interfaceId +
"]",
MessageColor.DEVELOPER));
98 player.send(
new SendMessage(
"This item cannot be worn."));
102 for (
int maxCape : MAX_CAPE_AND_HOOD) {
103 if (item.getId() == maxCape && !player.skills.
isMaxed()) {
104 player.message(
"You can not wield this item until you have 99 in all your skills!");
114 if (item.getId() == 13069 || item.getId() == 13070) {
116 player.send(
new SendMessage(
"You need to have completed all the achievements to wear this."));
121 player.equipment.equip(wearSlot);