<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: ReagentCost 10900.1</title>
	<atom:link href="http://fizzwidget.com/2006/01/03/gfw-reagentcost-10900-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://fizzwidget.com/2006/01/03/gfw-reagentcost-10900-1/</link>
	<description>Superior Gadget &#038; Doodad Emporium</description>
	<pubDate>Tue, 06 Jan 2009 11:56:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Gazmik Fizzwidget</title>
		<link>http://fizzwidget.com/2006/01/03/gfw-reagentcost-10900-1/#comment-560</link>
		<dc:creator>Gazmik Fizzwidget</dc:creator>
		<pubDate>Fri, 13 Jan 2006 21:05:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.fizzwidget.com/?p=120#comment-560</guid>
		<description>&lt;p&gt;Auctioneer has built-in controls for when it loads -- type &lt;code&gt;/auctioneer&lt;/code&gt; with nothing after it to see them.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Auctioneer has built-in controls for when it loads &#8212; type <code>/auctioneer</code> with nothing after it to see them.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: JAA</title>
		<link>http://fizzwidget.com/2006/01/03/gfw-reagentcost-10900-1/#comment-559</link>
		<dc:creator>JAA</dc:creator>
		<pubDate>Fri, 13 Jan 2006 20:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.fizzwidget.com/?p=120#comment-559</guid>
		<description>&lt;p&gt;I basically did the above already to get it to work, but I need to visit the AH once to get Auctioneer to load. Is there a code snipet to have it load Auctioneer on-demand?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I basically did the above already to get it to work, but I need to visit the AH once to get Auctioneer to load. Is there a code snipet to have it load Auctioneer on-demand?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: rsmozang</title>
		<link>http://fizzwidget.com/2006/01/03/gfw-reagentcost-10900-1/#comment-554</link>
		<dc:creator>rsmozang</dc:creator>
		<pubDate>Thu, 12 Jan 2006 23:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.fizzwidget.com/?p=120#comment-554</guid>
		<description>&lt;p&gt;The fix is easy.  just update ReagentCost.lua with the following:&lt;/p&gt;

&lt;p&gt;function FRC_AuctioneerItemPrice(itemLink)
    local itemID, randomProp, enchant, uniqID, name = EnhTooltip.BreakLink(itemLink);
    local itemKey = itemID..":"..randomProp..":"..enchant;
    local medianPrice, medianCount = Auctioneer.Statistic.GetUsableMedian(itemKey);
    if (medianPrice == nil) then
        medianPrice, medianCount = Auctioneer.Statistic.GetItemHistoricalMedianBuyout(itemKey);
    end
    if (medianCount == nil) then medianCount = 0 end&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;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
    if (Auctioneer.API.GetVendorSellPrice) then
        sellToVendorPrice = Auctioneer.API.GetVendorSellPrice(itemID) or 0;
    elseif (Auctioneer_BasePrices ~= nil and Auctioneer_BasePrices[itemID] ~= nil and Auctioneer_BasePrices[itemID].s ~= nil) then
        sellToVendorPrice = Auctioneer_BasePrices[itemID].s or 0;
    end
end&lt;/p&gt;

&lt;p&gt;if (buyFromVendorPrice &#62; 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
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;end&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The fix is easy.  just update ReagentCost.lua with the following:</p>

<p>function FRC_AuctioneerItemPrice(itemLink)
    local itemID, randomProp, enchant, uniqID, name = EnhTooltip.BreakLink(itemLink);
    local itemKey = itemID..&#8221;:&#8221;..randomProp..&#8221;:&#8221;..enchant;
    local medianPrice, medianCount = Auctioneer.Statistic.GetUsableMedian(itemKey);
    if (medianPrice == nil) then
        medianPrice, medianCount = Auctioneer.Statistic.GetItemHistoricalMedianBuyout(itemKey);
    end
    if (medianCount == nil) then medianCount = 0 end</p>

<p><pre><code>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
    if (Auctioneer.API.GetVendorSellPrice) then
        sellToVendorPrice = Auctioneer.API.GetVendorSellPrice(itemID) or 0;
    elseif (Auctioneer_BasePrices ~= nil and Auctioneer_BasePrices[itemID] ~= nil and Auctioneer_BasePrices[itemID].s ~= nil) then
        sellToVendorPrice = Auctioneer_BasePrices[itemID].s or 0;
    end
end</code></pre></p>

<p>if (buyFromVendorPrice &gt; 0) then
    return buyFromVendorPrice, -1; &#8212; FRC_VendorPrices lists only the primarily-vendor-bought tradeskill items
elseif (medianCount == 0 or medianPrice == nil) then
    return sellToVendorPrice * 3, 0; &#8212; generally a good guess for auction price if we don&#8217;t have real auction data
else
    return medianPrice, math.floor((math.min(medianCount, MIN_SCANS) / MIN_SCANS) * 1000) / 10; 
end
</p>

<p>end</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Gazmik Fizzwidget</title>
		<link>http://fizzwidget.com/2006/01/03/gfw-reagentcost-10900-1/#comment-528</link>
		<dc:creator>Gazmik Fizzwidget</dc:creator>
		<pubDate>Sat, 07 Jan 2006 19:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.fizzwidget.com/?p=120#comment-528</guid>
		<description>&lt;p&gt;ReagentCost and ShoppingList work with the newest "Release" version of Auctioneer, 3.2.0.0620 as it's numbered at http://auctioneeraddon.com/dl/. (The newer versions are "Beta" and "Unstable".) I'm looking into the issue and should have a fix by the time they're declared "Release".&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>ReagentCost and ShoppingList work with the newest &#8220;Release&#8221; version of Auctioneer, 3.2.0.0620 as it&#8217;s numbered at <a href="http://auctioneeraddon.com/dl/" rel="nofollow">http://auctioneeraddon.com/dl/</a>. (The newer versions are &#8220;Beta&#8221; and &#8220;Unstable&#8221;.) I&#8217;m looking into the issue and should have a fix by the time they&#8217;re declared &#8220;Release&#8221;.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://fizzwidget.com/2006/01/03/gfw-reagentcost-10900-1/#comment-524</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Sat, 07 Jan 2006 13:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.fizzwidget.com/?p=120#comment-524</guid>
		<description>&lt;p&gt;What version of Auctioneer is this designed to work with?&lt;/p&gt;

&lt;p&gt;Auctioneer is changing their internal structure and ReagentCost and Shopping List aren't working with the latest version of
Auctioneer.&lt;/p&gt;

&lt;p&gt;I'm trying to find the version of Auctioneer that does work so I can see if I can figure out how to fix the incompatibilites.&lt;/p&gt;

&lt;p&gt;Feel free to email me if my efforts would be useful.&lt;/p&gt;

&lt;p&gt;Brad&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What version of Auctioneer is this designed to work with?</p>

<p>Auctioneer is changing their internal structure and ReagentCost and Shopping List aren&#8217;t working with the latest version of
Auctioneer.</p>

<p>I&#8217;m trying to find the version of Auctioneer that does work so I can see if I can figure out how to fix the incompatibilites.</p>

<p>Feel free to email me if my efforts would be useful.</p>

<p>Brad</p>]]></content:encoded>
	</item>
</channel>
</rss>
