Not signed in (Sign In)
    • CommentAuthorLogon
    • CommentTimeOct 2nd 2008
     
    Ok so i have noticed that every server is so different for prices that its stupid. On One server i play on dream dust is ~75s each. on my main server your over paying if you spend more then ~12s. So what i want to work on (basicly my project to teach myself some LUA) is a module for auctioneer that will scan for each item, etc and post it in the WTF file. Sorta like the scan info, except make it use this info in place of the EnxConstants.lua

    I have edited the info by hand, but we do have people who know NOTHING of this stuff that use the addons so.... ya...

    What i am looking for is where in the code Auctioneers Scan & Record to WTF info is, so i can play with it a lil.

    Thanks
    Logon
    • CommentAuthorRockSlice
    • CommentTimeOct 2nd 2008
     
    To save to WTF, you need to have a SavedVariable declaration line in your toc. WoW will then store the contents of those global variables in a WTF file with the same name as your toc.

    eg. for your addon MyAddon, you'd have Addons\MyAddon\MyAddon.toc, which has the line:## SavedVariables: MyAddonDataThat will cause a file to be created at WTF\Account\<you>\SavedVariables\MyAddon.lua

    To store data in that file, just make sure you include it in the global variable MyAddonData (in this case)

    To make an AucAdv module, I recommend taking a look at the example module we have in Auc-Advanced\Modules\Auc-Util-Example. (keep in mind that to have a WTF file of its own, your module cannot be embedded)
    For data collection, AucAdv will call the lib.ScanProcessors.create(operation, itemData, oldData) function for any new auctions found. 'lib' in this case, is the subtable of AucAdvanced that holds all your module's functions.
World of Warcraft™ and Blizzard Entertainment™ are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.