Wikia

WoWWiki

API GetLootSlotLink

Talk0
101,385pages on
this wiki
Revision as of 18:08, January 6, 2007 by Hobinbot (Talk | contribs)

WoW API < GetLootSlotLink

Returns loot slot items link for input into chat frames or any textual display. The example below will insert the items link into your chat text box while you're typing. Note, this obviously doesn't work with Macro's as they clear your chat buffer.

   for index = 1, GetNumLootItems(), 1 do
     if (LootSlotIsItem(index)) then
       local iteminfo = GetLootSlotLink(index);
       ChatFrameEditBox:Insert(iteminfo);
     end
   end

Around Wikia's network

Random Wiki