public static boolean convertItems(Player player, Item item) {
if (item.getDefinitions().containsOption("Convert")) {
for (int i = 45405; i < Utils.getItemDefinitionsSize(); i++) {
if (ItemDefinitions.getItemDefinitions(i).getName().equalsIgnoreCase(item.getName())) {
item.setId(i);
player.getInventory().refresh();
player.getPackets().sendGameMessage("You have converted your " + item.getName().toLowerCase() + " to a useable form.");
break;
}
}
return true;
}
return false;
}