Examples of calculateKarmaLost()


Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.calculateKarmaLost()

      return false;

    // 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);
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.calculateKarmaLost()

      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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.