Language:
Diff     Change language:
Pastebin: 110622
Author: AnrDaemon
Subject: Fix/WA for AAMU-116
Created: 2009-03-21 05:55:10
Download and save
Toggle line numbers
1*** Auc-Util-AutoMagic/Auc-Util-AutoMagic.lua   Sat Mar 21 12:43:18 2009 
2--- Auc-Util-AutoMagic/Auc-Util-AutoMagic.lua   Sat Mar 21 12:48:33 2009 
3*************** 
4*** 363,380 **** 
5--- 363,385 ---- 
6    for k, v in pairs(autoselldata) do autoselldata[k] = nil; end --Reset table to ensure fresh data. 
7 
8    for id, column2 in pairs(lib.autoSellList) do 
9        if (id == nil) then return end 
10        local _, itemLink, _, _, _, _, _, _, _, _ = GetItemInfo(id) 
11+       if itemLink == nil then 
12+           -- lib.Print() not available at this point O.o 
13+           DEFAULT_CHAT_FRAME:AddMessage(("AutoMagic: Bad item \124cffff0000\124Hitem:%d:0:0:0:0:0:0:0:0\124h[id:%d]\124h\124r in AutoSell list. Hover over the link to get gata for the item."):format(id, id)) 
14+       else 
15            local abid,abuy = GetPrice(itemLink, nil, true) 
16            local   vendor = GetSellValue and GetSellValue(id) or 0 
17            table.insert(autoselldata,{ 
18                itemLink, --link form for mouseover tooltips to work 
19                vendor, 
20                tonumber(abuy) or tonumber(abid), 
21            }) 
22        end 
23+   end 
24        autosellframe.resultlist.sheet:SetData(autoselldata, style) --Set the GUI scrollsheet 
25 
26    for k, v in pairs(bagcontents) do bagcontents[k] = nil; end  --Reset table to ensure fresh data. 
27    for bag=0,4 do 
28        for slot=1,GetContainerNumSlots(bag) do 
29 
Thread:
[110622] Fix/WA for AAMU-116 by AnrDaemon at 2009-03-21 05:55:10
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.