WoW:API GetLootSlotLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
return loot slot items link and tooltip
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
     for index = 1, GetNumLootItems(), 1 do
       if (LootSlotIsItem(index)) then
       if (LootSlotIsItem(index)) then
         local iteminfo = GetLootSlotInfo(index);
         local iteminfo = GetLootSlotLink(index);
         akz_AddFishLoot(GetMinimapZoneText(), itemid);
         ChatFrameEditBox:Insert(iteminfo);
       end
       end
     end     
     end     
iteminfo is info of items include name,itemid, enchant, subid
 


{{Template:WoW API}}
{{Template:WoW API}}

Revision as of 12:46, 7 February 2006

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    


Template:WoW API