Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 24 of 24
if (... your other conditions ...) then
if buyPrice ~= 0 and buyPrice < 40000 then
action = "buy"
reason = "testing (buy)"
elseif bidPrice < 40000 then
action = "bid"
reason = "testing (bid)"
end
end-- minimum profit for bidding
local bidMinProfitRel = 0.15
local bidMinProfitAbs = 5000
-- minimum profit for buying
local buyMinProfitRel = 0.30
local buyMinProfitAbs = 10000
-- if buyout is close enough to low enough bid, just buy it anyway
local buyMaxBidNear = 0.025
basePrice = 0
-- ...
-- calculate basePrice; also sets up a base reason such as "Disenchant" that may be appended to below
-- (if basePrice remains zero after this, then don't buy the item for any reason)
-- ...
-- account for AH cut
local resaleValue = basePrice * 0.95
if buyPrice ~= 0 and buyPrice <= resaleValue * (1 - buyMinProfitRel) and buyPrice <= resaleValue - buyMinProfitAbs then
action = "buy"
reason = reason .. " (buy)"
elseif bidPrice ~= 0 and bidPrice <= resaleValue * (1 - bidMinProfitRel) and bidPrice <= resaleValue - bidMinProfitAbs then
if buyPrice ~= 0 and bidPrice >= buyPrice * (1 - buyMaxBidNear) then
action = "buy"
reason = reason .. " (buy near bid)"
else
action = "bid"
reason = reason .. " (bid)"
end
endbasePrice = 0
-- ...
-- calculate basePrice; also sets up a base reason such as "Disenchant" that may be appended to below
-- (if basePrice remains zero after this, then don't buy the item for any reason)
-- ...
-- account for AH cut
local resaleValue = basePrice * 0.95-- calculate value of a stack of reagents based on
-- auctioneer data and price tables above
local getReagentValue = function(itemID, itemCount)
local base = baselinePrices[itemID]
local adjust = priceAdjustment[itemID] or 1
if not base then return nil end
local median, snapshot, snapshotCount = nil, nil, nil
local _, link = GetItemInfo(itemID)
if link then
local key = Auctioneer.ItemDB.CreateItemKeyFromLink(link)
if key then
median = Auctioneer.Statistic.GetItemHistoricalMedianBuyout(key)
snapshot, snapshotCount = Auctioneer.Statistic.GetItemSnapshotMedianBuyout(key)
end
end
median = median or base
snapshot = snapshot or base
snapshotCount = snapshotCount or 1
local snapshotWeight = 0
if snapshotCount >= 5 and snapshot < median then
snapshotWeight = math.log10(snapshotCount) / math.log10(50)
end
snapshotWeight = math.min(math.max(snapshotWeight, 0), 1)
local medianWeight = 1 - snapshotWeight
local combined = median * medianWeight + snapshot * snapshotWeight
return combined * adjust * itemCount
end
if (level > 66 and class =="Armor" or class == "Weapon") thenif ((level > 66 and class =="Armor") or class == "Weapon") thenif (level > 66 and (class =="Armor" or class == "Weapon")) thenPosted By: NemelisEhhh. Chardonay I know I'm repeating myself, but could you post your baserule on the wiki in the baserule-scratch. After reading this I really think having your baserule there could be an inspiration for a lot of stuff that people are (at least at what I'm) thinking on.
1 to 24 of 24