Page 1 of 1
Problem On enter world
Posted: Fri Aug 13, 2010 4:45 am
by disorder35
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number: 4392
L2JDP Revision
Number: 7634
When char enter the game he get all of its items removed, armor, jewels, belts, weapons, etc. Also if you have you on jewels, belts, weapons, etc and you unequip any part of the armor all the equipped items will be removed.
Can Anybody help me fix that problem?
Thank you in advance.
Re: Problem On enter world
Posted: Fri Aug 13, 2010 9:38 am
by SolidSnake
go to l2jserver\gameserver\model\actor\instance\L2PcInstance.java
Find and check this code:
Code: Select all
public void checkItemRestriction() { for (int i = 0; i < Inventory.PAPERDOLL_TOTALSLOTS; i++) { L2ItemInstance equippedItem = getInventory().getPaperdollItem(i); if (equippedItem != null && !equippedItem.getItem().checkCondition(this, this, false)) { getInventory().unEquipItemInSlotAndRecord(i); InventoryUpdate iu = new InventoryUpdate(); iu.addModifiedItem(equippedItem); sendPacket(iu); if (equippedItem.isWear()) continue; // prevent double message for two-hand weapons if (i == Inventory.PAPERDOLL_LRHAND) continue; SystemMessage sm = null; if (equippedItem.getItem().getBodyPart() == L2Item.SLOT_BACK) { sendPacket(new SystemMessage(SystemMessageId.CLOAK_REMOVED_BECAUSE_ARMOR_SET_REMOVED)); return; } if (equippedItem.getEnchantLevel() > 0) { sm = new SystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED); sm.addNumber(equippedItem.getEnchantLevel()); sm.addItemName(equippedItem); } else { sm = new SystemMessage(SystemMessageId.S1_DISARMED); sm.addItemName(equippedItem); } sendPacket(sm); } } }
The problem should be there.
EDIT: Ah and this problem is caused by your Town War Event..I recommend u to remove it.
Re: Problem On enter world
Posted: Wed Aug 18, 2010 6:25 am
by disorder35
thank you for your reply I fixed it.
Re: Problem On enter world
Posted: Wed Aug 18, 2010 8:30 am
by SolidSnake
No problem ^^