Package com.l2jfrozen.gameserver.network.serverpackets

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


        player.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(getObjectId());
        su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
        su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
        player.sendPacket(su);
        su = null;
      }
      else
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(getObjectId());
        su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
        su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
        player.sendPacket(su);
        su = null;
      }
      else
      {
View Full Code Here

      // Check if the player is attackable (without a forced attack)
      if (isAutoAttackable(player))
      {
        // Send a Server->Client packet StatusUpdate of the L2NpcInstance to the L2PcInstance to update its HP bar
        StatusUpdate su = new StatusUpdate(getObjectId());
        su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
        su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
        player.sendPacket(su);
        su = null;
      }
     
View Full Code Here

      if (isAutoAttackable(player))
      {
        // Send a Server->Client packet StatusUpdate of the L2NpcInstance to the L2PcInstance to update its HP bar
        StatusUpdate su = new StatusUpdate(getObjectId());
        su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
        su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
        player.sendPacket(su);
        su = null;
      }
     
      // Send a Server->Client NpcHtmlMessage() containing the GM console about this L2NpcInstance
View Full Code Here

      // Check if the player is attackable (without a forced attack)
      if (isAutoAttackable(player))
      {
        // Send a Server->Client packet StatusUpdate of the L2NpcInstance to the L2PcInstance to update its HP bar
        StatusUpdate su = new StatusUpdate(getObjectId());
        su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
        su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
        player.sendPacket(su);
        su = null;
      }
     
View Full Code Here

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

          player.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(getObjectId());
          su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
          su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
          player.sendPacket(su);
          su = null;
        }
        else
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(getObjectId());
          su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
          su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
          player.sendPacket(su);
          su = null;
        }
        else
        {
View Full Code Here

     
      // update karma
      player.setKarma(newKarma);
     
      StatusUpdate su = new StatusUpdate(player.getObjectId());
      su.addAttribute(StatusUpdate.KARMA, newKarma);
      player.sendPacket(su);
      su = null;
     
      // Common character information
      SystemMessage sm = new SystemMessage(SystemMessageId.GM_S1);
View Full Code Here

   
    // Save the changed parameters to the database.
    player.store();
   
    StatusUpdate su = new StatusUpdate(player.getObjectId());
    su.addAttribute(StatusUpdate.CUR_HP, hpval);
    su.addAttribute(StatusUpdate.MAX_HP, player.getMaxHp());
    su.addAttribute(StatusUpdate.CUR_MP, mpval);
    su.addAttribute(StatusUpdate.MAX_MP, player.getMaxMp());
    su.addAttribute(StatusUpdate.CUR_CP, cpval);
    su.addAttribute(StatusUpdate.MAX_CP, player.getMaxCp());
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.