Quantcast
Download
(4 Kb)
Download
Updated: 07/27/19 08:37 AM
Pictures
File Info
Compatibility:
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:07/27/19 08:37 AM
Created:05/17/19 09:41 PM
Monthly downloads:2,539
Total downloads:20,073
Favorites:43
MD5:
5.1.5
LibLootSummary  Popular! (More than 5000 hits)
Version: 1.0.1
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()
Version 1.0.1
- API bump for Update 23 Scalebreaker
- This version is compatible with both Update 22 Elsweyr and Update 23 Scalebreaker

Version 1.0.0
- Initial release
Archived Files (1)
File Name
Version
Size
Uploader
Date
1.0.0
4kB
05/17/19 09:41 PM


There have been no comments posted to this file.
Be the first to add one.



Category Jump: