WoW:API GetBagName: Difference between revisions
Jump to navigation
Jump to search
GetBagName -Documentation by Arvenis-
(Version 1 of function description) |
mNo edit summary |
||
Line 22: | Line 22: | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Functions|GetBagName]] | |||
[[Category:API Container Functions|GetBagName]] | |||
[[Category:API Inventory Functions|GetBagName]] | [[Category:API Inventory Functions|GetBagName]] |
Revision as of 17:44, 29 August 2005
- 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.