/i dark helmet (or try to spawn any other item)The item should drop to the ground when there is no space, note that without capacity this works properly
The item is not dropped on the map
Used Docker image provided in this repository
Simply use the Docker image provided in this repository
player:addItem method. It doesn't matter if you pass dropOnMap as true which is the default anyways24508912Comment these lines in iologindata.cpp
if (!player->inventory[CONST_SLOT_STORE_INBOX]) {
player->internalAddThing(CONST_SLOT_STORE_INBOX, Item::CreateItem(ITEM_STORE_INBOX));
}
If you have already created players you will need to delete item 26052 from all off them. Also, not sure if this might cause issues in modern clients, but yeah...
Some more info. Trading is also broken (if a player has no available slot to receive the item the trade still goes through and the item dissappears)
It seems to be that this commit broke it, due to Container now counting the 40 extra capacity of this new slot .
@EPuncker does this make sense?
Yeah, this makes sense. The fix would be to not iterate this container when getting free slots as it's special and not meant for normal items.
CONST_SLOT_LAST shouldn't probably be CONST_SLOT_STORE_INBOX, but AMMO like before.
I'll push a fix for this soon.
@nekiro Awesome, thanks for working on this!
Most helpful comment
Yeah, this makes sense. The fix would be to not iterate this container when getting free slots as it's special and not meant for normal items.
CONST_SLOT_LAST shouldn't probably be CONST_SLOT_STORE_INBOX, but AMMO like before.
I'll push a fix for this soon.