Quantcast
Download
(4 Kb)
Download
Updated: 05/17/19 09:41 PM
Pictures
File Info
Compatibility:
Elsweyr (5.0.5)
Wrathstone (4.3)
Updated:05/17/19 09:41 PM
Created:05/17/19 09:41 PM
Monthly downloads:2,264
Total downloads:10,565
Favorites:33
MD5:
5.0.5
LibLootSummary  Popular! (More than 5000 hits)
Version: 1.0.0
by: silvereyes [More]
This library is intended to simplify outputting summaries of loot to ESO chat

To use in your addon
Simply add the following to your addon's manifest text file.
Code:
## DependsOn: LibLootSummary
Usage Example
Lua Code:
  1. -- If set to false, then successive calls to the Add*() methods for the same item id will
  2. -- be listed separately in the summary.  The default (true) causes the quantities to be
  3. -- summed and listed once in the summary.
  4. LibLootSummary:SetCombineDuplicates(false)
  5.  
  6. -- Use comma delimiters between items in the summary, instead of the default single space
  7. LibLootSummary:SetDelimiter(", ")
  8.  
  9. -- Use bracket style links
  10. LibLootSummary:SetLinkStyle(LINK_STYLE_BRACKETS)
  11.  
  12. -- Prefix to get prepended to every line of the summary
  13. local prefix = "MyAddon: "
  14. prefix = "|cFFFFFF" .. prefix -- set line color to white
  15. LibLootSummary:SetPrefix(prefix)
  16.  
  17. -- Suffix to get appended to the end of every line of the summary
  18. LibLootSummary:SetSuffix("|r") -- reset color to default
  19.  
  20. -- Reset all settings to defaults and remove all items from the pending summary.
  21. -- LibLootSummary:Print() calls this by default.
  22. LibLootSummary:Reset()
  23.  
  24. -- Add item from bag
  25. -- If quantity is nil, then the max stack size possible will be used
  26. LibLootSummary:AddItem(bagId, slotIndex, quantity)
  27.  
  28. -- Add 200x Ancestor Silk
  29. LibLootSummary:AddItemLink("|H1:item:64504:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", 200)
  30.  
  31. -- Add 1x Aetherial Dust
  32. LibLootSummary:AddItemId(115026, 1)
  33.  
  34. -- Output the entire summary to chat
  35. LibLootSummary:Print()
There have been no comments posted to this file.
Be the first to add one.



Category Jump: