Jump to content
  • 0

Freight Warehouse problem


Question

Posted

I don't know if i post to the right section but pls if someone can help me. I have a problem in my interlude pack the last revision l2jserver the freight warehouse deposit it's not working every time when i try to deposit someting in Freight Warehouse it gives me this error in GAMESERVER CONSOLE. Error depositing a warehouse object for char BLABLA ( validity check ) pls if someone can help plss.

 

 

SCREENSHOT:

 

freighterror.jpg

 

Recommended Posts

  • 0
Posted

Server is running very good but i have oly theat problem i can use the normal GK only the freight system i can't use it gives me theat problem.

  • 0
Posted
        // Freight price from config or normal price per item slot (30)
	int fee = _count * 30;
	int currentAdena = player.getAdena();
        int slots = 0;

	for (int i = 0; i < _count; i++)
	{
		int objectId = _items[i * 2 + 0];
		int count = _items[i * 2 + 1];

		// Check validity of requested item
		L2ItemInstance item = player.checkItemManipulation(objectId, count, "deposit");
            if (item == null)
            {
            	_log.warning("Error depositing a warehouse object for char "+player.getName()+" (validity check)");
            	_items[i * 2 + 0] = 0;
            	_items[i * 2 + 1] = 0;
            	continue;
            }

            if ((warehouse instanceof ClanWarehouse) && !item.isTradeable() || item.getItemType() == L2EtcItemType.QUEST) return;
            // Calculate needed adena and slots
            if (item.getItemId() == 57) currentAdena -= count;
            if (!item.isStackable()) slots += count;
            else if (warehouse.getItemByItemId(item.getItemId()) == null) slots++;
	}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..