@Override
    public void messageReceived(MessageEvent arg0) {
        final String msg = arg0.getMessage().toLowerCase();
        if (msg.contains("you retrieve a")) {
            smelted++;
        }
        if (msg.contains("the magic of the varrock armour enables you to smelt 2 bars at the same time.")) {
            smelted++;
        }
        if (msg.contains("the molten metal cools slowly to form 4 cannonballs.")) {
            smelted = smelted + 4;
        }
    }