Advertisement
j311yf1sh

testy2

Jan 31st, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. function TSM:IterateToonAH(ITEM,CRAFTER)
  2.     local Toons = CopyTable(TSM.db.factionrealm)
  3.     local AuctionsTable
  4. --  print("I'm running")
  5.  
  6.     local CurrentItem = select(2,GetItemInfo(ITEM))
  7.     local NextItemID = TSMAPI:GetItemID(CurrentItem)
  8.     for Name in pairs(Toons) do
  9.         --print(Name)
  10.         AuctionsTable = TSMAPI:GetData("playerauctions", Name)
  11.         --print(AuctionsTable)
  12.         if AuctionsTable ~= nil then
  13.             for ItemOn in pairs(AuctionsTable) do
  14. --              print("This Has Run")
  15.                 if ItemOn == NextItemID and TSM.db.global.TrackUndercuts == true then
  16.                     TSM:Print("Your Item of "..ITEM.." could possibly be undercut by "..CRAFTER)
  17.                 end
  18.             end
  19.         end
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement