L2PcInstance activeChar = getActiveChar();
// Set new karma
if (!activeChar.isCursedWeaponEquiped() && activeChar.getKarma() > 0 && (activeChar.isGM() || !activeChar.isInsideZone(L2Character.ZONE_PVP)))
{
int karmaLost = activeChar.calculateKarmaLost(value);
if (karmaLost > 0) activeChar.setKarma(activeChar.getKarma() - karmaLost);
}
//Player is Gm and acces level is below or equal to GM_DONT_TAKE_EXPSP and is in party, don't give Xp
if (getActiveChar().isGM() && getActiveChar().getAccessLevel() <= Config.GM_DONT_TAKE_EXPSP && getActiveChar().isInParty())
return false;