Problem On enter world

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

Problem On enter world

Post 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.
So What?????
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Problem On enter world

Post 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.
Image
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

Re: Problem On enter world

Post by disorder35 »

thank you for your reply I fixed it.
So What?????
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Problem On enter world

Post by SolidSnake »

No problem ^^
Image
Post Reply