Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 48 of 48
if an auction has disappeared then
if pre-existing auctions at the same (or similar?) quantity and lower price have NOT disappeared then
it was probably canceled, ignore it
else
it was probably bought, do stuff
end
endPosted By: NineOr getting fancier, auto-undercut: undercut by sufficient amount to give x% chance of sale, based on past sales history. For this you'd need to remember the undercut amount used for each auction posted.
Posted By: KinesiaIt appears to _always_ be " of the " items if that helps.
Posted By: NineSo what I'm wondering is, would there be way for the scanner to tell stats modules when an auction was first/last seen so that I can just compare the times? It doesn't look like it tracks that information at the moment.
Index: Auc-Advanced/CoreScan.lua
===================================================================
--- Auc-Advanced/CoreScan.lua (revision 2972)
+++ Auc-Advanced/CoreScan.lua (working copy)
@@ -417,7 +417,7 @@
local statItem = {}
local statItemOld = {}
-local function processStats(operation, curItem, oldItem)
+local function processStats(operation, curItem, oldItem, idList)
if (curItem) then private.Unpack(curItem, statItem) end
if (oldItem) then private.Unpack(oldItem, statItemOld) end
if (operation == "create") then
@@ -437,6 +437,11 @@
end
end
end
+ -- If this is a new auction and not being filtered, assign it an id now
+ if (operation == "create" and idList) then
+ curItem[Const.ID] = private.GetNextID(idList)
+ statItem.id = curItem[Const.ID]
+ end
elseif curItem and bit.band(curItem[Const.FLAG] or 0, Const.FLAG_FILTER) == Const.FLAG_FILTER then
-- This item is a filtered item
operation = "filter"
@@ -633,8 +638,9 @@
end
scandata.image[itemPos] = clone(data)
else
- if (processStats("create", data)) then
- data[Const.ID] = private.GetNextID(idList)
+ if (processStats("create", data, nil, idList)) then
+ -- (nine) moved this to processStats, so that new auctions get an id BEFORE being passed to stats modules
+ -- data[Const.ID] = private.GetNextID(idList)
table.insert(scandata.image, clone(data))
newCount = newCount + 1
endfunction private.ValidateFactionAndRealm(faction, realm)
--print("ValidateFactionAndRealm got "..(faction or "nil")..","..(realm or "nil"))
if (not faction) or (faction == AucAdvanced.GetFaction()) then
faction = AucAdvanced.GetFactionGroup()
--print("ValidateFactionAndRealm adjusting faction to "..(faction or "nil"))
end
realm = realm or GetRealmName()
--print("ValidateFactionAndRealm returning "..(faction or "nil")..","..(realm or "nil"))
return faction, realm
endPosted By: Kinesiawe'll see if the problem comes back
1 to 48 of 48