Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function TSM:IterateToonAH(ITEM,CRAFTER)
- local Toons = CopyTable(TSM.db.factionrealm)
- local AuctionsTable
- -- print("I'm running")
- local CurrentItem = select(2,GetItemInfo(ITEM))
- local NextItemID = TSMAPI:GetItemID(CurrentItem)
- for Name in pairs(Toons) do
- --print(Name)
- AuctionsTable = TSMAPI:GetData("playerauctions", Name)
- --print(AuctionsTable)
- if AuctionsTable ~= nil then
- for ItemOn in pairs(AuctionsTable) do
- -- print("This Has Run")
- if ItemOn == NextItemID and TSM.db.global.TrackUndercuts == true then
- TSM:Print("Your Item of "..ITEM.." could possibly be undercut by "..CRAFTER)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement