Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.StatusUpdate.addAttribute()


    StatusUpdate su = null;
    if(Config.FORCE_COMPLETE_STATUS_UPDATE && this instanceof L2PcInstance){
      su = new StatusUpdate((L2PcInstance)this);
    }else{
      su = new StatusUpdate(getObjectId());
      su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
      su.addAttribute(StatusUpdate.CUR_MP, (int) getCurrentMp());
    }
   
    // Go through the StatusListener
    // Send the Server->Client packet StatusUpdate with current HP and MP
View Full Code Here


    if(Config.FORCE_COMPLETE_STATUS_UPDATE && this instanceof L2PcInstance){
      su = new StatusUpdate((L2PcInstance)this);
    }else{
      su = new StatusUpdate(getObjectId());
      su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
      su.addAttribute(StatusUpdate.CUR_MP, (int) getCurrentMp());
    }
   
    // Go through the StatusListener
    // Send the Server->Client packet StatusUpdate with current HP and MP
    for (L2Character temp : getStatus().getStatusListener())
View Full Code Here

      else
      {
        getStatus().reduceMp(calcStat(Stats.PHYSICAL_MP_CONSUME_RATE, initmpcons, null, null));
      }

      su.addAttribute(StatusUpdate.CUR_MP, (int) getCurrentMp());
      sendPacket(su);
      su = null;
    }

    // Disable the skill during the re-use delay and create a task EnableSkill with Medium priority to enable it at the end of the re-use delay
View Full Code Here

        if(su == null)
        {
          su = new StatusUpdate(getObjectId());
        }

        su.addAttribute(StatusUpdate.ATK_SPD, getPAtkSpd());
      }
      else if(stat == Stats.MAGIC_ATTACK_SPEED)
      {
        if(su == null)
        {
View Full Code Here

        if(su == null)
        {
          su = new StatusUpdate(getObjectId());
        }

        su.addAttribute(StatusUpdate.CAST_SPD, getMAtkSpd());
      }
      //else if (stat==Stats.MAX_HP) //
      //{
      //  if (su == null) su = new StatusUpdate(getObjectId());
      //  su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
View Full Code Here

          if(su == null)
          {
            su = new StatusUpdate(getObjectId());
          }

          su.addAttribute(StatusUpdate.MAX_CP, getMaxCp());
        }
      }
      //else if (stat==Stats.MAX_MP)
      //{
      //  if (su == null) su = new StatusUpdate(getObjectId());
View Full Code Here

        else
        {
          getStatus().reduceMp(calcStat(Stats.PHYSICAL_MP_CONSUME_RATE, mpConsume, null, null));
        }

        su.addAttribute(StatusUpdate.CUR_MP, (int) getCurrentMp());
        isSendStatus = true;
      }

      // Consume HP if necessary and Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
      if(skill.getHpConsume() > 0)
View Full Code Here

          consumeHp = getCurrentHp() - 1.0;
        }

        getStatus().reduceHp(consumeHp, this);

        su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
        isSendStatus = true;
      }

      // Send a Server->Client packet StatusUpdate with MP modification to the L2PcInstance
      if(isSendStatus)
View Full Code Here

    this.sendPacket(my);
    my = null;
   
    // Send a Server->Client packet StatusUpdate of the L2NpcInstance to the L2PcInstance to update its HP bar
    StatusUpdate su = new StatusUpdate(trasformedNpc.getObjectId());
    su.addAttribute(StatusUpdate.CUR_HP, (int) trasformedNpc.getCurrentHp());
    su.addAttribute(StatusUpdate.MAX_HP, trasformedNpc.getMaxHp());
    this.sendPacket(su);
    su = null;
  }
}
View Full Code Here

    my = null;
   
    // Send a Server->Client packet StatusUpdate of the L2NpcInstance to the L2PcInstance to update its HP bar
    StatusUpdate su = new StatusUpdate(trasformedNpc.getObjectId());
    su.addAttribute(StatusUpdate.CUR_HP, (int) trasformedNpc.getCurrentHp());
    su.addAttribute(StatusUpdate.MAX_HP, trasformedNpc.getMaxHp());
    this.sendPacket(su);
    su = 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.