question

medanogames avatar image
medanogames asked

Playfab unable to find my items to consume

unknown.png

unknown.png (122.4 KiB)
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

·
medanogames avatar image
medanogames answered

Update:
Apparently instanceID and itemID are not the same.

Here is how I did it:
1. GetUserInventory

2. Loop trough the inventory and find the item by its itemID. Once you do set the temp string to the instanceID of that item. (I suggest breaking the loop once the item is found with "break;").

3. ConsumeItem by the temporary instanceID.

We should be able to consume the item by its itemID. This doesn't seem that performant because we make 2 api calls while otherwise we'd only make 1.

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.