Forums WoW Modding Support Archives TrinityCore Discord Archives [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?

[DiscordArchive] can anyone tell me a way to check player's free inventory slots?

rektbyfaith
Administrator
0
04-19-2019, 07:14 PM
#1
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?
rektbyfaith
04-19-2019, 07:14 PM #1

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?

rektbyfaith
Administrator
0
04-19-2019, 07:15 PM
#2
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
rektbyfaith
04-19-2019, 07:15 PM #2

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

rektbyfaith
Administrator
0
04-19-2019, 07:32 PM
#3
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;
```
rektbyfaith
04-19-2019, 07:32 PM #3

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;
```

rektbyfaith
Administrator
0
04-19-2019, 07:33 PM
#4
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:16.850000+00:00
Original source

Well I found your answer on ac-web
rektbyfaith
04-19-2019, 07:33 PM #4

Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:16.850000+00:00
Original source

Well I found your answer on ac-web

rektbyfaith
Administrator
0
04-19-2019, 07:33 PM
#5
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:26.144000+00:00
Original source

Once again you saved my nerve system ;d
rektbyfaith
04-19-2019, 07:33 PM #5

Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:26.144000+00:00
Original source

Once again you saved my nerve system ;d

rektbyfaith
Administrator
0
04-19-2019, 07:33 PM
#6
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&]
rektbyfaith
04-19-2019, 07:33 PM #6

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&]

rektbyfaith
Administrator
0
04-19-2019, 07:33 PM
#7
Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:42.425000+00:00
Original source

thanks
rektbyfaith
04-19-2019, 07:33 PM #7

Archived author: MR.MUSTACHE • Posted: 2019-04-19T19:33:42.425000+00:00
Original source

thanks

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)