Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Player.reduceCurrentMp()


    if (mpConsume > effector.getCurrentMp())
    {
      effector.sendPacket(Msg.NOT_ENOUGH_MP);
      return false;
    }
    effector.reduceCurrentMp(mpConsume, effector);
    for (Creature cha : World.getAroundCharacters(symbol, getSkill().getSkillRadius(), 200))
    {
      if (!cha.isDoor() && (cha.getEffectList().getEffectsBySkill(skill) == null) && (skill.checkTarget(effector, cha, cha, false, false) == null))
      {
        if (skill.isOffensive() && !GeoEngine.canSeeTarget(symbol, cha, false))
View Full Code Here


    finally
    {
      activeChar.getInventory().writeUnlock();
    }
    activeChar.resetWaitSitTime();
    activeChar.reduceCurrentMp(recipe.getMpConsume(), null);
    RecipeComponent product = recipe.getRandomProduct();
    int itemId = product.getItemId();
    long itemsCount = product.getCount();
    int success = 0;
    if (Rnd.chance(recipe.getSuccessRate()))
View Full Code Here

    }
    finally
    {
      buyer.getInventory().writeUnlock();
    }
    manufacturer.reduceCurrentMp(recipe.getMpConsume(), null);
    manufacturer.sendStatusUpdate(false, false, StatusUpdateField.CUR_MP);
    RecipeTemplate.RecipeComponent product = recipe.getRandomProduct();
    int itemId = product.getItemId();
    long itemsCount = product.getCount();
    if (Rnd.chance(recipe.getSuccessRate()))
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.