Package com.l2jfrozen.gameserver.network.serverpackets

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


            iu.addModifiedItem(player.getInventory().getAncientAdenaInstance());
            sendPacket(iu);

            // Update current load as well
            su = new StatusUpdate(player.getObjectId());
            su.addAttribute(StatusUpdate.CUR_LOAD, player.getCurrentLoad());
            sendPacket(su);

            showChatWindow(player, 9, "a", false);
          }
          break;
View Full Code Here


              iu.addModifiedItem(convertItem);
              sendPacket(iu);

              // Update current load as well
              su = new StatusUpdate(player.getObjectId());
              su.addAttribute(StatusUpdate.CUR_LOAD, player.getCurrentLoad());
              sendPacket(su);
            }
          }
          else
          {
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) getStatus().getCurrentHp());
      su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
      player.sendPacket(su);
      su = null;

      // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
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) getStatus().getCurrentHp());
      su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
      player.sendPacket(su);
      su = null;

      // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client
      player.sendPacket(new ValidateLocation(this));
View Full Code Here

        if(damage > 0)
          if(target.isSleeping())
            target.stopSleeping(null);

        StatusUpdate sump = new StatusUpdate(target.getObjectId());
        sump.addAttribute(StatusUpdate.CUR_MP, (int) target.getCurrentMp());
        target.sendPacket(sump);
        sump = null;

        SystemMessage sm = new SystemMessage(SystemMessageId.S2_MP_HAS_BEEN_DRAINED_BY_S1);
View Full Code Here

    }

    private void updateCurLoad()
    {
      StatusUpdate su = new StatusUpdate(_target.getObjectId());
      su.addAttribute(StatusUpdate.CUR_LOAD, _target.getCurrentLoad());
      _target.sendPacket(su);
      su = null;
    }

    private void updateCurMp()
View Full Code Here

    }

    private void updateCurMp()
    {
      StatusUpdate su = new StatusUpdate(_target.getObjectId());
      su.addAttribute(StatusUpdate.CUR_MP, (int) _target.getCurrentMp());
      _target.sendPacket(su);
      su = null;
    }

    private void grabSomeItems()
View Full Code Here

    {
      getActiveChar().getParty().recalculatePartyLevel(); // Recalculate the party level
    }

    StatusUpdate su = new StatusUpdate(getActiveChar().getObjectId());
    su.addAttribute(StatusUpdate.LEVEL, getLevel());
    su.addAttribute(StatusUpdate.MAX_CP, getMaxCp());
    su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
    su.addAttribute(StatusUpdate.MAX_MP, getMaxMp());
    getActiveChar().sendPacket(su);
    su = null;
View Full Code Here

      getActiveChar().getParty().recalculatePartyLevel(); // Recalculate the party level
    }

    StatusUpdate su = new StatusUpdate(getActiveChar().getObjectId());
    su.addAttribute(StatusUpdate.LEVEL, getLevel());
    su.addAttribute(StatusUpdate.MAX_CP, getMaxCp());
    su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
    su.addAttribute(StatusUpdate.MAX_MP, getMaxMp());
    getActiveChar().sendPacket(su);
    su = null;
View Full Code Here

    }

    StatusUpdate su = new StatusUpdate(getActiveChar().getObjectId());
    su.addAttribute(StatusUpdate.LEVEL, getLevel());
    su.addAttribute(StatusUpdate.MAX_CP, getMaxCp());
    su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
    su.addAttribute(StatusUpdate.MAX_MP, getMaxMp());
    getActiveChar().sendPacket(su);
    su = null;

    // Update the overloaded status of the L2PcInstance
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.