[notabug] GetItemTotalCount returns 0 for BAG_VIRTUAL
Lua Code:
|
So this function returns 2 values ? Maybe more ? It's more than someone forget to update a doc.
|
So I tried this on the first item in my craftbag, rough oak. I did
Code:
AA,AB,AC = GetItemTotalCount(BAG_VIRTUAL,521) AB and AC are nil I couldn't find any instance of a second return, but it's not like the first return is correct for craftbag anyway... |
Quote:
0, nil, nil Tested with another item, same results. I can't get the function to return a valid count for me. Tested on PTS only so far. |
It works fine in my inventory, but I don't know what its issue is with that.
|
Quote:
|
I've semi-figured it out:
If you use it on an item in your inventory, it returns the number in your bank (if it's not in bank, returns inventory?). You use it in the craft bag, it returns the number in your inventory. You use it in the bank, it returns the number in your inventory. |
The code for this function is only targeting BAG_BACKPACK. It could rightly be called GetItemBackpackCount.
|
All times are GMT -6. The time now is 12:29 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI