WoW:API GetBagName

From AddOn Studio
Revision as of 04:57, 4 January 2006 by WoWWiki>Muert
Jump to navigation Jump to search
GetBagName -Documentation by Arvenis-

Arguments
(bag)
bag
number - number of the bag the item is in, 0 is your backpack, 1-4 are the four additional bags, numbered left to right.

Returns
bagName
bagName - the name of the specified bag (example "Green Woolen Bag")

Examples
local bagName = GetBagName(0);  
--Returns "Backpack"

Result
bagName will contain the name of the specified bag if the bag number is 0-4 otherwise it will be nil.

Template:WoW API