Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.StatusUpdate.addAttribute()


    for(int field : fields)
    {
      switch(field)
      {
        case StatusUpdate.CUR_HP:
          su.addAttribute(field, (int) getCurrentHp());
          break;
        case StatusUpdate.MAX_HP:
          su.addAttribute(field, getMaxHp());
          break;
        case StatusUpdate.CUR_MP:
View Full Code Here


      {
        case StatusUpdate.CUR_HP:
          su.addAttribute(field, (int) getCurrentHp());
          break;
        case StatusUpdate.MAX_HP:
          su.addAttribute(field, getMaxHp());
          break;
        case StatusUpdate.CUR_MP:
          su.addAttribute(field, (int) getCurrentMp());
          break;
        case StatusUpdate.MAX_MP:
View Full Code Here

          break;
        case StatusUpdate.MAX_HP:
          su.addAttribute(field, getMaxHp());
          break;
        case StatusUpdate.CUR_MP:
          su.addAttribute(field, (int) getCurrentMp());
          break;
        case StatusUpdate.MAX_MP:
          su.addAttribute(field, getMaxMp());
          break;
        case StatusUpdate.KARMA:
View Full Code Here

          break;
        case StatusUpdate.CUR_MP:
          su.addAttribute(field, (int) getCurrentMp());
          break;
        case StatusUpdate.MAX_MP:
          su.addAttribute(field, getMaxMp());
          break;
        case StatusUpdate.KARMA:
          su.addAttribute(field, getKarma());
          break;
        case StatusUpdate.CUR_CP:
View Full Code Here

          break;
        case StatusUpdate.MAX_MP:
          su.addAttribute(field, getMaxMp());
          break;
        case StatusUpdate.KARMA:
          su.addAttribute(field, getKarma());
          break;
        case StatusUpdate.CUR_CP:
          su.addAttribute(field, (int) getCurrentCp());
          break;
        case StatusUpdate.MAX_CP:
View Full Code Here

          break;
        case StatusUpdate.KARMA:
          su.addAttribute(field, getKarma());
          break;
        case StatusUpdate.CUR_CP:
          su.addAttribute(field, (int) getCurrentCp());
          break;
        case StatusUpdate.MAX_CP:
          su.addAttribute(field, getMaxCp());
          break;
        default:
View Full Code Here

          break;
        case StatusUpdate.CUR_CP:
          su.addAttribute(field, (int) getCurrentCp());
          break;
        case StatusUpdate.MAX_CP:
          su.addAttribute(field, getMaxCp());
          break;
        default:
          System.out.println("unknown StatusUpdate field: " + field);
          Thread.dumpStack();
          break;
View Full Code Here

  {
    // Эти статы нужно рассылать только для партии игрока
    StatusUpdate partyUpdate = new StatusUpdate(_activeChar.getObjectId());
    if(_maxCp != _activeChar.getMaxCp())
    {
      partyUpdate.addAttribute(StatusUpdate.MAX_CP, _activeChar.getMaxCp());
    }
    if(_maxHp != _activeChar.getMaxHp())
    {
      partyUpdate.addAttribute(StatusUpdate.MAX_HP, _activeChar.getMaxHp());
    }
View Full Code Here

    {
      partyUpdate.addAttribute(StatusUpdate.MAX_CP, _activeChar.getMaxCp());
    }
    if(_maxHp != _activeChar.getMaxHp())
    {
      partyUpdate.addAttribute(StatusUpdate.MAX_HP, _activeChar.getMaxHp());
    }
    if(_maxMp != _activeChar.getMaxMp())
    {
      partyUpdate.addAttribute(StatusUpdate.MAX_MP, _activeChar.getMaxMp());
    }
View Full Code Here

    {
      partyUpdate.addAttribute(StatusUpdate.MAX_HP, _activeChar.getMaxHp());
    }
    if(_maxMp != _activeChar.getMaxMp())
    {
      partyUpdate.addAttribute(StatusUpdate.MAX_MP, _activeChar.getMaxMp());
    }
    L2Party party = _activeChar.getParty();
    if(partyUpdate.hasAttributes())
    {
      if(party != null)
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.