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++;
	}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock