[DiscordArchive] can anyone tell me a way to check player's free inventory slots?
[DiscordArchive] can anyone tell me a way to check player's free inventory slots?
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:14:45.111000+00:00
Original source
can anyone tell me a way to check player's free inventory slots?
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:15:55.707000+00:00
Original source
I want to make a gossip menu with item rewards, but I need to check if player have a free space in inventory before giving him the item because it is just one time option
Archived author: Rochet2 • Posted: 2019-04-19T19:32:26.004000+00:00
Original source
<@477468968559443999> Look around the core. Its something like this
```cpp
uint32 itemId = 123;
uint32 itemCount = 1;
uint32 noSpaceForCount = 0;
ItemPosCountVec dest;
InventoryResult msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, itemCount, &noSpaceForCount);
if (msg != EQUIP_ERR_OK)
itemCount -= noSpaceForCount;
if (itemCount == 0 || dest.empty())
return;
```
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:16.850000+00:00
Original source
Well I found your answer on ac-web
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:26.144000+00:00
Original source
Once again you saved my nerve system ;d
![[Image: unknown.png?ex=690c4f53&is=690afdd3&hm=4...d8c1ee6cd&]](https://cdn.discordapp.com/attachments/376457042392514560/568881923615752212/unknown.png?ex=690c4f53&is=690afdd3&hm=4fecbad867e5ba71a5df9d353a63f663c52b21b6f2d81dc70fc3bf4d8c1ee6cd&)
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:39.911000+00:00
Original source
![[Image: unknown.png?ex=690c4f53&is=690afdd3&hm=4...d8c1ee6cd&]](https://cdn.discordapp.com/attachments/376457042392514560/568881923615752212/unknown.png?ex=690c4f53&is=690afdd3&hm=4fecbad867e5ba71a5df9d353a63f663c52b21b6f2d81dc70fc3bf4d8c1ee6cd&)
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:42.425000+00:00
Original source
thanks