CharSelection improvements for Classic Interlude.
This commit is contained in:
parent
cc23a72a50
commit
ee96d3d248
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model;
|
package org.l2jmobius.gameserver.model;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
|
||||||
import org.l2jmobius.gameserver.model.itemcontainer.PlayerInventory;
|
import org.l2jmobius.gameserver.model.itemcontainer.PlayerInventory;
|
||||||
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
import org.l2jmobius.gameserver.model.variables.PlayerVariables;
|
||||||
|
|
||||||
@ -321,9 +320,9 @@ public class CharSelectInfoPackage
|
|||||||
_sp = sp;
|
_sp = sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getEnchantEffect()
|
public int getEnchantEffect(int slot)
|
||||||
{
|
{
|
||||||
return _paperdoll[Inventory.PAPERDOLL_RHAND][2];
|
return _paperdoll[slot][2];
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReputation(int reputation)
|
public void setReputation(int reputation)
|
||||||
|
@ -176,11 +176,11 @@ public class CharSelectionInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(charInfoPackage.getPaperdollItemVisualId(slot));
|
packet.writeD(charInfoPackage.getPaperdollItemVisualId(slot));
|
||||||
}
|
}
|
||||||
|
|
||||||
packet.writeH(0x00); // Upper Body enchant level
|
packet.writeH(charInfoPackage.getEnchantEffect(Inventory.PAPERDOLL_CHEST)); // Upper Body enchant level
|
||||||
packet.writeH(0x00); // Lower Body enchant level
|
packet.writeH(charInfoPackage.getEnchantEffect(Inventory.PAPERDOLL_LEGS)); // Lower Body enchant level
|
||||||
packet.writeH(0x00); // Headgear enchant level
|
packet.writeH(charInfoPackage.getEnchantEffect(Inventory.PAPERDOLL_HEAD)); // Headgear enchant level
|
||||||
packet.writeH(0x00); // Gloves enchant level
|
packet.writeH(charInfoPackage.getEnchantEffect(Inventory.PAPERDOLL_GLOVES)); // Gloves enchant level
|
||||||
packet.writeH(0x00); // Boots enchant level
|
packet.writeH(charInfoPackage.getEnchantEffect(Inventory.PAPERDOLL_FEET)); // Boots enchant level
|
||||||
|
|
||||||
packet.writeD(charInfoPackage.getHairStyle());
|
packet.writeD(charInfoPackage.getHairStyle());
|
||||||
packet.writeD(charInfoPackage.getHairColor());
|
packet.writeD(charInfoPackage.getHairColor());
|
||||||
@ -193,7 +193,7 @@ public class CharSelectionInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(charInfoPackage.getClassId());
|
packet.writeD(charInfoPackage.getClassId());
|
||||||
packet.writeD(i == _activeId ? 1 : 0);
|
packet.writeD(i == _activeId ? 1 : 0);
|
||||||
|
|
||||||
packet.writeC(charInfoPackage.getEnchantEffect() > 127 ? 127 : charInfoPackage.getEnchantEffect());
|
packet.writeC(charInfoPackage.getEnchantEffect(Inventory.PAPERDOLL_RHAND) > 127 ? 127 : charInfoPackage.getEnchantEffect(Inventory.PAPERDOLL_RHAND));
|
||||||
packet.writeD(charInfoPackage.getAugmentation() != null ? charInfoPackage.getAugmentation().getOption1Id() : 0);
|
packet.writeD(charInfoPackage.getAugmentation() != null ? charInfoPackage.getAugmentation().getOption1Id() : 0);
|
||||||
packet.writeD(charInfoPackage.getAugmentation() != null ? charInfoPackage.getAugmentation().getOption2Id() : 0);
|
packet.writeD(charInfoPackage.getAugmentation() != null ? charInfoPackage.getAugmentation().getOption2Id() : 0);
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ public class CharSelectionInfo implements IClientOutgoingPacket
|
|||||||
packet.writeD(charInfoPackage.getVitalityItemsUsed()); // Remaining vitality item uses
|
packet.writeD(charInfoPackage.getVitalityItemsUsed()); // Remaining vitality item uses
|
||||||
packet.writeD(charInfoPackage.getAccessLevel() == -100 ? 0x00 : 0x01); // Char is active or not
|
packet.writeD(charInfoPackage.getAccessLevel() == -100 ? 0x00 : 0x01); // Char is active or not
|
||||||
packet.writeC(charInfoPackage.isNoble() ? 0x01 : 0x00);
|
packet.writeC(charInfoPackage.isNoble() ? 0x01 : 0x00);
|
||||||
packet.writeC(Hero.getInstance().isHero(charInfoPackage.getObjectId()) ? 0x01 : 0x00); // Hero glow
|
packet.writeC(Hero.getInstance().isHero(charInfoPackage.getObjectId()) ? 0x02 : 0x00); // Hero glow
|
||||||
packet.writeC(charInfoPackage.isHairAccessoryEnabled() ? 0x01 : 0x00); // Show hair accessory if enabled
|
packet.writeC(charInfoPackage.isHairAccessoryEnabled() ? 0x01 : 0x00); // Show hair accessory if enabled
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user