WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Ah Scam Addon (https://www.wowinterface.com/forums/showthread.php?t=34700)

Nobgul 08-30-10 10:27 PM

Ah Scam Addon
 
So normally I level professions when I hit 80 but I have decided to lvl tailloring and enchanting at the same time as I level the toon. I know there was a addon i saw a while ago that would warn you if you were going to buy something from the ah that was sold from a vendor. IE: recipes

Syxx 08-30-10 10:35 PM

Swindle Preventer is one.
It hasn't been updated though.

Jigain 08-31-10 01:09 AM

Auctioneer shows you if an item is sold by any vendors, and at what cost. It's also very handy for almost everything else AH-related.

Torhal 08-31-10 01:24 AM

You can also use Ackis Recipe List to find out what is vendor-bought without having to go to the AH.

Vlad 08-31-10 09:18 AM

Hehe, made a very simple "database" over items that can be sold on the auction house (that originate from vendors).

http://vlacula.no-ip.com/wow/ahripoff/AHRipoff_Data.lua

It is a LUA file that contain 3 global variable tables:
AHRipoff_IData -- item and npc id (["<item id>"]=<npc id>)
AHRipoff_VData -- npc id and their names, it supports locales so there are subtables containing each NPC name in each locale variety that Wowhead supports (["enUS"] = [["<npc id>"]="<npc name>", ...])
AHRipoff_ZData -- npc zone ([\"<npc id>\"]=<zone id>)

Have not had time to write an addon for this, but using this data it should be very efficient to check if an item is sold by a vendor or not.

For example, you open the auctionhouse and the addon only hooks tooltips when the AH frame is visible. Then by checking the item ID of the item that the mouse hovers, it can do a quick lookup in the table to find out if it's sold by a vendor or not. So far I've made it so that if the npc id is 0 that means either the vendor is unknown or that there are too many. Otherwise there is a npc id that again can be used for quick lookup using game locale and the npc id, to find the npc name and even their zone using the zone table. It's all direct lookups since the keys are unique ids, no "for" or "foreach" loops and saves lots of CPU cycles -yay!

I haven't implemented it yet, will wait for Cataclysm to enable addons. If you feel like using my data I don't mind at all. :)


All times are GMT -6. The time now is 04:47 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI