ReagentCost 1800.3

  • Removed Auctioneer from the Optional Dependencies section of our TOC file, as having it there forced Auctioneer to load on login. Now we observe whether Auctioneer is installed without loading it, and load it if it’s not loaded already when you open a tradeskill window (assuming you have showing costs in tradeskill windows enabled) or type /rc report.
  • If we can’t find compatible versions of Auctioneer, KC_Items, or AuctionMatrix installed, we don’t complain about it until you try to show a tradeskill window (assuming you have showing costs in tradeskill windows enabled) or use one of ReagentCost’s slash commands.

7 Responses to “ReagentCost 1800.3”

  1. Jonathan Roy Says:

    I’d like to request compatibility with wowecon.com as an alternative to the others. I recently just stopped using Auctioneer and Enchantrix in favor of theirs instead.

  2. Jonathan Roy Says:

    I went ahead and added support myself. 🙂 It seems to work great. Manually adding up the prices of each item in my smithing window, the expected cost was the same as the addon’s estimate cost in the trade window. Forgive lack of a true ./patch file please, don’t have those tools at home on my Windows box…

    Add WOWEcon_PriceMod into the .toc.

    For detection of the addon in FRC_OnLoad():

        elseif (WOWEcon_Enabled ~= nil) then
                FRC_PriceSource = "WOWEcon_PriceMod";
    

    Down in FRC_TypicalItemPrice:

        elseif (FRC_PriceSource == "WOWEcon_PriceMod") then
                return FRC_WOWEcon_PriceModItemPrice(itemLink);
    

    And finally the big function:

    function FRC_WOWEcon_PriceModItemPrice(itemLink)
        local medianPrice, medianCount, serverData = WOWEcon_GetAuctionPrice_ByLink(itemLink);
        if (medianCount == nil) then medianCount = 0 end
    
    local _, _, itemID  = string.find(itemLink, ".Hitem:(%d+):%d+:%d+:%d+.h%[[^]]+%].h");
    itemID = tonumber(itemID) or 0;
    
    local buyFromVendorPrice = 0;
    local sellToVendorPrice = 0;
    if (FRC_VendorPrices[itemID]) then
        buyFromVendorPrice = FRC_VendorPrices[itemID].b;
        sellToVendorPrice = FRC_VendorPrices[itemID].s;
    end
    
    if (sellToVendorPrice == 0) then
        sellToVendorPrice = WOWEcon_GetVendorPrice_ByLink(itemLink);
    end
    
    if (sellToVendorPrice == nil) then sellToVendorPrice = 0 end
    
    if (buyFromVendorPrice > 0) then
        return buyFromVendorPrice, -1; -- FRC_VendorPrices lists only the primarily-vendor-bought tradeskill items
    elseif (medianCount == 0 or medianPrice == nil) then
        return sellToVendorPrice * 3, 0; -- generally a good guess for auction price if we don't have real auction data
    else
        return medianPrice, math.floor((math.min(medianCount, MIN_SCANS) / MIN_SCANS) * 1000) / 10; 
    end
    

    end

  3. Jonathan Roy Says:

    The code got a bit messed up via html formatting, I forgot to use “pre” blocks or similar, sorry. 🙂 But hopefully it’s of use for you in version 1800.4!

  4. Anonymous dude Says:

    The way reagent cost calculates total cost by using other recipes creates a loop with alchemic transmutes (fire->earth->water->air->fire) making auctioneer put out a overflow error

  5. Enchanter Says:

    I keep getting an error message (v 1800.3) saying “Reagent cost is installed but non-functional; can’t find Auctioneer, KC_Items (with auction module) or AuctionMatrix.

    However, Auctioneer v 3.1.0.0526 is installed and turned on.

    Any ideas?

  6. Fredrick Stone Says:

    I use reagentcost regularly – however, I have a suggestion on how to improve the report it creates.

    As it is, I can list items with a certain expected profit. However, that is not nearly as useful as being able to know the expected profit margin.

    An example.

    I can make item A for 1G and sell for 1.15Gs on the average.
    
    I can make item B for 10s and sell for 25s on the average.
    

    In both cases the absolute profit per item is the same, 15s. However – item B is a vastly superior choice – I can make 10x B for the same cost as a single A but the total profit will be 1G50s, as opposed to just 15s.

    Another example- “/reagentcost report” listed an item with material cost of 47G and expected sale value of 48G, with an expected profit of 1G. Sounds fine, but as the profit margin is only 2%, it would be a waste of time and money to make this item…fluctuations in AH prices and the commission would mean a loss for me.

    What I would like to suggest is a new command, where I could get a list of items I can make with an expected profit percentage, with a reasonable default being maybe 25%.

    By looking at the profit margin (as a percentage of the material cost) as opposed to the absolute profit, the addon will be MUCH more useful for people trying to make items for profit.

  7. Gazmik Fizzwidget Says:

    Actually, you can already do this — the /rc minprofit command controls the cutoff for how profitable an item needs to be to get included in the report, and how the report is sorted. Typing /rc minprofit 10000 will list only items whose profit is at least1 gold (1 gold = 10000 copper) and sort the report by profit amount. Typing /rc minprofit 25% will list only items whose profit is at least 25% of materials cost and sort the report by profit margin.

To leave feedback on a Fizzwidget Industries product, visit us on Github. There you can report bugs, contribute enhancements, or just live on the bleeding edge.