Download
(9Kb)
Download
Updated: 09-28-07 12:42 PM
Pictures
File Info
Updated:09-28-07 12:42 PM
Created:unknown
Downloads:23,117
Favorites:41
MD5:

ShowItemPrice  Popular! (More than 5000 hits)

Version: 1.2
by: RaeVanMorlock [More]

Notice: I no longer plan to work on this addon. As I got further into the game, more and more I wanted to know the price of every item while out in the field rather than waiting to go back to town in order to record it--and there are many alternatives that already come with prerecorded lists.

This is a light-weight addon that allows players to view the sell price of any item that they've previously seen the price of.

Please Note: Prices are gathered when visiting a merchant, so you must first have an item in your inventory (one of your bags) and then open a merchant window in order for the price to be recorded and displayed. WoW does not provide prices for items that are equipped, in the mail, in the bank, or anywhere else.

Features

  • Author-Friendly Around half of the code is documentation to explain how things work so that people can learn from it. I also revamp the code with every new addition in order to include better standards and ways of doing things.
  • Collector-Friendly Most similar addons include a bulky list of pre-generated item prices that will likely never change. You may never even see half of these items, but they will reside in memory anyhow. My addon does not supply such a list--as you visit the vendor, it will create its own list based on the items in your bag so that the addon will grow and expand as you do.
  • Compatibility My addon uses standard hooking techniques, does not replace any default UI elements, and uses Blizzard's own code for displaying an item's price. Moreover, if another addon does replace any of the standard tooltips, it can call ShowItemPrice.HookTooltip(<GameTooltipObjectRef>) to ensure compatibility.
  • Configuration-Free There's nothing to configure. Just visit a vendor and prices are automatically recorded. When you leave, those prices will still be available to you--anywhere! ShowItemPrice will also keep you up-to-date on what it's doing by providing short messages in the default chat window.
  • Minimalistic My addon uses a minimal amount of code to achieve its results. Even with the extensive documentation, it's around half the size of similar addons and a tenth the size of addons that use 3rd party libraries.
  • View Prices Anywhere Whether you're searching through your bags, viewing your equipment, clicking an item link in the chat, or anywhere else that items are displayed, my addon will add the item's sale price to the item's tooltip.
Importing Data From Other Addons

ShowItemPrice supports importing data from other addons in order to ease the transition for people that want to change addons without losing all the item prices they've accrued. In order for ShowItemPrice to see the other Addon's data, both addons must be enabled at the same time. If successful, a message similar to "[ShowItemPrice] Loaded <x> items from <addon>" will be displayed in the chat log.

List of supported addons:+ This addon stores prices by ID and ShowItemPrice stores by name. WoW only allows conversion for items that you've seen so ShowItemPrice may not be able to load all of the addon's prices.

There's currently a bug when importing items that have suffixes ("of the ___"). The non-suffixed version of the name will be imported, but that won't match the suffixed version so the price won't be displayed. (Submitted by: Polarina)

Contact me if you'd like to see another addon added to this list.
Changelog


Version 1.2
  • New! Data from ItemsDB_VendorPrices, MonetaryValue, SellFish, and Valuation can now be imported.
  • New! Prices will be added to all item tooltips, not just when viewing items in your inventory (equipment, merchants, item links, etc all work now). Moreover, when viewing items in your inventory, it will still calculate the price of the stack.
  • Fixed! The item price no longer disappears from the tooltip.
  • Removed! Items with no recorded sell price no longer have red borders. The code was very buggy and inaccurate.
Version 1.1
IMPORTANT NOTE: Although I tested the new addon extensively, I recommend that you backup your Saved Variables before running the new version.
  • New! Overhauled all the code. All functions and variables are now members of the global variable ShowItemPrice and all saved variables are now in the table ShowItemPrice_SavedVars
  • New! Added a SendMessage() function that's used to report when the addon loads, when a new item is added to the table, and when an item's price is updated in the table
  • New! Added functionality to import item prices from ShowItemPrice v1.0 and from SellValues. If you'd like support added for loading data from another addon, let me know.
  • New! Item prices now account for an item's durability. When storing an item's price, the addon will store the price of the item with full durability -- when displaying the item's price, the addon will display the current sale price (normal price minus repair costs). (NOTE: This has not yet been tested for broken items.)
  • New! Items in your inventory that have not yet been added to the addon's price table will have a red border.
  • New! Added a framework for localizing the addon (though it is currently only available in English).

Optional Files (0)


Post A Reply Comment Options
Unread 04-16-07, 04:18 PM  
zorched
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
What's different?

How does this addon compare with ItemDataCache, besides the fact that it does not include a static initial price database and does not have Informant integration?
Report comment to moderator  
Reply With Quote
Unread 04-16-07, 04:23 PM  
Ahm
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 64
Uploads: 6
Re: What's different?

Originally posted by zorched
How does this addon compare with ItemDataCache, besides the fact that it does not include a static initial price database and does not have Informant integration?
I've never used ItemDataCache so I couldn't tell ya.
Report comment to moderator  
Reply With Quote
Unread 09-09-07, 05:11 PM  
stealthgod
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Valuation

Would be nice if there was a way to port the item stuff from valuation into your library.
not all info just the Money part, i like valuation but yours is Simple....and i like that.
Report comment to moderator  
Reply With Quote
Unread 09-28-07, 02:35 PM  
Polarina
A Theradrim Guardian
AddOn Author - Click to view AddOns

Forum posts: 63
File comments: 12
Uploads: 2
-- Valuation stores its prices in a sequential array of bytes (a string)
-- The process is very complex (documented below) so I'm including
-- a modified version of the function that it uses to get the prices
-- out of the string in order to do it myself
I had plans to make it consume less memory (and increase the complexity).
Report comment to moderator  
Reply With Quote
Unread 09-28-07, 02:47 PM  
Ahm
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 64
Uploads: 6
Originally posted by Polarina
I had plans to make it consume less memory (and increase the complexity).
Haha, well, I'll just have to update my addon when you do.
Report comment to moderator  
Reply With Quote
Unread 09-28-07, 03:01 PM  
Polarina
A Theradrim Guardian
AddOn Author - Click to view AddOns

Forum posts: 63
File comments: 12
Uploads: 2
Originally posted by RaeVanMorlock
Haha, well, I'll just have to update my addon when you do.
On the other hand, why do you store items by name rather than their ID?
Report comment to moderator  
Reply With Quote
Unread 09-28-07, 03:11 PM  
Ahm
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 64
Uploads: 6
Originally posted by Polarina
On the other hand, why do you store items by name rather than their ID?
No real reason--when I first made the addon, I didn't know as much about item links and IDs and so I chose to go with the name. And since the addon is available for people to use as a learning resource, it's also a bit easier to see a list of names and prices in the saved variables file than to see just a bunch of numbers.

However, I probably will change over to item IDs in a future release. I started to do it for this one, but, in order to ensure compatibility, I'd need to keep a second database of those items that were previously stored by name and have an unknown ID (WoW would only tell me the IDs of about half the items that I queried--presumably because the rest hadn't been seen yet). And since that got complicated and I wanted to get this release out as soon as possible (since the addon was broken by the new patch), I decided to hold off on it.
Report comment to moderator  
Reply With Quote
Unread 10-05-07, 07:22 AM  
Frigidman
A Kobold Labourer

Forum posts: 1
File comments: 46
Uploads: 0
I really like this mod. Mainly because its simple. I tried Informant, and hell... all that garbage it spews into the tooltip just so I can see what some junk sells for at a merchant, was overwhelming. Despite being able to turn various elements off... reducing it to just showing the merchat buy price was still cluttered and difficult to scan.

The only glitch I run across with this mod, is that I may have bought something while AT a merchant (or crafted something new), and it doesnt store the price for the item until I close the merchant and re-talk to the guy.

Just one glitch... however one thing that I kind of absent mindedly forget: sometimes talking with a trainer or other npc, I hover over items in my inventory and see a sell price, and thing "oh I can sell to this guy" ... LOL *ahem* ... thats only because of my own absentmindedness and nothing to do with the way this mod works lol.

Good job!
Report comment to moderator  
Reply With Quote
Unread 10-05-07, 05:20 PM  
Ahm
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 64
Uploads: 6
Originally posted by Frigidman
I really like this mod. Mainly because its simple. I tried Informant, and hell... all that garbage it spews into the tooltip just so I can see what some junk sells for at a merchant, was overwhelming. Despite being able to turn various elements off... reducing it to just showing the merchat buy price was still cluttered and difficult to scan.
Thank you!

I started this addon as just a way to start making addons... it was something simple and easy, and it didn't take too long. It's certainly grown since then, but I like it, and, of course, I still think it's the best one available.



Originally posted by Frigidman
The only glitch I run across with this mod, is that I may have bought something while AT a merchant (or crafted something new), and it doesnt store the price for the item until I close the merchant and re-talk to the guy.
Yeah, I know. It's a pain in the butt. The problem is that I have to register events to detect things like when you buy an item, and I just haven't gotten around to doing that yet. I'm trying to find time to work on this some more and release another big update, but I recently got a job working 8 hrs/day with about 2 hrs of travel... plus I have class that eats up the rest of Monday and Wednesday and homework to eat up my weekends. So I can't really promise anything right now.



Originally posted by Frigidman
Just one glitch... however one thing that I kind of absent mindedly forget: sometimes talking with a trainer or other npc, I hover over items in my inventory and see a sell price, and thing "oh I can sell to this guy" ... LOL *ahem* ... thats only because of my own absentmindedness and nothing to do with the way this mod works lol.
Hrm... interesting. I could probably figure out a way to maybe "dim" the money frame when you're not at a merchant. I think that would blend smoothly and help you out there. It would suck to go clicking on a stack of potions to sell them and then realize you just drank one instead.
Report comment to moderator  
Reply With Quote
Unread 10-06-07, 06:29 PM  
Frigidman
A Kobold Labourer

Forum posts: 1
File comments: 46
Uploads: 0
Originally posted by RaeVanMorlock
I'm trying to find time to work on this some more and release another big update, but I recently got a job working 8 hrs/day with about 2 hrs of travel... plus I have class that eats up the rest of Monday and Wednesday and homework to eat up my weekends. So I can't really promise anything right now.
Yeah, no problems there, I wasnt demanding anything, it was just something I have to remember to do (re-open a merchant to check for new items). Not too bad.

Originally posted by RaeVanMorlock
Hrm... interesting. I could probably figure out a way to maybe "dim" the money frame when you're not at a merchant. I think that would blend smoothly and help you out there. It would suck to go clicking on a stack of potions to sell them and then realize you just drank one instead.
Yeah, something to distiguish it, but I am getting much better now with paying attention to what I am doing LOL!!! But yeah, using up something you wanted to sell would be sorta bad hehe.
Report comment to moderator  
Reply With Quote
Unread 10-08-07, 08:45 AM  
Frigidman
A Kobold Labourer

Forum posts: 1
File comments: 46
Uploads: 0
--- edited out because of drunken foolishness ---

Last edited by Frigidman : 10-09-07 at 03:23 PM.
Report comment to moderator  
Reply With Quote
Unread 10-08-07, 05:06 PM  
Ahm
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 64
Uploads: 6
Originally posted by Frigidman
Had the problem show up again, and ChatSounds was OFF when it did. So its clear its not ChatSounds. So readers of this mod should not be worried !!!

...

Ummm.... did you post in the wrong place? Doesn't sound like any of that has anything to do with ShowItemPrice.
Report comment to moderator  
Reply With Quote
Unread 10-09-07, 03:23 PM  
Frigidman
A Kobold Labourer

Forum posts: 1
File comments: 46
Uploads: 0
Originally posted by RaeVanMorlock
Ummm.... did you post in the wrong place? Doesn't sound like any of that has anything to do with ShowItemPrice.
LOL... yeah, youre right. HTF did that post get posted here?!?!

Erg.

Maybe it was cause I open a ton of tabs at once, and responded to one that wasnt the last tab I opened, and this site code thought I was still on that last one when I posted. OR, an easier explanation: I was too drunk from brewfest and wasn't paying attention. I will edit out the post below... sorry.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: