Package com.l2jfrozen.gameserver.network.serverpackets

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


    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


  {
    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

      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);
    }
  }

  @Override
View Full Code Here

    {
      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

    {
      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

      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

    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);
  }

  @Override
  public String getType()
View Full Code Here

                        }
                }
                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

      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

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.