comparison Modules/Queue.lua @ 89:a12d22ef3f39

AceSerializer has been enabled again as it?s used when exporting/importing groups. All other unused libraries are now really removed. Adjusted debug function to format only when a debug channel is available. Fixed moving from guild banks, checking if items are locked is different then with banks. Now unregistering the item locking event so it doesn?t continue to try to move every time an item is switched after the automated cycle has finished. (geeezus, this description is a total overkill) Fixed item queueing. Queue all when there?s a group without any items inside no longer crashes. Removing cached container data after closing a container.
author Zerotorescue
date Fri, 07 Jan 2011 22:19:03 +0100
parents 3bec0ea44607
children 88898c1e9e61
comparison
equal deleted inserted replaced
88:f1c035694545 89:a12d22ef3f39
67 function mod:ProcessTradeSkill(i, groupName, temp) 67 function mod:ProcessTradeSkill(i, groupName, temp)
68 -- Try to retrieve the itemlink, this will be nil if current item is a group instead 68 -- Try to retrieve the itemlink, this will be nil if current item is a group instead
69 local itemLink = GetTradeSkillItemLink(i); 69 local itemLink = GetTradeSkillItemLink(i);
70 70
71 if itemLink then 71 if itemLink then
72 local itemId = addon:GetItemId(itemLink); 72 local itemId = addon:GetItemID(itemLink);
73 if not itemId then 73 if not itemId then
74 -- If this isn't an item, it can only be an enchant instead 74 -- If this isn't an item, it can only be an enchant instead
75 itemId = tonumber(itemLink:match("|Henchant:([-0-9]+)|h")); 75 itemId = tonumber(itemLink:match("|Henchant:([-0-9]+)|h"));
76 76
77 itemId = addon.scrollIds[itemId]; -- change enchantIds into scrollIds 77 itemId = addon.scrollIds[itemId]; -- change enchantIds into scrollIds
78 end 78 end
79 79
80 if addon.db.profile.groups[groupName].items[itemId] then 80 if addon.db.profile.groups[groupName].items and addon.db.profile.groups[groupName].items[itemId] then
81 -- This item is in this group, queue it! 81 -- This item is in this group, queue it!
82 82
83 if temp then 83 if temp then
84 -- Remember which items have been processed 84 -- Remember which items have been processed
85 temp[itemId] = true; 85 temp[itemId] = true;