public void smelt(int barType) {
c.startAnimation(899);
if (c.smeltAmount > 0) {
c.getPA().closeAllWindows();
if (hasOres(barType)) {
c.getItems().deleteItem(oreId, c.getItems().getItemSlot(oreId), 1);
if (oreId2 > 0)
c.getItems().deleteItem(oreId2, c.getItems().getItemSlot(oreId2), 1);
c.getItems().addItem(barId,1);
c.getPA().addSkillXP(exp * Config.SMITHING_EXPERIENCE, c.playerSmithing);
c.getPA().refreshSkill(c.playerSmithing);
c.smeltAmount--;
c.smeltTimer = 1;
} else {
c.sendMessage("You do not have the required ores to smelt this.");
c.getPA().removeAllWindows();
}
} else {
c.getPA().resetVariables();
}
}