activeChar.sendActionFailed();
return;
}
if (!Config.ALT_GAME_KARMA_PLAYER_CAN_SHOP && (activeChar.getKarma() < 0) && !activeChar.isGM())
{
activeChar.sendActionFailed();
return;
}
NpcInstance merchant = activeChar.getLastNpc();
boolean isValidMerchant = (merchant != null) && merchant.isMerchantNpc();
if (!activeChar.isGM() && ((merchant == null) || !isValidMerchant || !activeChar.isInRange(merchant, Creature.INTERACTION_DISTANCE)))