Package com.l2jfrozen.gameserver.network.serverpackets

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


    {
      getActiveChar().getOwner().sendMessage("Your pet has increased it's level.");
    }

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


      getActiveChar().getOwner().sendMessage("Your pet has increased it's level.");
    }

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

    // Send a Server->Client packet PetInfo to the L2PcInstance
View Full Code Here

    }

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

    // Send a Server->Client packet PetInfo to the L2PcInstance
    getActiveChar().getOwner().sendPacket(new PetInfo(getActiveChar()));
View Full Code Here

      if(totalHeal > 0)
        target.setLastHealAmount((int) totalHeal);

      StatusUpdate su = new StatusUpdate(target.getObjectId());
      su.addAttribute(StatusUpdate.CUR_HP, (int) target.getCurrentHp());
      target.sendPacket(su);
      su = null;

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("HP of the party has been balanced.");
View Full Code Here

      my = null;

      if(isAutoAttackable(player))
      {
        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))
      {
        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(getObjectId());
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

      }
    }
    getPlayer().sendPacket(new ItemList(getPlayer(), false));

    StatusUpdate su = new StatusUpdate(getPlayer().getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, getPlayer().getCurrentLoad());
    getPlayer().sendPacket(su);
   
    //on quests, always refresh inventory
    //InventoryUpdate u = new InventoryUpdate();
    //u.addItem(item);
View Full Code Here

      //  mp = target.getMaxMp() - target.getCurrentMp();
      //}
      target.setLastHealAmount((int) mp);
      target.setCurrentMp(mp + target.getCurrentMp());
      StatusUpdate sump = new StatusUpdate(target.getObjectId());
      sump.addAttribute(StatusUpdate.CUR_MP, (int) target.getCurrentMp());
      target.sendPacket(sump);

      if(actChar instanceof L2PcInstance && actChar != target)
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S2_MP_RESTORED_BY_S1);
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.