So basically while I was rewriting the slayer shop interface class I came across this bug where it wouldn't allow me to equip a Full Slayer Helmet. A regular item would send packetId = 7(ACTION_BUTTON1_PACKET) for itemoption1 (it's 'Wear' most of the time) but the Full Slayer Helmet sends packetId = 103(ACTION_BUTTON2_PACKET). By putting this code under handleitemoption1 in InventoryOptions.java the option actually works so next I tried adding the wear() method with this but that wouldn't work either. A normal Slayer Helmet works perfectly fine just the Full Slayer Helmet doesn't for some reason.
Code:
case 15492:
if (item.getDefinitions().containsOption("Wear"))
player.getPackets().sendGameMessage("works");
return;
When I try to equip a normal Slayer Helmet:
When I try to equip a Full Slayer Helmet:
Solved it**