// Save the changed parameters to the database.
player.store();
StatusUpdate su = new StatusUpdate(player.getObjectId());
su.addAttribute(StatusUpdate.CUR_HP, hpval);
su.addAttribute(StatusUpdate.MAX_HP, player.getMaxHp());
su.addAttribute(StatusUpdate.CUR_MP, mpval);
su.addAttribute(StatusUpdate.MAX_MP, player.getMaxMp());
su.addAttribute(StatusUpdate.CUR_CP, cpval);
su.addAttribute(StatusUpdate.MAX_CP, player.getMaxCp());
player.sendPacket(su);