Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.StatusUpdate


      su = null;
    }

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


    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);
    su = null;

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

  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);
    su = null;

    return true;
  }
View Full Code Here

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_CP_WILL_BE_RESTORED);
      sm.addNumber((int) cp);
      target.sendPacket(sm);
     
      target.setCurrentCp(cp + target.getCurrentCp());
      StatusUpdate sump = new StatusUpdate(target.getObjectId());
      sump.addAttribute(StatusUpdate.CUR_CP, (int) target.getCurrentCp());
      target.sendPacket(sump);
    }
  }
View Full Code Here

    if(cp > maxcp)
    {
      cp = maxcp;
    }
    getEffected().setCurrentCp(cp);
    StatusUpdate sump = new StatusUpdate(getEffected().getObjectId());
    sump.addAttribute(StatusUpdate.CUR_CP, (int) cp);
    getEffected().sendPacket(sump);
    return true;
  }
View Full Code Here

    if(mp > maxmp)
    {
      mp = maxmp;
    }
    getEffected().setCurrentMp(mp);
    StatusUpdate sump = new StatusUpdate(getEffected().getObjectId());
    sump.addAttribute(StatusUpdate.CUR_MP, (int) mp);
    getEffected().sendPacket(sump);
    return true;
  }
View Full Code Here

      sm = null;
      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);
    su = null;

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

      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

                                player.sendPacket(sm);
                        }
                }
                player.sendPacket(new ItemList(player, false));

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

                player.broadcastUserInfo();

                // Finally, give the tax to the castle...
View Full Code Here

      MyTargetSelected my = new MyTargetSelected(getObjectId(), player.getLevel() - getLevel());
      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
      player.sendPacket(new ValidateLocation(this));
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.StatusUpdate

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.