Download
(14Kb)
Download
Updated: 08-23-13 12:51 PM
Pictures
File Info
Updated:08-23-13 12:51 PM
Created:08-14-11 01:50 AM
Downloads:2,023
Favorites:1
MD5:

LootPrice

Version: 2.04
by: Choonstertwo [More]

Description
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.

v2.04
  • Add localisations to CurseForge (the AddOn should actually work now!)

v2.02
  • Remove libraries from .pkgmeta

v2.01
  • Add license and readme
  • Add .gitattributes and .gitignore

v2.00
  • 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
    ChoonLib versions
  • 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.

[size="5"]v1.0 - Initial release[/size="5"]
  • AddOn created. Yay!
Optional Files (0)


Post A Reply Comment Options
Unread 09-15-13, 01:46 AM  
nickyjean
Premium Member
Premium Member

Forum posts: 284
File comments: 114
Uploads: 0
Another Suggestion

Hi,

I know you're still working on stuff and the patch just dropped but I had another suggestion if you wanted. Reagent Restocker has a nice Drag and Drop set up for things you are setting up to auto sell. It gave me an idea of a UI that would allow you to drag and drop from you bag.

If you ever decide to had a UI rather then just code, this might be a user friendly version. This would allow for a visual list and prices could be added there as well.

Still loving this addon. It gives me some many smiles when prospecting.
Report comment to moderator  
Reply With Quote
Unread 09-05-13, 01:24 PM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
I've mostly finished coding stuff for the new Sessions feature. I just need to add the new localisation phrases and the LDB plugin and test it to make sure it all works properly.

If anyone's interested, you can see all the recent changes I've made to the code on GitHub.
Report comment to moderator  
Reply With Quote
Unread 09-02-13, 10:14 AM  
nickyjean
Premium Member
Premium Member

Forum posts: 284
File comments: 114
Uploads: 0
Re: Re: Re: Re: This is awesome

Originally Posted by Choonstertwo

That's probably possible to do. Would you want actual buttons on your screen to start/stop a "session" or just slash commands?
I think an "/" command would be quickest, because I use an addon that turns any macro I want to a hot key.

But a button with an LDB option or mini map button would be more elegant almost like any other "Timer" type thing.
Last edited by nickyjean : 09-02-13 at 10:17 AM.
Report comment to moderator  
Reply With Quote
Unread 08-30-13, 04:08 AM  
vixyn
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
That's probably possible to do. Would you want actual buttons on your screen to start/stop a "session" or just slash commands?
You could, possibly, make and LDB display for this. Clicking the display on whatever LDB bar you use could start the tracking, clicking again could stop it. The display could also have a hover display showing the list of items on mouseover.

Something like Proculas (I just picked an addon to use for an example, I don't actually use Proculas. But, it does something vaguely similar).
Report comment to moderator  
Reply With Quote
Unread 08-30-13, 02:52 AM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
Re: Re: Re: This is awesome

Originally Posted by nickyjean
Originally Posted by Choonstertwo
Originally Posted by nickyjean
I am liking this a lot, I see some really potential for what can be used for this.

Enchanting, Prospecting and Milling can really get a benefit from this. If you would like some suggestions on expanding on this idea, let me know.
I'm open to suggestions, but I can't guarantee I'll add anything.
Yay, I get that. It can be overwhelming when people think outside of the scope. So let me give you an example of what I'm thinking of.

I get 2 stacks of Ghost Iron Ore. That is 8 options for prospecting. If I spent 112G on those ores and started prospecting, your addon, if my bag is empty will keep a running total of what I just prospected with the value that I believe they are worth.

What would be awesome is to have a start tracking button, then as I'm prospecting it runs the tally of only this information. Then you have a Stop Tracking Button, which would then display what you have done.

Looted the following:
Tiger Opal|quantity: 3|Total Value: 9G
Pandarian Garnet|Quantity: 4|Total Value: 12G
Sparkling Shards|Quantity: 10|Total Value: 35G
Sunstone|Quantity: 2|Total Value: 10G
Lapis Lazuli|Quantity: 1|Total Value: 5G
Alexandrite|Quantity: 1|Total Value: 5G
Vermilion Onyx|Quantity: 1|Total Value: 65G
Roguestone|Quantity: 1|Total Value: 3G
Total Amount Received: 144G

Then I would look at this and go YAY profit.

The thing I really like about this is as an enchanter you can do the same things when running old dungeons for stuff like phoenix mounts and such. Even if you are just partied with an enchanter, you can DE drops even if that Enchanter isn't in that dungeon.

As I mentioned I realize this is out of the scope of how this addon started but my mind is always bigger then reality and I have no development skill (barely html) but I'm all abut awesome addons. So even if you don't feel like expanding this addon beyond what you have maybe you could pass the idea along or know of something that already does it.
That's probably possible to do. Would you want actual buttons on your screen to start/stop a "session" or just slash commands?
Report comment to moderator  
Reply With Quote
Unread 08-29-13, 10:55 PM  
nickyjean
Premium Member
Premium Member

Forum posts: 284
File comments: 114
Uploads: 0
Re: Re: This is awesome

Originally Posted by Choonstertwo
Originally Posted by nickyjean
I am liking this a lot, I see some really potential for what can be used for this.

Enchanting, Prospecting and Milling can really get a benefit from this. If you would like some suggestions on expanding on this idea, let me know.
I'm open to suggestions, but I can't guarantee I'll add anything.
Yay, I get that. It can be overwhelming when people think outside of the scope. So let me give you an example of what I'm thinking of.

I get 2 stacks of Ghost Iron Ore. That is 8 options for prospecting. If I spent 112G on those ores and started prospecting, your addon, if my bag is empty will keep a running total of what I just prospected with the value that I believe they are worth.

What would be awesome is to have a start tracking button, then as I'm prospecting it runs the tally of only this information. Then you have a Stop Tracking Button, which would then display what you have done.

Looted the following:
Tiger Opal|quantity: 3|Total Value: 9G
Pandarian Garnet|Quantity: 4|Total Value: 12G
Sparkling Shards|Quantity: 10|Total Value: 35G
Sunstone|Quantity: 2|Total Value: 10G
Lapis Lazuli|Quantity: 1|Total Value: 5G
Alexandrite|Quantity: 1|Total Value: 5G
Vermilion Onyx|Quantity: 1|Total Value: 65G
Roguestone|Quantity: 1|Total Value: 3G
Total Amount Received: 144G

Then I would look at this and go YAY profit.

The thing I really like about this is as an enchanter you can do the same things when running old dungeons for stuff like phoenix mounts and such. Even if you are just partied with an enchanter, you can DE drops even if that Enchanter isn't in that dungeon.

As I mentioned I realize this is out of the scope of how this addon started but my mind is always bigger then reality and I have no development skill (barely html) but I'm all abut awesome addons. So even if you don't feel like expanding this addon beyond what you have maybe you could pass the idea along or know of something that already does it.
Report comment to moderator  
Reply With Quote
Unread 08-29-13, 04:36 AM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
Re: This is awesome

Originally Posted by nickyjean
I am liking this a lot, I see some really potential for what can be used for this.

Enchanting, Prospecting and Milling can really get a benefit from this. If you would like some suggestions on expanding on this idea, let me know.
I'm open to suggestions, but I can't guarantee I'll add anything.
Report comment to moderator  
Reply With Quote
Unread 08-29-13, 04:31 AM  
nickyjean
Premium Member
Premium Member

Forum posts: 284
File comments: 114
Uploads: 0
This is awesome

I am liking this a lot, I see some really potential for what can be used for this.

Enchanting, Prospecting and Milling can really get a benefit from this. If you would like some suggestions on expanding on this idea, let me know.
Report comment to moderator  
Reply With Quote
Unread 08-14-11, 04:54 AM  
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 484
File comments: 23
Uploads: 4
Neat addon!

I could see where this could come in handy a LOT of the time!
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: