Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.updateStats()


    }
    if(item.isAugmented())
    {
      L2Player player = _inv.getOwner().getPlayer();
      item.getAugmentation().removeBoni(player);
      player.updateStats();
    }
  }

  public void notifyEquipped(int slot, L2ItemInstance item)
  {
View Full Code Here


    }
    if(item.isAugmented())
    {
      L2Player player = _inv.getOwner().getPlayer();
      item.getAugmentation().applyBoni(player);
      player.updateStats();
    }
  }
}
View Full Code Here

      }
    }
    if(update)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }

  public void notifyUnequipped(int slot, L2ItemInstance item)
  {
View Full Code Here

      }
    }
    if(update)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }
}
View Full Code Here

      player.removeSkill(enchant4Skill, false);
    }
    if(itemSkills != null || enchant4Skill != null)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }

  public void notifyEquipped(int slot, L2ItemInstance item)
  {
View Full Code Here

      player.addSkill(enchant4Skill, false);
    }
    if(itemSkills != null || enchant4Skill != null)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }
}
View Full Code Here

      warehouse.addItem(inventory.dropItem(itemToStore, _items.get(itemToStore.getObjectId()), false), activeChar.getName());
    }
    // Платим налог
    activeChar.reduceAdena(fee, true);
    // Обновляем параметры персонажа
    activeChar.updateStats();
  }
}
View Full Code Here

        }
        var += skill.getId();
        activeChar.setVar("TransferSkills" + item_id, var);
      }
      activeChar.addSkill(skill, true);
      activeChar.updateStats();
      activeChar.sendUserInfo(true);
    }
    else
    {
      int _requiredSp = SkillTreeTable.getInstance().getSkillCost(activeChar, skill);
View Full Code Here

        activeChar.addSkill(skill, true);
        if(!SkillLearn.common && !SkillLearn.transformation)
        {
          activeChar.setSp(activeChar.getSp() - _requiredSp);
        }
        activeChar.updateStats();
        activeChar.sendUserInfo(true);
        //update all the shortcuts to this skill
        if(_level > 1)
        {
          for(L2ShortCut sc : activeChar.getAllShortCuts())
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    dropedItem.dropToTheGround(activeChar, _loc);
    Log.LogItem(activeChar, Log.Drop, dropedItem);
    activeChar.updateStats();
  }
}
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.