Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.StatusUpdate$Attribute


        // Sync up exp with current level
        if (getExp() > getExpForLevel(getLevel() + 1) || getExp() < getExpForLevel(getLevel())) setExp(Experience.LEVEL[getLevel()]);

        if (levelIncreased) 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);

        // Send a Server->Client packet PetInfo to the L2PcInstance
        getActiveChar().getOwner().sendPacket(new PetInfo(getActiveChar()));
        // The PetInfo packet wipes the PartySpelled (list of active  spells' icons).  Re-add them
View Full Code Here


          getActiveChar().getClan().updateClanMember(getActiveChar());
          getActiveChar().getClan().broadcastToOnlineMembers(new PledgeShowMemberListUpdate(getActiveChar()));
        }
        if (getActiveChar().isInParty()) 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);

        // Update the overloaded status of the L2PcInstance
        getActiveChar().refreshOverloaded();
        // Update the expertise status of the L2PcInstance
View Full Code Here

    @Override
  public boolean addSp(int value)
    {
        if (!super.addSp(value)) return false;

        StatusUpdate su = new StatusUpdate(getActiveChar().getObjectId());
        su.addAttribute(StatusUpdate.SP, getSp());
        getActiveChar().sendPacket(su);

        return true;
    }
View Full Code Here

            player.sendPacket(sm);
            return;
        }

        // the player should know that he has less sp now :p
        StatusUpdate su = new StatusUpdate(player.getObjectId());
        su.addAttribute(StatusUpdate.SP, player.getSp());
        player.sendPacket(su);

        ItemList il = new ItemList(player, false);
        player.sendPacket(il);
View Full Code Here

      activeChar.sendPacket(iu);
    } else
      activeChar.sendPacket(new ItemList(activeChar, false));

    // status & user info
    StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
    activeChar.sendPacket(su);

    activeChar.broadcastUserInfo();

    L2World world = L2World.getInstance();
View Full Code Here

      else _target.sendPacket(new RecipeShopItemInfo(_player.getObjectId(), _recipeList.getId()));
    }

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

      _target.sendPacket(su);
    }

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

        // Send updated item list to the player
    if (playerIU != null) player.sendPacket(playerIU);
    else player.sendPacket(new ItemList(player, false));

    // Update current load status on player
    StatusUpdate su = new StatusUpdate(player.getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, player.getCurrentLoad());
    player.sendPacket(su);
  }
View Full Code Here

        if (newItem.getCount() > count) playerUI.addModifiedItem(newItem);
          else playerUI.addNewItem(newItem);
        targetPlayer.sendPacket(playerUI);

        // Update current load as well
        StatusUpdate playerSU = new StatusUpdate(targetPlayer.getObjectId());
        playerSU.addAttribute(StatusUpdate.CUR_LOAD, targetPlayer.getCurrentLoad());
        targetPlayer.sendPacket(playerSU);
      }
      else if (target instanceof PetInventory)
      {
        petIU = new PetInventoryUpdate();
View Full Code Here

      InventoryUpdate iu = new InventoryUpdate();
      iu.addRemovedItem(removedItem);

      owner.sendPacket(iu);

      StatusUpdate su = new StatusUpdate(owner.getObjectId());
      su.addAttribute(StatusUpdate.CUR_LOAD, owner.getCurrentLoad());
      owner.sendPacket(su);

      owner.broadcastUserInfo();

      L2World world = L2World.getInstance();
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.StatusUpdate$Attribute

Copyright © 2018 www.massapicom. 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.