Advertisement
j311yf1sh

Untitled

Feb 1st, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local TSM = select(2, ...)
  2. local Util = TSM:NewModule("Util")
  3.  
  4. function Util:CheckTabAndGuild(Item)
  5. local Guild
  6. local Tab
  7. local ops = TSMAPI:GetItemOperation(TSMAPI:GetItemString(Item), "GuildSorter")
  8. print(ops)
  9. if (ops) then
  10. for _, operationName in pairs(ops) do
  11. TSMAPI:UpdateOperation("GuildSorter", operationName)
  12. Tab = TSM.operations[operationName].GBankTab
  13. Guild = TSM.operations[operationName].GBank
  14. print("Util "..Guild.." "..tostring(Tab))
  15. break
  16. end
  17. return Guild, Tab
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement