Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.StatusUpdate.addAttribute()


    // Send the Server->Client packet StatusUpdate with current HP, MP and CP to this L2PcInstance
    StatusUpdate su = new StatusUpdate(getObjectId());
    su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
    su.addAttribute(StatusUpdate.CUR_MP, (int) getCurrentMp());
    su.addAttribute(StatusUpdate.CUR_CP, (int) getCurrentCp());
    su.addAttribute(StatusUpdate.MAX_CP, getMaxCp());
    sendPacket(su);
   
    // Check if a party is in progress and party window update is usefull
    if (isInParty() && (needCpUpdate(352) || super.needHpUpdate(352) || needMpUpdate(352)))
    {
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.