WoW:API GetBagName: Difference between revisions
Jump to navigation
Jump to search
no edit summary
m (Corrected internal link.) |
No edit summary |
||
Line 18: | Line 18: | ||
;''Result'' | ;''Result'' | ||
: bagName will contain the name of the specified bag if the bag number is 0-4 otherwise it will be nil, unless when the bank is opened, in which case GetBagName(-1) (for the bank) is nil and GetBagName( | : bagName will contain the name of the specified bag if the bag number is 0-4 otherwise it will be nil, unless when the bank is opened, in which case GetBagName(-1) (for the bank) is nil and GetBagName(5) will give the name of the first bank bag, GetBagName(6) the name of the second bank bag, etc ... When coding, use the global variables (NUM_BAG_SLOTS, etc, ...) instead of hard coding these numbers, in case they change in the future. For details, see [[BagId]]. | ||
---- | ---- |