There's 2 Ways
One is clientside other is serverside.
both will do exactly the same thing.
RuneScape does it client side ever since the 400+ engines.
but basically you jsut do somthing like
Code:
private int[] hiddenEquipment = new int[14];
then somthing like
Code:
protected void setHiddenEquipment(int slot, int id) {
hiddenEquipment[slot] = id;
}
protected void deleteHiddenEquipment(int slot) {
hiddenEquipment[slot] = -1;
}
now in your appearence update block you'd just do
Code:
if (playerEquipment[slot] > -1 || hiddenEquipment[slot] > -1) {
if (hiddenEquipment[slot] > -1) {
writeStuff(hiddenEquipment[slot]);
} else {
writeStuff(playerEquipment[slot]);
}
} else {
writeStuff(0);
}
So then when you do fishing you do
Code:
player.setHiddenEquipment(3,fishingCageId);
then basically it'll show a fishing cage wielded and all you need do is reset it when you finish fishing the item will never really exist but it will show there.