tested this for itemoption6 works
edit this now works.Code:if (itemId == 995) { int amount = player.getInventory().getItems().getNumberOf(995); if (amount + player.money <= 2147000000) { player.getInventory().deleteItem(995, amount); player.getPackets().sendRunScript(5561, 1, amount); player.money += amount; player.refreshMoneyPouch(); } else { player.getPackets().sendGameMessage("Your money-pouch is currently full. Your coins will now go to your inventory."); } }