I get an error about "orphaned case". So this is the error. Can you help me on what I did wrong?
client.java: 8643: orphaned case
case 117: // bank 5 items - sell 1 item
^
This is the code:
case 117: //bank 5 items - sell 1 item
interfaceID = inStream.readSignedWordBigEndianA();
removeID = inStream.readSignedWordBigEndianA();
removeSlot = inStream.readSignedWordBigEndian();
//println_debug("RemoveItem 5: "+removeID +" InterID: "+interfaceID +" slot: "+removeSlot );
if (interfaceID == 5064) { //remove from bag to bank
bankItem(removeID , removeSlot, 5);
} else if (interfaceID == 5382) { //remove from bank
fromBank(removeID , removeSlot, 5);
} else if (interfaceID == 3322) { //remove from bag to trade window
if(isUntradable(removeID))
sendMessage("You cannot trade this item");
else
tradeItem(removeID , removeSlot, 5);
} else if (interfaceID == 3415) { //remove from trade window
fromTrade(removeID, removeSlot, 5);
} else if (interfaceID == 3823) { //Show value to sell items
sellItem(removeID, removeSlot, 1);
} else if (interfaceID == 3900) { //Show value to buy items
buyItem(removeID, removeSlot, 1);
}
break;