LootPrice records how many of an item you loot and displays the total value based on a price you set. This value is displayed both when you loot the item (off by default) and when you use the /lp display command.
You must add an item to the AddOn's database using the /lp add slash command for it to start recording the amount of the item you loot.
Slash command usage:
/lootprice or /lp command itemId price
spam on|off - Enable/disable price messages when looting an item
add itemId - Adds the item to the LootPrice database, allowing it to record how many you've looted.
set itemId XgYsZc - Sets the value of the item to the specified amount.
display itemId - Displays information for the item.
/lootpriceitemid or /lpitemid itemLink|itemName
Displays the itemId of the given item.
Note: Using the item's link will always return the correct itemId, but using the item's name may return the wrong itemId if there are multiple items with that name.
The original concept for LootPrice was outlined by Zelreth.
Add localisations to CurseForge (the AddOn should actually work now!)
Remove libraries from .pkgmeta
Add license and readme
Add .gitattributes and .gitignore
Move prefixprint and tabprint to start of file
Put LocaleSub in its own block with the localeTemp table
Change self:Print to prefixprint in CHAT_MSG_LOOT
"set" command now allows partial currency strings (e.g. 3g2c, 4s1c)
Other minor modifications to slash command handler
Fix "attempt to index a nil value" (core.lua:91
Add Italian and Portuguese locale files to TOC
Update TOC to 5.3, remove libraries, add author
Update for 5.3
Remove library dependencies
Add coloursub, prefixprint and tabprint functions similar to the old
Move local declarations inside functions where appropriate
Change slash command handlers to local functions instead of methods
Add GLOBALS comment for Mikk's FindGlobals script
[size="5"]v1.01 - Zelreth's requests[/size="5"]
Added an optional price message when looting an item in the DB (off by default)
Added the spam sub-command to /lootprice, allowing price messages when looting to be enabled/disabled.
Added a new slash command /lootpriceitemid (alias /lpitemid), which displays the itemId of the given item name or link.
Was initially going to be a sub-command of /lp, but it was too difficult to implement due to the spaces in some item names.
Moved the slash command help to its own function PrintHelp() so it can be easily called from both slash commands.