bug: api throws error when using ["bankoverflow"] => bool(true) to "Give Item" #1676
Open
1 task done
Labels
bug
Something isn't working
needs verification
Pending confirmation that the bug exists by another user.
Description
If you try to give an item to a player with a full inventory, and pass the ["bankoverflow"] => bool(true) to the api, the api responds with an error. Cheshire mentioned the error points to issues finding bank slots.
sent to api:
array(3) { ["itemid"]=> string(36) "41f04cd7-9d87-450d-ab41-80a918833f36" ["quantity"]=> string(1) "1" ["bankoverflow"]=> string(4) "true" }
Of course, the character had open bank slots and the item was able to be banked.
Steps to Reproduce
Actual result: the api throws an error
Expected result: the api should respond with "item given successfully" or "failed to give item"
Version with bug
v0.7.1.079
Last version that worked well
unknown
Affected platforms
Windows, I was not able test on other platforms
Did you find any workaround?
No, I cannot give an item and have it overflow into the player's bank.
Relevant log output
API Response:
Stack trace
Duplicate Bug Check
The text was updated successfully, but these errors were encountered: