CharInfo and UserInfo packet adjustments.
Thanks to nasseka.
This commit is contained in:
@@ -128,7 +128,7 @@ public class CharInfo implements IClientOutgoingPacket
|
||||
|
||||
packet.writeH(_player.getRace().ordinal()); // Confirmed
|
||||
packet.writeC(_player.getAppearance().isFemale() ? 0x01 : 0x00); // Confirmed
|
||||
packet.writeD(_player.getBaseClass()); // Confirmed
|
||||
packet.writeD(_player.getBaseTemplate().getClassId().getRootClassId().getId());
|
||||
|
||||
for (int slot : getPaperdollOrder())
|
||||
{
|
||||
@@ -241,7 +241,7 @@ public class CharInfo implements IClientOutgoingPacket
|
||||
packet.writeD(_player.getTransformationDisplayId()); // Confirmed
|
||||
packet.writeD(_player.getAgathionId()); // Confirmed
|
||||
|
||||
packet.writeC(0x00); // TODO: Find me!
|
||||
packet.writeC(0x00); // nPvPRestrainStatus
|
||||
|
||||
packet.writeD((int) Math.round(_player.getCurrentCp())); // Confirmed
|
||||
packet.writeD(_player.getMaxHp()); // Confirmed
|
||||
@@ -249,7 +249,8 @@ public class CharInfo implements IClientOutgoingPacket
|
||||
packet.writeD(_player.getMaxMp()); // Confirmed
|
||||
packet.writeD((int) Math.round(_player.getCurrentMp())); // Confirmed
|
||||
|
||||
packet.writeC(0x00); // TODO: Find me!
|
||||
packet.writeC(0x00); // cBRLectureMark
|
||||
|
||||
final Set<AbnormalVisualEffect> abnormalVisualEffects = _player.getEffectList().getCurrentAbnormalVisualEffects();
|
||||
packet.writeD(abnormalVisualEffects.size() + (_gmSeeInvis ? 1 : 0)); // Confirmed
|
||||
for (AbnormalVisualEffect abnormalVisualEffect : abnormalVisualEffects)
|
||||
|
@@ -20,7 +20,6 @@ import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
import org.l2jmobius.gameserver.data.xml.ExperienceData;
|
||||
import org.l2jmobius.gameserver.enums.AttributeType;
|
||||
import org.l2jmobius.gameserver.enums.ClassId;
|
||||
import org.l2jmobius.gameserver.enums.UserInfoType;
|
||||
import org.l2jmobius.gameserver.instancemanager.CursedWeaponsManager;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
@@ -153,7 +152,7 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
||||
packet.writeC(_player.isGM() ? 0x01 : 0x00);
|
||||
packet.writeC(_player.getRace().ordinal());
|
||||
packet.writeC(_player.getAppearance().isFemale() ? 0x01 : 0x00);
|
||||
packet.writeD(ClassId.getClassId(_player.getBaseTemplate().getClassId().getId()).getRootClassId().getId());
|
||||
packet.writeD(_player.getBaseTemplate().getClassId().getRootClassId().getId());
|
||||
packet.writeD(_player.getClassId().getId());
|
||||
packet.writeC(_player.getLevel());
|
||||
}
|
||||
|
Reference in New Issue
Block a user