WoW:API GetBagName: Difference between revisions

m
Move page script moved page API GetBagName to WoW:API GetBagName without leaving a redirect
m (Corrected internal link.)
m (Move page script moved page API GetBagName to WoW:API GetBagName without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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(6) will give the name of the first bank bag, GetBagName(7) the name of the second bank bag, etc ...
: 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]].


----
----
Anonymous user