m
→Example
No edit summary |
m (→Example) |
||
| Line 33: | Line 33: | ||
== Example == | == Example == | ||
/script DEFAULT_CHAT_FRAME:AddMessage(( | /script DEFAULT_CHAT_FRAME:AddMessage( (select(2, GetContainerItemInfo(1,1))) ) | ||
=== Result === | === Result === | ||
: This macro will print out the item count for the item located in slot 1 of bag 1. Different indices, instead of 2, can be used to slice out a specific return value. | : This macro will print out the item count for the item located in slot 1 of bag 1. Different indices, instead of 2, can be used to slice out a specific return value. | ||