WoW:API GetContainerItemInfo: Difference between revisions

m
No edit summary
Line 33: Line 33:
== Example ==
== Example ==


  /script DEFAULT_CHAT_FRAME:AddMessage(({GetContainerItemInfo(1,1)} )[2])
  /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.
Anonymous user