question

armtechnologyinfo avatar image
armtechnologyinfo asked

Stacked Items in Inventory Legacy?

I didn't realize "granting" items repeatedly was a bad idea, i was using it to increase the item count. Now i reached the 1500 limit with all the stacked items, and don't know what to do. I can't even remove them manually, so i deleted my account and made a new test account(thankfully i found this issue before release)

In case this... somehow happens again, is there any way to manually remove these in script or something? One of my other devs also has 500 items. Or do they just disappear over time?

Player Inventory
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

If you want to manually remove inventory items in script, you could call GetUserInventory API (https://learn.microsoft.com/en-us/rest/api/playfab/admin/player-item-management/get-user-inventory?view=playfab-rest) to get all items in the player’s inventory, then call RevokeInventoryItems API (https://learn.microsoft.com/en-us/rest/api/playfab/admin/player-item-management/revoke-inventory-items?view=playfab-rest) with InstanceIds obtained from GetUserInventory API result to remove items. Also, Items in player’s inventory won’t automatically disappear overtime.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.