CharInfo and UserInfo packet adjustments.

Thanks to nasseka.
This commit is contained in:
MobiusDevelopment
2021-12-18 22:56:56 +00:00
parent 064b49a243
commit c273105f4e
42 changed files with 140 additions and 209 deletions

View File

@@ -129,7 +129,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())
{
@@ -242,7 +242,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
@@ -250,7 +250,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)

View File

@@ -19,7 +19,6 @@ package org.l2jmobius.gameserver.network.serverpackets;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
import org.l2jmobius.gameserver.data.xml.ExperienceData;
import org.l2jmobius.gameserver.enums.ClassId;
import org.l2jmobius.gameserver.enums.UserInfoType;
import org.l2jmobius.gameserver.instancemanager.CursedWeaponsManager;
import org.l2jmobius.gameserver.model.Party;
@@ -152,7 +151,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());
}