changeset 17:8f5c02113c5c

Reduced the softmax of most ranges from 1.000 to 100. This should make them actually useful. You can still manually enter an amount below the sliders of up to 100.000. The help text for the ?Replenishing stock? category now includes bonus queue information. Added an option to the ?add items? tab called ?Import premade data? which allows a user to import item data from a premade group shipped with the addon. If this premade data ever changes, the user will be notified and queried for an update. Added a ?mass remove? option to the ?current items? tab. Item data should be imported again when importing a complete group. Added ?DataStore (current account only)?, ?DataStore (with guilds)? and ?DataStore (without guilds)? item count options. One might prefer these over Altoholic for a few reasons. Scroll IDs are now stored in a seperate file in a new ?data? folder. Premade groups data can be found there too. Bonus queue and min crafting queue options should now be fully functional. Enchanting scrolls should now work properly. Text in the summary of the value of items below the price threshold window will now be colored completely grey.
author Zerotorescue
date Wed, 20 Oct 2010 01:30:51 +0200
parents 68958c55c43d
children 3c70a3411025
files Core.lua Data/PremadeGroups.lua Data/Scrolls Retrieval.txt Data/Scrolls.lua Inventorium.toc ItemCountAddons/Altoholic.lua ItemCountAddons/DataStore (current account only).lua ItemCountAddons/DataStore (with guilds).lua ItemCountAddons/DataStore (without guilds).lua ItemCountAddons/ItemCount.lua Queue.lua Summary.lua
diffstat 12 files changed, 1950 insertions(+), 302 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Mon Oct 18 19:37:43 2010 +0200
+++ b/Core.lua	Wed Oct 20 01:30:51 2010 +0200
@@ -1,5 +1,6 @@
 -- You can access this addon's object through: LibStub("AceAddon-3.0"):GetAddon("Inventorium")
-local addon = LibStub("AceAddon-3.0"):NewAddon("Inventorium", "AceEvent-3.0");
+local addon = select(2, ...);
+addon = LibStub("AceAddon-3.0"):NewAddon(addon, "Inventorium", "AceEvent-3.0");
 
 local AceGUI = LibStub("AceGUI-3.0");
 
@@ -41,10 +42,10 @@
 					height = 600,
 				},
 				colors = {
-					red = 0;
-					orange = 0.3;
-					yellow = 0.6;
-					green = 0.95;
+					red = 0,
+					orange = 0.3,
+					yellow = 0.6,
+					green = 0.95,
 				},
 			},
 		},
@@ -497,10 +498,10 @@
 						type = "range",
 						min = 0,
 						max = 100000,
-						softMax = 1000,
+						softMax = 100,
 						step = 1,
 						name = "Minimum stock",
-						desc = "You can manually enter a value between 1.000 and 100.000 in the edit box if the provided range is insufficient.",
+						desc = "You can manually enter a value between 100 and 100.000 in the text box below if the provided range is insufficient.",
 						get = function() return self.db.global.defaults.minimumStock; end,
 						set = function(i, v) self.db.global.defaults.minimumStock = v; end,
 					},
@@ -915,19 +916,23 @@
 					-- If this isn't an item, it can only be an enchant instead
 					itemId = tonumber(itemLink:match("|Henchant:([-0-9]+)|h"));
 					
-					itemId = scrollIds[itemId]; -- change enchantIds into scrollIds
+					itemId = addon.scrollIds[itemId]; -- change enchantIds into scrollIds
 				end
 				
-				local itemLevel = select(4, GetItemInfo(itemId)) or 0;
-				
-				if includeTradeSkillItems == 0 or itemLevel >= includeTradeSkillItems then
-					if not items[itemId] then
-						-- If this item isn't used in any group yet
-						ref[itemId] = tblAddItemTemplate;
-					else
-						-- It's already used in a group, don't show it
-						ref[itemId] = nil;
+				if itemId then
+					local itemLevel = select(4, GetItemInfo(itemId)) or 0;
+					
+					if includeTradeSkillItems == 0 or itemLevel >= includeTradeSkillItems then
+						if not items[itemId] then
+							-- If this item isn't used in any group yet
+							ref[itemId] = tblAddItemTemplate;
+						else
+							-- It's already used in a group, don't show it
+							ref[itemId] = nil;
+						end
 					end
+				else
+					addon:Debug("|cffff0000ERROR|r: Couldn't find proper item id for " .. itemLink);
 				end
 			end
 		end
@@ -1007,10 +1012,10 @@
 							type = "range",
 							min = 0,
 							max = 100000,
-							softMax = 1000,
+							softMax = 100,
 							step = 1,
 							name = "Minimum stock",
-							desc = "You can manually enter a value between 1.000 and 100.000 in the edit box if the provided range is insufficient.",
+							desc = "You can manually enter a value between 100 and 100.000 in the text box below if the provided range is insufficient.",
 							arg = "overrideMinimumStock",
 						},
 						overrideSummaryThresholdShow = {
@@ -1096,7 +1101,7 @@
 								local groupName = groupIdToName[info[2]];
 								local r = "Here you can specify the amount of items to which you wish to restock when you are collecting new items for the currently selected group. This may be higher than the minimum stock.\n\n";
 								
-								r = r .. "When restocking the target amount is |cfffed000" .. addon:GetOptionByKey(groupName, "restockTarget") .. "|r of every item. Not queueing craftable items when only missing |cfffed000" .. floor( addon:GetOptionByKey(groupName, "minCraftingQueue") * addon:GetOptionByKey(groupName, "restockTarget") ) .. "|r (|cfffed000" .. ( addon:GetOptionByKey(groupName, "minCraftingQueue") * 100 ) .. "%|r) of the restock target.";
+								r = r .. "When restocking the target amount is |cfffed000" .. addon:GetOptionByKey(groupName, "restockTarget") .. "|r of every item. Not queueing craftable items when only missing |cfffed000" .. floor( addon:GetOptionByKey(groupName, "minCraftingQueue") * addon:GetOptionByKey(groupName, "restockTarget") ) .. "|r (|cfffed000" .. ( addon:GetOptionByKey(groupName, "minCraftingQueue") * 100 ) .. "%|r) of the restock target and making |cfffed000" .. floor( ( addon:GetOptionByKey(groupName, "bonusQueue") * addon:GetOptionByKey(groupName, "restockTarget") ) + .5 ) .. "|r (|cfffed000" .. ( addon:GetOptionByKey(groupName, "bonusQueue") * 100 ) .. "%|r) extra items when you completely ran out.";
 								
 								return r;
 							end,
@@ -1348,8 +1353,8 @@
 							end,
 							get = false,
 						},
-						import = {
-							order = 40,
+						importItemData = {
+							order = 30,
 							type = "input",
 							name = "Import item data",
 							desc = "Import item data from an exported item data-string. Any items already grouped will be skipped.",
@@ -1372,6 +1377,44 @@
 							end,
 							get = false,
 						},
+						importPremadeData = {
+							order = 40,
+							type = "select",
+							name = "Import premade data",
+							desc = "Import item data from a premade item-group. Any items already grouped will be skipped.",
+							values = function()
+								local temp = {};
+								for key, group in pairs(addon.defaultGroups) do
+									temp[key] = key;
+								end
+								
+								return temp;
+							end,
+							set = function(info, value)
+								local groupName = groupIdToName[info[2]];
+								
+								print(("Importing items from the premade group \"|cfffed000%s|r\"."):format(value));
+								
+								-- Remember we imported this group and it's version so if it is ever changed, people can be notified
+								if not addon.db.global.groups[groupName].premadeGroups then
+									addon.db.global.groups[groupName].premadeGroups = {};
+								end
+								addon.db.global.groups[groupName].premadeGroups[value] = addon.defaultGroups[value].version;
+								
+								for itemId, _ in pairs(addon.defaultGroups[value].items) do
+									itemId = itemId and tonumber(itemId);
+									
+									if not itemId then
+										print(("\"|cfffed000%s|r\" is not a number."):format(value));
+									elseif InGroup(itemId) then
+										print(("Skipping |cfffed000%s|r (#%d) as it is already in the group |cfffed000%s|r."):format(select(2, GetItemInfo(itemId)) or "Unknown", itemId, InGroup(itemId)));
+									else
+										AddToGroup(groupName, itemId);
+									end
+								end
+							end,
+							get = false,
+						},
 					},
 				},
 				massAdd = {
@@ -1391,6 +1434,8 @@
 							name = "Add all items matching...",
 							desc = "Add every item in your inventory matching the name entered in this field. If you enter \"Glyph\" as a filter, any items in your inventory containing this in their name will be added to this group.",
 							set = function(info, value)
+						    	local groupName = groupIdToName[info[2]];
+						    	
 								if not value then return; end
 								
 								value = value:lower();
@@ -1402,8 +1447,6 @@
 										local itemName = GetItemInfo(itemId);
 										
 										if itemName:lower():find(value) then
-									    	local groupName = groupIdToName[info[2]];
-									    	
 									    	if not AddToGroup(groupName, itemId) then
 									    		print("|cffff0000Couldn't add the item with itemId (" .. itemId .. ") because it is already in a group.|r");
 									    	end
@@ -1475,6 +1518,65 @@
 							type = "description",
 							name = "Click the items you wish to remove from this group.",
 						},
+						massRemove = {
+							order = 20,
+							type = "input",
+							name = "Remove all items matching...",
+							desc = "Remove every item in this group matching the name entered in this field. If you enter \"Glyph\" as a filter, any items in this group containing this in their name will be removed from this group.",
+							set = function(info, value)
+						    	local groupName = groupIdToName[info[2]];
+						    	
+								if not value then return; end
+								
+								value = value:lower();
+								
+								local ref = options.args.groups.args[info[2]].args.remove.args.list.args;
+								
+								for itemId, test in pairs(ref) do
+									if test then
+										local itemName = GetItemInfo(itemId);
+										
+										if itemName:lower():find(value) then
+									    	-- Unset this item
+									    	addon.db.global.groups[groupName].items[itemId] = nil;
+										end
+									end
+								end
+							end,
+							get = false,
+						},
+						premadeGroups = {
+							order = 30,
+							type = "select",
+							name = "Imported premade groups",
+							desc = "This is a list of all premade groups that were imported into this group. You will be notified when any of these premade groups have changed and you will be able to import these changes.\n\nSelect a group to remove it from this list and prevent notifications about changes made to this group. This will require you to manually update this when new items are added to the game.",
+							values = function(info)
+						    	local groupName = groupIdToName[info[2]];
+						    	
+						    	local temp = {};
+						    	if addon.db.global.groups[groupName].premadeGroups then
+							    	for name, version in pairs(addon.db.global.groups[groupName].premadeGroups) do
+							    		temp[name] = name;
+							    	end
+						    	end
+						    	
+						    	return temp;
+							end,
+							set = function(info, value)
+								-- Remove premade group from this group
+						    	local groupName = groupIdToName[info[2]];
+						    	
+						    	addon.db.global.groups[groupName].premadeGroups[value] = nil;
+						    	
+						    	print(("No longer notifying you about changes made to the premade group named \"|cfffed000%s|r\"."):format(value));
+							end,
+							get = false,
+							disabled = function(info)
+						    	local groupName = groupIdToName[info[2]];
+						    	
+								return (not addon.db.global.groups[groupName].premadeGroups);
+							end,
+						},
 					},
 				},
 				list = {
@@ -1585,7 +1687,7 @@
 									
 									-- Remove items that are already in another group
 									for value, _ in pairs(temp.items) do
-										local itemId = tonumber(itemid);
+										local itemId = tonumber(value);
 										
 										if not itemId then
 											print(("\"%s\" is not a number."):format(value));
@@ -1652,13 +1754,13 @@
 	if self.supportedAddons.itemCount[self.db.global.defaults.itemCountAddon] then
 		-- Try to use the default item count addon
 		
-		return self.supportedAddons.itemCount[self.db.global.defaults.itemCountAddon].GetCount(itemId);
+		return self.supportedAddons.itemCount[self.db.global.defaults.itemCountAddon].GetTotalCount(itemId);
 	else
 		-- Default not available, get the first one then
 		
 		for name, value in pairs(self.supportedAddons.itemCount) do
 			if value.IsEnabled() then
-				return value.GetCount(itemId);
+				return value.GetTotalCount(itemId);
 			end
 		end
 	end
@@ -1697,9 +1799,10 @@
 	};
 end
 
-function IMRegisterItemCountAddon(name, get, enabled)
+function IMRegisterItemCountAddon(name, getTotal, getCharacter, enabled)
 	addon.supportedAddons.itemCount[name] = {
-		GetCount = get,
+		GetTotalCount = getTotal,
+		GetCharacterCount = getCharacter,
 		IsEnabled = enabled,
 	};
 end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Data/PremadeGroups.lua	Wed Oct 20 01:30:51 2010 +0200
@@ -0,0 +1,543 @@
+local addon = select(2, ...);
+
+-- The source for the data of most of the items in the groups below is from Wowhead.com
+--[[ The following parser was used within Firebug:
+	var items = "";
+	for(var itemId in _)
+	{
+	    if(!isNaN(itemId))
+	        items += '[' + itemId + '] = 1, -- ' + _[itemId].name_enus + '\n';
+	}
+	alert(items);
+]]
+-- Do not forget to increment the version number of the group when updating a group
+-- and ensure the value of each items matches that version number (this is used to update groups when they are changed - 
+-- without this, manually removed items would be re-imported again, which we do not want)
+
+addon.defaultGroups = {
+	-- Glyphs
+	-- Source: http://www.wowhead.com/items=16.6?filter=cr=87;crs=12;crv=0
+	["Glyphs (Death Knight)"] = {
+		version = 1,
+		items = {
+			[43533] = 1, -- Glyph of Anti-Magic Shell
+			[43534] = 1, -- Glyph of Heart Strike
+			[43535] = 1, -- Glyph of Blood Tap
+			[43536] = 1, -- Glyph of Bone Shield
+			[43537] = 1, -- Glyph of Chains of Ice
+			[43539] = 1, -- Glyph of Death's Embrace
+			[43541] = 1, -- Glyph of Death Grip
+			[43542] = 1, -- Glyph of Death and Decay
+			[43543] = 1, -- Glyph of Frost Strike
+			[43544] = 1, -- Glyph of Horn of Winter
+			[43546] = 1, -- Glyph of Icy Touch
+			[43547] = 1, -- Glyph of Obliterate
+			[43548] = 1, -- Glyph of Pestilence
+			[43549] = 1, -- Glyph of Raise Dead
+			[43550] = 1, -- Glyph of Rune Strike
+			[43551] = 1, -- Glyph of Scourge Strike
+			[43552] = 1, -- Glyph of Strangulate
+			[43553] = 1, -- Glyph of Pillar of Frost
+			[43554] = 1, -- Glyph of Vampiric Blood
+			[43671] = 1, -- Glyph of Path of Frost
+			[43672] = 1, -- Glyph of Resilient Grip
+			[43673] = 1, -- Glyph of Raise Ally
+			[43825] = 1, -- Glyph of Rune Tap
+			[43826] = 1, -- Glyph of Blood Boil
+			[43827] = 1, -- Glyph of Death Strike
+			[45799] = 1, -- Glyph of Dancing Rune Weapon
+			[45800] = 1, -- Glyph of Hungering Cold
+			[45804] = 1, -- Glyph of Death Coil
+			[45806] = 1, -- Glyph of Howling Blast
+		},
+	},
+	["Glyphs (Druid)"] = {
+		version = 1,
+		items = {
+			[45604] = 1, -- Glyph of Savage Roar
+			[40921] = 1, -- Glyph of Starfall
+			[44928] = 1, -- Glyph of Focus
+			[45601] = 1, -- Glyph of Berserk
+			[67484] = 1, -- Glyph of Lacerate
+			[40915] = 1, -- Glyph of Lifebloom
+			[45623] = 1, -- Glyph of Barkskin
+			[40902] = 1, -- Glyph of Rip
+			[40896] = 1, -- Glyph of Frenzied Regeneration
+			[45602] = 1, -- Glyph of Wild Growth
+			[40901] = 1, -- Glyph of Shred
+			[40920] = 1, -- Glyph of Hurricane
+			[40899] = 1, -- Glyph of Solar Beam
+			[44922] = 1, -- Glyph of Typhoon
+			[43335] = 1, -- Glyph of the Wild
+			[45622] = 1, -- Glyph of Monsoon
+			[67486] = 1, -- Glyph of Feral Charge
+			[40908] = 1, -- Glyph of Innervate
+			[43334] = 1, -- Glyph of Challenging Roar
+			[43674] = 1, -- Glyph of Dash
+			[40897] = 1, -- Glyph of Maul
+			[40900] = 1, -- Glyph of Mangle
+			[40903] = 1, -- Glyph of Rake
+			[40906] = 1, -- Glyph of Swiftmend
+			[40909] = 1, -- Glyph of Rebirth
+			[40912] = 1, -- Glyph of Regrowth
+			[40913] = 1, -- Glyph of Rejuvenation
+			[40914] = 1, -- Glyph of Healing Touch
+			[40916] = 1, -- Glyph of Starfire
+			[40919] = 1, -- Glyph of Insect Swarm
+			[40922] = 1, -- Glyph of Wrath
+			[40923] = 1, -- Glyph of Moonfire
+			[40924] = 1, -- Glyph of Entangling Roots
+			[43316] = 1, -- Glyph of Aquatic Form
+			[43331] = 1, -- Glyph of Unburdened Rebirth
+			[43332] = 1, -- Glyph of Thorns
+			[45603] = 1, -- Glyph of Starsurge
+			[48720] = 1, -- Glyph of Ferocious Bite
+			[67485] = 1, -- Glyph of Faerie Fire
+			[67487] = 1, -- Glyph of Tiger's Fury
+		},
+	},
+	["Glyphs (Hunter)"] = {
+		version = 1,
+		items = {
+			[42904] = 1, -- Glyph of Disengage
+			[42907] = 1, -- Glyph of Misdirection
+			[45733] = 1, -- Glyph of Master's Call
+			[45625] = 1, -- Glyph of Chimera Shot
+			[42913] = 1, -- Glyph of Snake Trap
+			[43355] = 1, -- Glyph of Aspect of the Pack
+			[42911] = 1, -- Glyph of Rapid Fire
+			[42902] = 1, -- Glyph of Bestial Wrath
+			[42917] = 1, -- Glyph of Wyvern Sting
+			[42899] = 1, -- Glyph of Trap Launcher
+			[42906] = 1, -- Glyph of Ice Trap
+			[42903] = 1, -- Glyph of Deterrence
+			[45732] = 1, -- Glyph of Kill Shot
+			[43351] = 1, -- Glyph of Feign Death
+			[42910] = 1, -- Glyph of Silencing Shot
+			[45734] = 1, -- Glyph of Scatter Shot
+			[42905] = 1, -- Glyph of Freezing Trap
+			[42897] = 1, -- Glyph of Aimed Shot
+			[42898] = 1, -- Glyph of Arcane Shot
+			[42900] = 1, -- Glyph of Mending
+			[42901] = 1, -- Glyph of Concussive Shot
+			[42908] = 1, -- Glyph of Immolation Trap
+			[42909] = 1, -- Glyph of the Dazzled Prey
+			[42912] = 1, -- Glyph of Serpent Sting
+			[42914] = 1, -- Glyph of Steady Shot
+			[42915] = 1, -- Glyph of Kill Command
+			[43338] = 1, -- Glyph of Revive Pet
+			[43350] = 1, -- Glyph of Mend Pet
+			[43356] = 1, -- Glyph of Scare Beast
+			[45731] = 1, -- Glyph of Explosive Shot
+			[45735] = 1, -- Glyph of Raptor Strike
+		},
+	},
+	["Glyphs (Mage)"] = {
+		version = 1,
+		items = {
+			[45739] = 1, -- Glyph of Mirror Image
+			[42748] = 1, -- Glyph of Invisibility
+			[42736] = 1, -- Glyph of Arcane Power
+			[45736] = 1, -- Glyph of Deep Freeze
+			[63539] = 1, -- Glyph of Living Bomb
+			[42749] = 1, -- Glyph of Mage Armor
+			[43339] = 1, -- Glyph of Arcane Brilliance
+			[44684] = 1, -- Glyph of Frostfire
+			[42754] = 1, -- Glyph of Dragon's Breath
+			[45737] = 1, -- Glyph of Slow
+			[45740] = 1, -- Glyph of Ice Barrier
+			[50045] = 1, -- Glyph of Mana Shield
+			[43359] = 1, -- Glyph of Conjuring
+			[42751] = 1, -- Glyph of Molten Armor
+			[63416] = 1, -- Glyph of Armors
+			[43364] = 1, -- Glyph of Slow Fall
+			[42744] = 1, -- Glyph of Ice Block
+			[44920] = 1, -- Glyph of Blast Wave
+			[42745] = 1, -- Glyph of Ice Lance
+			[42735] = 1, -- Glyph of Arcane Missiles
+			[42737] = 1, -- Glyph of Blink
+			[42738] = 1, -- Glyph of Evocation
+			[42739] = 1, -- Glyph of Fireball
+			[42741] = 1, -- Glyph of Frost Nova
+			[42742] = 1, -- Glyph of Frostbolt
+			[42743] = 1, -- Glyph of Pyroblast
+			[42746] = 1, -- Glyph of Icy Veins
+			[42752] = 1, -- Glyph of Polymorph
+			[42753] = 1, -- Glyph of Cone of Cold
+			[43360] = 1, -- Glyph of the Monkey
+			[43361] = 1, -- Glyph of the Penguin
+			[45738] = 1, -- Glyph of Arcane Barrage
+			[44955] = 1, -- Glyph of Arcane Blast
+		},
+	},
+	["Glyphs (Paladin)"] = {
+		version = 1,
+		items = {
+			[41102] = 1, -- Glyph of Turn Evil
+			[41107] = 1, -- Glyph of the Ascetic Crusader
+			[41109] = 1, -- Glyph of Light of Dawn
+			[45747] = 1, -- Glyph of Salvation
+			[43369] = 1, -- Glyph of Justice
+			[43340] = 1, -- Glyph of Blessing of Might
+			[41097] = 1, -- Glyph of Hammer of Wrath
+			[43368] = 1, -- Glyph of Truth
+			[43869] = 1, -- Glyph of Seal of Truth
+			[45745] = 1, -- Glyph of Divine Plea
+			[41094] = 1, -- Glyph of Rebuke
+			[45741] = 1, -- Glyph of Beacon of Light
+			[45744] = 1, -- Glyph of Shield of the Righteous
+			[41104] = 1, -- Glyph of Cleansing
+			[41096] = 1, -- Glyph of Divine Protection
+			[41110] = 1, -- Glyph of Seal of Insight
+			[43366] = 1, -- Glyph of Insight
+			[41106] = 1, -- Glyph of Divine Favor
+			[45742] = 1, -- Glyph of Hammer of the Righteous
+			[43867] = 1, -- Glyph of Holy Wrath
+			[41092] = 1, -- Glyph of Judgement
+			[41095] = 1, -- Glyph of Hammer of Justice
+			[41098] = 1, -- Glyph of Crusader Strike
+			[41099] = 1, -- Glyph of Consecration
+			[41100] = 1, -- Glyph of Righteousness
+			[41101] = 1, -- Glyph of Focused Shield
+			[41103] = 1, -- Glyph of Exorcism
+			[41105] = 1, -- Glyph of Word of Glory
+			[41108] = 1, -- Glyph of Divinity
+			[43365] = 1, -- Glyph of Blessing of Kings
+			[43367] = 1, -- Glyph of Lay on Hands
+			[43868] = 1, -- Glyph of Dazing Shield
+			[45743] = 1, -- Glyph of Templar's Verdict
+			[45746] = 1, -- Glyph of Holy Shock
+			[66918] = 1, -- Glyph of the Long Word
+		},
+	},
+	["Glyphs (Priest)"] = {
+		version = 1,
+		items = {
+			[42404] = 1, -- Glyph of Mass Dispel
+			[42407] = 1, -- Glyph of Power Word: Barrier
+			[45753] = 1, -- Glyph of Dispersion
+			[45755] = 1, -- Glyph of Guardian Spirit
+			[43374] = 1, -- Glyph of Shadowfiend
+			[42401] = 1, -- Glyph of Holy Nova
+			[42396] = 1, -- Glyph of Circle of Healing
+			[42405] = 1, -- Glyph of Psychic Horror
+			[43372] = 1, -- Glyph of Shadow Protection
+			[42399] = 1, -- Glyph of Fear Ward
+			[45760] = 1, -- Glyph of Pain Suppression
+			[42409] = 1, -- Glyph of Prayer of Healing
+			[42417] = 1, -- Glyph of Spirit of Redemption
+			[43370] = 1, -- Glyph of Levitate
+			[42412] = 1, -- Glyph of Scourge Imprisonment
+			[42414] = 1, -- Glyph of Shadow Word: Death
+			[43373] = 1, -- Glyph of Shackle Undead
+			[45757] = 1, -- Glyph of Spirit Tap
+			[42403] = 1, -- Glyph of Lightwell
+			[42397] = 1, -- Glyph of Dispel Magic
+			[42398] = 1, -- Glyph of Fade
+			[42400] = 1, -- Glyph of Flash Heal
+			[42402] = 1, -- Glyph of Inner Fire
+			[42406] = 1, -- Glyph of Shadow Word: Pain
+			[42408] = 1, -- Glyph of Power Word: Shield
+			[42410] = 1, -- Glyph of Psychic Scream
+			[42411] = 1, -- Glyph of Renew
+			[42415] = 1, -- Glyph of Mind Flay
+			[42416] = 1, -- Glyph of Smite
+			[43342] = 1, -- Glyph of Fading
+			[43371] = 1, -- Glyph of Fortitude
+			[45756] = 1, -- Glyph of Penance
+			[45758] = 1, -- Glyph of Divine Accuracy
+		},
+	},
+	["Glyphs (Rogue)"] = {
+		version = 1,
+		items = {
+			[45766] = 1, -- Glyph of Fan of Knives
+			[45767] = 1, -- Glyph of Tricks of the Trade
+			[45761] = 1, -- Glyph of Vendetta
+			[45762] = 1, -- Glyph of Killing Spree
+			[45764] = 1, -- Glyph of Shadow Dance
+			[45769] = 1, -- Glyph of Cloak of Shadows
+			[42971] = 1, -- Glyph of Kick
+			[42959] = 1, -- Glyph of Deadly Throw
+			[42954] = 1, -- Glyph of Adrenaline Rush
+			[42968] = 1, -- Glyph of Preparation
+			[43378] = 1, -- Glyph of Safe Fall
+			[42969] = 1, -- Glyph of Rupture
+			[42963] = 1, -- Glyph of Feint
+			[42964] = 1, -- Glyph of Garrote
+			[42962] = 1, -- Glyph of Expose Armor
+			[64493] = 1, -- Glyph of Blind
+			[42965] = 1, -- Glyph of Revealing Strike
+			[42967] = 1, -- Glyph of Hemorrhage
+			[43376] = 1, -- Glyph of Distract
+			[42955] = 1, -- Glyph of Ambush
+			[42956] = 1, -- Glyph of Backstab
+			[42957] = 1, -- Glyph of Blade Flurry
+			[42958] = 1, -- Glyph of Crippling Poison
+			[42960] = 1, -- Glyph of Evasion
+			[42961] = 1, -- Glyph of Eviscerate
+			[42966] = 1, -- Glyph of Gouge
+			[42970] = 1, -- Glyph of Sap
+			[42972] = 1, -- Glyph of Sinister Strike
+			[42973] = 1, -- Glyph of Slice and Dice
+			[42974] = 1, -- Glyph of Sprint
+			[43343] = 1, -- Glyph of Pick Pocket
+			[43377] = 1, -- Glyph of Pick Lock
+			[43379] = 1, -- Glyph of Blurred Speed
+			[43380] = 1, -- Glyph of Poisons
+			[45768] = 1, -- Glyph of Mutilate
+			[63420] = 1, -- Glyph of Vanish
+		},
+	},
+	["Glyphs (Shaman)"] = {
+		version = 1,
+		items = {
+			[45777] = 1, -- Glyph of Hex
+			[45771] = 1, -- Glyph of Feral Spirit
+			[45772] = 1, -- Glyph of Riptide
+			[41529] = 1, -- Glyph of Fire Elemental Totem
+			[44923] = 1, -- Glyph of Thunderstorm
+			[45778] = 1, -- Glyph of Stoneclaw Totem
+			[41527] = 1, -- Glyph of Earthliving Weapon
+			[41552] = 1, -- Glyph of Elemental Mastery
+			[45776] = 1, -- Glyph of Shamanistic Rage
+			[43344] = 1, -- Glyph of Water Breathing
+			[41517] = 1, -- Glyph of Chain Heal
+			[41538] = 1, -- Glyph of Grounding Totem
+			[41524] = 1, -- Glyph of Lava Burst
+			[41542] = 1, -- Glyph of Windfury Weapon
+			[41535] = 1, -- Glyph of Totemic Recall
+			[43381] = 1, -- Glyph of Astral Recall
+			[43385] = 1, -- Glyph of Renewed Life
+			[41539] = 1, -- Glyph of Stormstrike
+			[41518] = 1, -- Glyph of Chain Lightning
+			[41530] = 1, -- Glyph of Fire Nova
+			[43388] = 1, -- Glyph of Water Walking
+			[41526] = 1, -- Glyph of Shocking
+			[41531] = 1, -- Glyph of Flame Shock
+			[41532] = 1, -- Glyph of Flametongue Weapon
+			[41533] = 1, -- Glyph of Healing Stream Totem
+			[41534] = 1, -- Glyph of Healing Wave
+			[41536] = 1, -- Glyph of Lightning Bolt
+			[41537] = 1, -- Glyph of Lightning Shield
+			[41540] = 1, -- Glyph of Lava Lash
+			[41541] = 1, -- Glyph of Water Shield
+			[41547] = 1, -- Glyph of Frost Shock
+			[43386] = 1, -- Glyph of the Arctic Wolf
+			[43725] = 1, -- Glyph of Ghost Wolf
+			[45770] = 1, -- Glyph of Thunder
+			[45775] = 1, -- Glyph of Earth Shield
+		},
+	},
+	["Glyphs (Warlock)"] = {
+		version = 1,
+		items = {
+			[45782] = 1, -- Glyph of Demonic Circle
+			[45783] = 1, -- Glyph of Shadowflame
+			[45779] = 1, -- Glyph of Haunt
+			[45780] = 1, -- Glyph of Metamorphosis
+			[45781] = 1, -- Glyph of Chaos Bolt
+			[43394] = 1, -- Glyph of Souls
+			[42453] = 1, -- Glyph of Incinerate
+			[42457] = 1, -- Glyph of Death Coil
+			[42463] = 1, -- Glyph of Howl of Terror
+			[42466] = 1, -- Glyph of Soul Swap
+			[42460] = 1, -- Glyph of Felhunter
+			[43393] = 1, -- Glyph of Enslave Demon
+			[42468] = 1, -- Glyph of Shadowburn
+			[43392] = 1, -- Glyph of Curse of Exhaustion
+			[42454] = 1, -- Glyph of Conflagrate
+			[42455] = 1, -- Glyph of Corruption
+			[42456] = 1, -- Glyph of Bane of Agony
+			[42458] = 1, -- Glyph of Fear
+			[42459] = 1, -- Glyph of Felguard
+			[42461] = 1, -- Glyph of Health Funnel
+			[42462] = 1, -- Glyph of Healthstone
+			[42464] = 1, -- Glyph of Immolate
+			[42465] = 1, -- Glyph of Imp
+			[42467] = 1, -- Glyph of Shadow Bolt
+			[42470] = 1, -- Glyph of Soulstone
+			[42471] = 1, -- Glyph of Seduction
+			[42472] = 1, -- Glyph of Unstable Affliction
+			[42473] = 1, -- Glyph of Voidwalker
+			[43389] = 1, -- Glyph of Unending Breath
+			[43390] = 1, -- Glyph of Drain Soul
+			[43391] = 1, -- Glyph of Kilrogg
+			[45785] = 1, -- Glyph of Life Tap
+			[45789] = 1, -- Glyph of Soul Link
+			[50077] = 1, -- Glyph of Lash of Pain
+		},
+	},
+	["Glyphs (Warrior)"] = {
+		version = 1,
+		items = {
+			[63481] = 1, -- Glyph of Colossus Smash
+			[43418] = 1, -- Glyph of Heroic Throw
+			[43419] = 1, -- Glyph of Intervene
+			[45790] = 1, -- Glyph of Bladestorm
+			[45792] = 1, -- Glyph of Shockwave
+			[49084] = 1, -- Glyph of Command
+			[45795] = 1, -- Glyph of Spell Reflection
+			[43396] = 1, -- Glyph of Berserker Rage
+			[43398] = 1, -- Glyph of Demoralizing Shout
+			[67482] = 1, -- Glyph of Intercept
+			[45797] = 1, -- Glyph of Shield Wall
+			[43423] = 1, -- Glyph of Slam
+			[45794] = 1, -- Glyph of Intimidating Shout
+			[43424] = 1, -- Glyph of Revenge
+			[43415] = 1, -- Glyph of Devastate
+			[43432] = 1, -- Glyph of Raging Blow
+			[67483] = 1, -- Glyph of Death Wish
+			[43428] = 1, -- Glyph of Sweeping Strikes
+			[43395] = 1, -- Glyph of Battle
+			[43397] = 1, -- Glyph of Long Charge
+			[43399] = 1, -- Glyph of Thunder Clap
+			[43400] = 1, -- Glyph of Enduring Victory
+			[43412] = 1, -- Glyph of Bloody Healing
+			[43413] = 1, -- Glyph of Rapid Charge
+			[43414] = 1, -- Glyph of Cleaving
+			[43416] = 1, -- Glyph of Bloodthirst
+			[43417] = 1, -- Glyph of Piercing Howl
+			[43421] = 1, -- Glyph of Mortal Strike
+			[43422] = 1, -- Glyph of Overpower
+			[43425] = 1, -- Glyph of Shield Slam
+			[43427] = 1, -- Glyph of Sunder Armor
+			[43430] = 1, -- Glyph of Resonating Power
+			[43431] = 1, -- Glyph of Victory Rush
+			[45793] = 1, -- Glyph of Furious Sundering
+		},
+	},
+	-- Epic gems (WotLK)
+	-- Source: http://www.wowhead.com/items=3?filter=na=Ametrine;cr=87;crs=12;crv=0
+	["Epic Gems (Ametrine)"] = {
+		version = 1,
+		items = {
+			[40142] = 1, -- Inscribed Ametrine
+			[40144] = 1, -- Champion's Ametrine
+			[40145] = 1, -- Resplendent Ametrine
+			[40146] = 1, -- Fierce Ametrine
+			[40147] = 1, -- Deadly Ametrine
+			[40149] = 1, -- Lucent Ametrine
+			[40150] = 1, -- Deft Ametrine
+			[40152] = 1, -- Potent Ametrine
+			[40154] = 1, -- Willful Ametrine
+			[40155] = 1, -- Reckless Ametrine
+			[40156] = 1, -- Deadly Ametrine
+			[40158] = 1, -- Lucent Ametrine
+			[40159] = 1, -- Deft Ametrine
+			[40160] = 1, -- Stalwart Ametrine
+			[40161] = 1, -- Stalwart Ametrine
+			[40163] = 1, -- Resolute Ametrine
+		},
+	},
+	["Epic Gems (Cardinal Ruby)"] = {
+		version = 1,
+		items = {
+			[40111] = 1, -- Bold Cardinal Ruby
+			[40112] = 1, -- Delicate Cardinal Ruby
+			[40113] = 1, -- Brilliant Cardinal Ruby
+			[40114] = 1, -- Delicate Cardinal Ruby
+			[40116] = 1, -- Flashing Cardinal Ruby
+			[40118] = 1, -- Precise Cardinal Ruby
+			[40123] = 1, -- Brilliant Cardinal Ruby
+		},
+	},
+	["Epic Gems (Dreadstone)"] = {
+		version = 1,
+		items = {
+			[40129] = 1, -- Sovereign Dreadstone
+			[40130] = 1, -- Shifting Dreadstone
+			[40131] = 1, -- Glinting Dreadstone
+			[40132] = 1, -- Timeless Dreadstone
+			[40133] = 1, -- Purified Dreadstone
+			[40134] = 1, -- Purified Dreadstone
+			[40135] = 1, -- Mysterious Dreadstone
+			[40136] = 1, -- Shifting Dreadstone
+			[40137] = 1, -- Glinting Dreadstone
+			[40139] = 1, -- Defender's Dreadstone
+			[40141] = 1, -- Guardian's Dreadstone
+			[40143] = 1, -- Etched Dreadstone
+			[40148] = 1, -- Glinting Dreadstone
+			[40151] = 1, -- Purified Dreadstone
+			[40153] = 1, -- Veiled Dreadstone
+			[40157] = 1, -- Glinting Dreadstone
+			[40162] = 1, -- Accurate Dreadstone
+			[40164] = 1, -- Timeless Dreadstone
+			[40170] = 1, -- Purified Dreadstone
+			[40175] = 1, -- Purified Dreadstone
+		},
+	},
+	["Epic Gems (Eye of Zul)"] = {
+		version = 1,
+		items = {
+			[40138] = 1, -- Regal Eye of Zul
+			[40140] = 1, -- Jagged Eye of Zul
+			[40165] = 1, -- Jagged Eye of Zul
+			[40166] = 1, -- Nimble Eye of Zul
+			[40167] = 1, -- Regal Eye of Zul
+			[40168] = 1, -- Steady Eye of Zul
+			[40169] = 1, -- Forceful Eye of Zul
+			[40171] = 1, -- Misty Eye of Zul
+			[40172] = 1, -- Lightning Eye of Zul
+			[40173] = 1, -- Turbid Eye of Zul
+			[40174] = 1, -- Energized Eye of Zul
+			[40176] = 1, -- Misty Eye of Zul
+			[40177] = 1, -- Lightning Eye of Zul
+			[40178] = 1, -- Turbid Eye of Zul
+			[40179] = 1, -- Energized Eye of Zul
+			[40180] = 1, -- Radiant Eye of Zul
+			[40181] = 1, -- Radiant Eye of Zul
+			[40182] = 1, -- Shattered Eye of Zul
+		},
+	},
+	["Epic Gems (King's Amber)"] = {
+		version = 1,
+		items = {
+			[40115] = 1, -- Subtle King's Amber
+			[40117] = 1, -- Smooth King's Amber
+			[40124] = 1, -- Smooth King's Amber
+			[40126] = 1, -- Subtle King's Amber
+			[40127] = 1, -- Mystic King's Amber
+			[40128] = 1, -- Quick King's Amber
+		},
+	},
+	["Epic Gems (Majestic Zircon)"] = {
+		version = 1,
+		items = {
+			[40119] = 1, -- Solid Majestic Zircon
+			[40120] = 1, -- Sparkling Majestic Zircon
+			[40121] = 1, -- Sparkling Majestic Zircon
+			[40122] = 1, -- Stormy Majestic Zircon
+			[40125] = 1, -- Rigid Majestic Zircon
+		},
+	},
+	-- Rare gems (WotLK)
+	-- Enchants (WotLK)
+	-- Enchants (Heirlooms)
+	-- Source: manual retrieved from Wowhead
+	["Enchants (Heirlooms)"] = {
+		version = 1,
+		items = {
+			[38873] = 1, -- Enchant Weapon - Crusader
+			[38838] = 1, -- Enchant Weapon - Fiery Weapon
+			[38896] = 1, -- Enchant Weapon - 2H Weapon - Agility
+			[38880] = 1, -- Enchant Weapon - Agility
+			[38877] = 1, -- Enchant Weapon - Spellpower
+			[38878] = 1, -- Enchant Weapon - Healing Power
+			[38884] = 1, -- Enchant Weapon - Mighty Intellect
+			[38879] = 1, -- Enchant Weapon - Strength
+			[38868] = 1, -- Enchant Weapon - Icy Chill
+			[38871] = 1, -- Enchant Weapon - Lifestealing
+			[38883] = 1, -- Enchant Weapon - Mighty Spirit
+			[38879] = 1, -- Enchant Weapon - Strength
+			[38865] = 1, -- Enchant Chest - Greater Stats
+			[38866] = 1, -- Enchant Chest - Major Health
+			[38847] = 1, -- Enchant Chest - Stats
+			[38867] = 1, -- Enchant Chest - Major Mana
+		},
+	},
+	--Enchant Chest – Major Resilience 
+	--Enchant Weapon – Mongoose 
+	--Enchant Weapon – Blade Ward 
+	--Enchant Weapon – Blood Draining 
+};
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Data/Scrolls Retrieval.txt	Wed Oct 20 01:30:51 2010 +0200
@@ -0,0 +1,849 @@
+Go to wowhead and search for "scroll of enchant" (filter on item quality too so you don't get more than 200 results, you may have to do this multiple times to get everything).
+http://www.wowhead.com/items?filter=qu=3;na=scroll+of+enchant
+http://www.wowhead.com/items?filter=qu=0:1:2;na=scroll+of+enchant
+
+Run this in the Firebug console at both pages:
+
+	var scrolls = "";
+	for(var itemId in _)
+	{
+	    if(!isNaN(itemId))
+	        scrolls += 'scrolls[' + itemId + ']="' + _[itemId].name_enus.toLowerCase().replace("scroll of ", "") + '";\n';
+	}
+	alert(scrolls);
+
+Copy the alert contents (example):
+
+scrolls[38967]="enchant gloves - major agility";
+scrolls[38970]="enchant gloves - exceptional healing";
+scrolls[38978]="enchant cloak - titanweave";
+scrolls[38979]="enchant gloves - exceptional spellpower";
+scrolls[38986]="enchant boots - icewalker";
+scrolls[38989]="enchant chest - super stats";
+scrolls[38990]="enchant gloves - armsman";
+scrolls[38993]="enchant cloak - shadow armor";
+scrolls[38996]="enchant bracers - major healing";
+scrolls[38997]="enchant bracers - greater spellpower";
+scrolls[39003]="enchant cloak - greater speed";
+scrolls[39004]="enchant cloak - wisdom";
+scrolls[39005]="enchant chest - super health";
+scrolls[39006]="enchant boots - tuskarr's vitality";
+scrolls[44458]="enchant gloves - crusher";
+scrolls[38964]="enchant gloves - greater assault";
+scrolls[38984]="enchant bracer - expertise";
+scrolls[38975]="enchant chest - exceptional resilience";
+scrolls[38976]="enchant boots - superior agility";
+scrolls[38983]="enchant shield - exceptional stamina";
+scrolls[38950]="enchant cloak - superior frost resistance";
+scrolls[38956]="enchant cloak - superior nature resistance";
+scrolls[38958]="enchant weapon - exceptional intellect";
+scrolls[38959]="enchant cloak - superior agility";
+scrolls[38969]="enchant cloak - superior fire resistance";
+scrolls[38977]="enchant cloak - superior shadow resistance";
+scrolls[38980]="enchant bracers - major spirit";
+scrolls[38982]="enchant cloak - superior arcane resistance";
+scrolls[38987]="enchant bracers - greater stats";
+scrolls[39002]="enchant chest - greater defense";
+scrolls[44947]="enchant bracer - major stamina";
+scrolls[38955]="enchant chest - mighty health";
+scrolls[38973]="enchant cloak - spell piercing";
+scrolls[44465]="enchant chest - powerful stats";
+scrolls[38953]="enchant gloves - precision";
+scrolls[38960]="enchant gloves - gatherer";
+scrolls[38962]="enchant chest - greater mana restoration";
+scrolls[38966]="enchant boots - greater fortitude";
+scrolls[38968]="enchant bracers - exceptional intellect";
+scrolls[39000]="enchant cloak - steelweave";
+scrolls[44455]="enchant shield - greater intellect";
+scrolls[44456]="enchant cloak - speed";
+scrolls[44457]="enchant cloak - major agility";
+scrolls[38910]="enchant boots - surefooted";
+scrolls[38951]="enchant gloves - expertise";
+scrolls[38974]="enchant boots - greater vitality";
+scrolls[38903]="enchant bracer - spellpower";
+scrolls[38907]="enchant shield - resistance";
+scrolls[38932]="enchant gloves - precise strikes";
+scrolls[38935]="enchant gloves - major spellpower";
+scrolls[38943]="enchant boots - cat's swiftness";
+scrolls[38944]="enchant boots - boar's speed";
+scrolls[38957]="enchant weapon - exceptional striking";
+scrolls[38999]="enchant chest - defense";
+scrolls[44469]="enchant boots - greater assault";
+scrolls[38912]="enchant chest - exceptional mana";
+scrolls[38954]="enchant shield - defense";
+scrolls[38961]="enchant boots - greater spirit";
+scrolls[38971]="enchant bracers - striking";
+scrolls[39001]="enchant cloak - mighty armor";
+scrolls[44449]="enchant boots - assault";
+scrolls[44470]="enchant bracer - superior spellpower";
+scrolls[44815]="enchant bracers - greater assault";
+scrolls[38885]="enchant gloves - threat";
+scrolls[38886]="enchant gloves - shadow power";
+scrolls[38887]="enchant gloves - frost power";
+scrolls[38888]="enchant gloves - fire power";
+scrolls[38889]="enchant gloves - healing power";
+scrolls[38890]="enchant gloves - superior agility";
+scrolls[38891]="enchant cloak - greater fire resistance";
+scrolls[38892]="enchant cloak - greater nature resistance";
+scrolls[38893]="enchant cloak - stealth";
+scrolls[38894]="enchant cloak - subtlety";
+scrolls[38895]="enchant cloak - dodge";
+scrolls[38902]="enchant bracer - fortitude";
+scrolls[38936]="enchant gloves - major healing";
+scrolls[38941]="enchant cloak - greater arcane resistance";
+scrolls[38942]="enchant cloak - greater shadow resistance";
+scrolls[50816]="enchant gloves - angler";
+scrolls[38913]="enchant chest - exceptional stats";
+scrolls[38930]="enchant chest - major resilience";
+scrolls[37603]="enchant boots - dexterity";
+scrolls[38906]="enchant shield - shield block";
+scrolls[38933]="enchant gloves - major strength";
+scrolls[38901]="enchant bracer - restore mana prime";
+scrolls[38915]="enchant cloak - major resistance";
+scrolls[38949]="enchant shield - resilience";
+scrolls[38900]="enchant bracer - superior healing";
+scrolls[38905]="enchant shield - intellect";
+scrolls[38939]="enchant cloak - spell penetration";
+scrolls[38945]="enchant shield - major stamina";
+scrolls[38882]="enchant bracer - healing power";
+scrolls[38899]="enchant bracer - major defense";
+scrolls[38909]="enchant boots - fortitude";
+scrolls[38928]="enchant chest - major spirit";
+scrolls[38898]="enchant bracer - stats";
+scrolls[38911]="enchant chest - exceptional health";
+scrolls[38865]="enchant chest - greater stats";
+scrolls[38904]="enchant shield - tough shield";
+scrolls[38914]="enchant cloak - major armor";
+scrolls[38934]="enchant gloves - assault";
+scrolls[38940]="enchant cloak - greater agility";
+scrolls[38897]="enchant bracer - brawn";
+scrolls[38908]="enchant boots - vitality";
+scrolls[38931]="enchant gloves - blasting";
+scrolls[38937]="enchant bracer - major intellect";
+scrolls[38855]="enchant bracer - superior stamina";
+scrolls[38929]="enchant chest - restore mana prime";
+scrolls[38938]="enchant bracer - assault";
+scrolls[38854]="enchant bracer - superior strength";
+scrolls[38857]="enchant gloves - greater strength";
+scrolls[38863]="enchant boots - greater agility";
+scrolls[38867]="enchant chest - major mana";
+scrolls[38881]="enchant bracer - mana regeneration";
+scrolls[38859]="enchant cloak - superior defense";
+scrolls[38860]="enchant shield - vitality";
+scrolls[38864]="enchant boots - spirit";
+scrolls[38866]="enchant chest - major health";
+scrolls[38853]="enchant bracer - superior spirit";
+scrolls[38856]="enchant gloves - greater agility";
+scrolls[38858]="enchant cloak - greater resistance";
+scrolls[38861]="enchant shield - greater stamina";
+scrolls[38862]="enchant boots - greater stamina";
+scrolls[38852]="enchant bracer - greater intellect";
+scrolls[38850]="enchant gloves - riding skill";
+scrolls[38851]="enchant gloves - minor haste";
+scrolls[38847]="enchant chest - stats";
+scrolls[38849]="enchant bracer - greater stamina";
+scrolls[38846]="enchant bracer - greater strength";
+scrolls[38842]="enchant bracer - deflection";
+scrolls[38843]="enchant shield - frost resistance";
+scrolls[38844]="enchant boots - agility";
+scrolls[38839]="enchant shield - greater spirit";
+scrolls[38841]="enchant chest - superior mana";
+scrolls[38834]="enchant gloves - advanced herbalism";
+scrolls[38835]="enchant cloak - lesser agility";
+scrolls[38836]="enchant gloves - strength";
+scrolls[38837]="enchant boots - minor speed";
+scrolls[45628]="enchant boots - lesser accuracy";
+scrolls[38832]="enchant bracer - greater spirit";
+scrolls[38833]="enchant chest - superior health";
+scrolls[38830]="enchant boots - stamina";
+scrolls[38831]="enchant gloves - advanced mining";
+scrolls[38827]="enchant gloves - agility";
+scrolls[38828]="enchant shield - stamina";
+scrolls[38829]="enchant bracer - intellect";
+scrolls[38825]="enchant cloak - greater defense";
+scrolls[38826]="enchant cloak - resistance";
+scrolls[38823]="enchant gloves - skinning";
+scrolls[38824]="enchant chest - lesser stats";
+scrolls[38820]="enchant shield - lesser block";
+scrolls[38819]="enchant boots - lesser spirit";
+scrolls[38818]="enchant chest - greater mana";
+scrolls[38816]="enchant shield - spirit";
+scrolls[38817]="enchant bracer - strength";
+scrolls[38815]="enchant cloak - fire resistance";
+scrolls[38810]="enchant boots - lesser stamina";
+scrolls[38811]="enchant bracer - lesser deflection";
+scrolls[38812]="enchant bracer - stamina";
+scrolls[38809]="enchant bracer - spirit";
+scrolls[38807]="enchant boots - lesser agility";
+scrolls[38808]="enchant chest - greater health";
+scrolls[38805]="enchant shield - lesser stamina";
+scrolls[38806]="enchant cloak - defense";
+scrolls[38803]="enchant bracer - lesser intellect";
+scrolls[38804]="enchant chest - minor stats";
+scrolls[38799]="enchant chest - mana";
+scrolls[38800]="enchant gloves - mining";
+scrolls[38801]="enchant gloves - herbalism";
+scrolls[38802]="enchant gloves - fishing";
+scrolls[38797]="enchant bracer - lesser strength";
+scrolls[38798]="enchant chest - lesser absorption";
+scrolls[38795]="enchant cloak - lesser shadow resistance";
+scrolls[38792]="enchant shield - lesser spirit";
+scrolls[38793]="enchant bracer - lesser stamina";
+scrolls[38784]="enchant cloak - lesser fire resistance";
+scrolls[38785]="enchant boots - minor stamina";
+scrolls[38786]="enchant boots - minor agility";
+scrolls[38782]="enchant chest - health";
+scrolls[38783]="enchant bracer - lesser spirit";
+scrolls[38790]="enchant cloak - lesser protection";
+scrolls[38791]="enchant shield - lesser protection";
+scrolls[38789]="enchant cloak - minor agility";
+scrolls[38787]="enchant shield - minor stamina";
+scrolls[38776]="enchant chest - lesser mana";
+scrolls[38777]="enchant bracer - minor agility";
+scrolls[38778]="enchant bracer - minor strength";
+scrolls[38775]="enchant cloak - minor protection";
+scrolls[38773]="enchant chest - lesser health";
+scrolls[38774]="enchant bracer - minor spirit";
+scrolls[38771]="enchant bracer - minor stamina";
+scrolls[38770]="enchant cloak - minor resistance";
+scrolls[38767]="enchant chest - minor absorption";
+scrolls[38768]="enchant bracer - minor deflection";
+scrolls[38769]="enchant chest - minor mana";
+scrolls[38766]="enchant chest - minor health";
+scrolls[38679]="enchant bracer - minor health";
+scrolls[38972]="enchant weapon - lifeward";
+scrolls[38991]="enchant weapon - exceptional spellpower";
+scrolls[38994]="enchant weapon - exceptional healing";
+scrolls[43987]="enchant weapon - black magic";
+scrolls[44467]="enchant weapon - mighty spellpower";
+scrolls[45056]="enchant staff - greater spellpower";
+scrolls[38965]="enchant weapon - icebreaker";
+scrolls[38995]="enchant weapon - exceptional agility";
+scrolls[38988]="enchant weapon - giant slayer";
+scrolls[38992]="enchant 2h weapon - greater savagery";
+scrolls[38963]="enchant weapon - exceptional spirit";
+scrolls[38981]="enchant 2h weapon - scourgebane";
+scrolls[45060]="enchant staff - spellpower";
+scrolls[46026]="enchant weapon - blade ward";
+scrolls[46098]="enchant weapon - blood draining";
+scrolls[44463]="enchant 2h weapon - massacre";
+scrolls[44466]="enchant weapon - superior potency";
+scrolls[44493]="enchant weapon - berserking";
+scrolls[38923]="enchant weapon - sunfire";
+scrolls[38924]="enchant weapon - soulfrost";
+scrolls[38925]="enchant weapon - mongoose";
+scrolls[38948]="enchant weapon - executioner";
+scrolls[38998]="enchant weapon - deathfrost";
+scrolls[44497]="enchant weapon - accuracy";
+scrolls[38922]="enchant 2h weapon - major agility";
+scrolls[38926]="enchant weapon - spellsurge";
+scrolls[38927]="enchant weapon - battlemaster";
+scrolls[44453]="enchant weapon - greater potency";
+scrolls[38884]="enchant weapon - mighty intellect";
+scrolls[38919]="enchant 2h weapon - savagery";
+scrolls[38920]="enchant weapon - potency";
+scrolls[38921]="enchant weapon - major spellpower";
+scrolls[38946]="enchant weapon - major healing";
+scrolls[38947]="enchant weapon - greater agility";
+scrolls[38917]="enchant weapon - major striking";
+scrolls[38918]="enchant weapon - major intellect";
+scrolls[38883]="enchant weapon - mighty spirit";
+scrolls[38871]="enchant weapon - lifestealing";
+scrolls[38874]="enchant 2h weapon - major spirit";
+scrolls[38873]="enchant weapon - crusader";
+scrolls[38870]="enchant weapon - superior striking";
+scrolls[38875]="enchant 2h weapon - major intellect";
+scrolls[38877]="enchant weapon - spellpower";
+scrolls[38878]="enchant weapon - healing power";
+scrolls[38869]="enchant 2h weapon - superior impact";
+scrolls[38872]="enchant weapon - unholy weapon";
+scrolls[38879]="enchant weapon - strength";
+scrolls[38880]="enchant weapon - agility";
+scrolls[38896]="enchant 2h weapon - agility";
+scrolls[38868]="enchant weapon - icy chill";
+scrolls[38838]="enchant weapon - fiery weapon";
+scrolls[38848]="enchant weapon - greater striking";
+scrolls[38845]="enchant 2h weapon - greater impact";
+scrolls[38840]="enchant weapon - demonslaying";
+scrolls[38822]="enchant 2h weapon - impact";
+scrolls[38821]="enchant weapon - striking";
+scrolls[38876]="enchant weapon - winter's might";
+scrolls[38813]="enchant weapon - lesser beastslayer";
+scrolls[38814]="enchant weapon - lesser elemental slayer";
+scrolls[38796]="enchant 2h weapon - lesser impact";
+scrolls[38794]="enchant weapon - lesser striking";
+scrolls[38788]="enchant 2h weapon - lesser spirit";
+scrolls[38772]="enchant 2h weapon - minor impact";
+scrolls[38779]="enchant weapon - minor beastslayer";
+scrolls[38780]="enchant weapon - minor striking";
+scrolls[38781]="enchant 2h weapon - lesser intellect";
+
+Now go to wowhead, spells -> professions -> enchanting and search for "enchant" and select a few slots to limit the amount of results again.
+http://www.wowhead.com/spells=11.333?filter=sl=16:18:5:8:11:10;na=enchant
+http://www.wowhead.com/spells=11.333?filter=sl=1:23:7:21:2:22:13:24:15:28:14:4:3:19:25:12:17:6:9;na=enchant
+
+Run this in the Firebug console at both pages:
+	
+	var enchants = "";
+	for(var itemId in _)
+	{
+	    if(!isNaN(itemId))
+	        enchants += 'enchants["' + _[itemId].name_enus.toLowerCase().replace("scroll of ", "") + '"]=' + itemId + ';\n';
+	}
+	alert(enchants);
+
+Copy the alert contents (example):
+
+s
+
+Now go in-game and use the addon called WowLua to parse this. Use _Dev to dump the contents of the scrolls table, and Chatter to copy it.
+
+	local scrolls = {};
+	<INSERT YOUR SCROLLS LIST HERE>
+	
+	local enchants = {};
+	<INSERT YOUR ENCHANTS LIST HERE>
+	
+	for itemId, scrollName in pairs(scrolls) do
+	   if enchants[scrollName] then
+	      scrolls[itemId] = enchants[scrollName];
+	   else
+	      print("No match for " .. scrollName);
+	   end
+	end
+	
+	dump(ChatFrame1, scrolls);
+
+Result:
+
+{
+    [38898] = 27905;
+    [38914] = 27961;
+    [38930] = 33992;
+    [38946] = 34010;
+    [38962] = 44509;
+    [38978] = 44591;
+    [38994] = “enchant weapon - exceptional healing”;
+    [38771] = 7457;
+    [38787] = 13378;
+    [38803] = 13622;
+    [38819] = 13687;
+    [44456] = 60609;
+    [38851] = 13948;
+    [38867] = 20028;
+    [38883] = 23803;
+    [38899] = 27906;
+    [38915] = 27962;
+    [38931] = 33993;
+    [38947] = 42620;
+    [38963] = 44510;
+    [38979] = 44592;
+    [38995] = 44633;
+    [38772] = 7745;
+    [38788] = 13380;
+    [38804] = 13626;
+    [38820] = 13689;
+    [44457] = 60663;
+    [38852] = 20008;
+    [38868] = 20029;
+    [38884] = 23804;
+    [38900] = 27911;
+    [38932] = 33994;
+    [38948] = 42974;
+    [38964] = 44513;
+    [38980] = 44593;
+    [38996] = “enchant bracers - major healing”;
+    [38773] = 7748;
+    [38789] = 13419;
+    [38805] = 13631;
+    [38821] = 13693;
+    [38837] = 13890;
+    [38853] = 20009;
+    [38869] = 20030;
+    [38885] = 25072;
+    [38901] = 27913;
+    [38917] = 27967;
+    [38933] = 33995;
+    [38949] = 44383;
+    [38965] = 44524;
+    [38981] = 44595;
+    [38997] = 44635;
+    [38774] = 7766;
+    [38790] = 13421;
+    [38806] = 13635;
+    [38822] = 13695;
+    [38838] = 13898;
+    [38854] = 20010;
+    [38870] = 20031;
+    [38886] = 25073;
+    [38902] = 27914;
+    [38918] = 27968;
+    [38934] = 33996;
+    [38950] = 44483;
+    [38966] = 44528;
+    [38982] = 44596;
+    [38998] = 46578;
+    [38679] = 7418;
+    [38775] = 7771;
+    [38791] = 13464;
+    [38807] = 13637;
+    [38823] = 13698;
+    [38839] = 13905;
+    [38855] = 20011;
+    [38871] = 20032;
+    [38887] = 25074;
+    [38903] = 27917;
+    [38919] = 27971;
+    [38935] = 33997;
+    [38951] = 44484;
+    [38967] = 44529;
+    [38983] = “enchant shield - exceptional stamina”;
+    [38999] = 46594;
+    [50816] = 71692;
+    [38776] = 7776;
+    [38792] = 13485;
+    [38808] = 13640;
+    [38824] = 13700;
+    [38840] = 13915;
+    [38856] = 20012;
+    [44493] = 59621;
+    [38888] = 25078;
+    [38904] = 27944;
+    [38920] = 27972;
+    [38936] = 33999;
+    [38968] = 44555;
+    [38984] = “enchant bracer - expertise”;
+    [39000] = 47051;
+    [38777] = 7779;
+    [38793] = 13501;
+    [38809] = 13642;
+    [38825] = 13746;
+    [38841] = 13917;
+    [38857] = 20013;
+    [38873] = 20034;
+    [38889] = 25079;
+    [38905] = 27945;
+    [38921] = 27975;
+    [38937] = 34001;
+    [38953] = 44488;
+    [38969] = 44556;
+    [45628] = 63746;
+    [39001] = 47672;
+    [38778] = 7782;
+    [38794] = 13503;
+    [38810] = 13644;
+    [38826] = 13794;
+    [44463] = 60691;
+    [38858] = 20014;
+    [38874] = 20035;
+    [38890] = 25080;
+    [38906] = 27946;
+    [38922] = 27977;
+    [38938] = 34002;
+    [38954] = 44489;
+    [38970] = “enchant gloves - exceptional healing”;
+    [38986] = 60623;
+    [39002] = 47766;
+    [44815] = 44575;
+    [38779] = 7786;
+    [38795] = 13522;
+    [38811] = 13646;
+    [38827] = 13815;
+    [38843] = 13933;
+    [38859] = 20015;
+    [38875] = 20036;
+    [38891] = 25081;
+    [38907] = 27947;
+    [38923] = 27981;
+    [38939] = 34003;
+    [38955] = 44492;
+    [38971] = 60616;
+    [38987] = 44616;
+    [39003] = 47898;
+    [38780] = 7788;
+    [38796] = 13529;
+    [38812] = 13648;
+    [44449] = 60606;
+    [38844] = 13935;
+    [38860] = 20016;
+    [38876] = 21931;
+    [38892] = 25082;
+    [38908] = 27948;
+    [45056] = 62948;
+    [38940] = 34004;
+    [38956] = 44494;
+    [38972] = 44576;
+    [38988] = 44621;
+    [39004] = 47899;
+    [38781] = 7793;
+    [38797] = 13536;
+    [38813] = 13653;
+    [38829] = 13822;
+    [44466] = 60707;
+    [38861] = 20017;
+    [38877] = 22749;
+    [38893] = 25083;
+    [38909] = 27950;
+    [38925] = 27984;
+    [38941] = 34005;
+    [38957] = “enchant weapon - exceptional striking”;
+    [38973] = 44582;
+    [38989] = 44623;
+    [39005] = 47900;
+    [38766] = 7420;
+    [38782] = 7857;
+    [38798] = 13538;
+    [38814] = 13655;
+    [38830] = 13836;
+    [44467] = 60714;
+    [38862] = 20020;
+    [38878] = 22750;
+    [38894] = 25084;
+    [38910] = 27954;
+    [38926] = 28003;
+    [38942] = 34006;
+    [38958] = “enchant weapon - exceptional intellect”;
+    [38974] = 44584;
+    [38990] = 44625;
+    [39006] = 47901;
+    [38767] = 7426;
+    [38783] = 7859;
+    [38799] = 13607;
+    [38815] = 13657;
+    [38831] = 13841;
+    [38847] = 13941;
+    [38863] = 20023;
+    [38879] = 23799;
+    [38895] = 25086;
+    [38911] = 27957;
+    [38927] = 28004;
+    [38943] = 34007;
+    [38959] = 44500;
+    [38975] = 44588;
+    [38991] = 44629;
+    [38768] = 7428;
+    [38784] = 7861;
+    [38800] = 13612;
+    [38816] = 13659;
+    [44453] = 60621;
+    [44469] = 60763;
+    [38864] = 20024;
+    [38880] = 23800;
+    [38896] = 27837;
+    [38912] = 27958;
+    [45060] = 62959;
+    [38944] = 34008;
+    [38960] = 44506;
+    [38976] = 44589;
+    [38992] = 44630;
+    [37603] = 27951;
+    [44465] = 60692;
+    [46098] = 64579;
+    [38769] = 7443;
+    [38785] = 7863;
+    [38801] = 13617;
+    [38817] = 13661;
+    [38833] = 13858;
+    [44470] = “enchant bracer - superior spellpower”;
+    [38865] = 20025;
+    [38881] = 23801;
+    [38897] = 27899;
+    [38913] = 27960;
+    [38929] = 33991;
+    [38945] = 34009;
+    [38961] = 44508;
+    [38977] = 44590;
+    [38993] = 44631;
+    [38832] = 13846;
+    [44458] = 60668;
+    [38872] = 20033;
+    [38928] = 33990;
+    [46026] = 64441;
+    [38849] = 13945;
+    [38845] = 13937;
+    [38848] = 13943;
+    [43987] = 59625;
+    [44947] = “enchant bracer - major stamina”;
+    [38835] = 13882;
+    [38846] = 13939;
+    [38834] = 13868;
+    [38842] = 13931;
+    [44497] = 59619;
+    [38828] = 13817;
+    [38836] = 13887;
+    [38770] = 7454;
+    [38786] = 7867;
+    [38802] = 13620;
+    [38818] = 13663;
+    [44455] = 60653;
+    [38850] = 13947;
+    [38866] = 20026;
+    [38882] = 23802;
+    [38924] = 27982;
+}
+
+Manually fix the ones missing.
+
+Finally, if you wish to switch the keys with the values, do a reg replace;
+
+\[([0-9]+)\] = ([0-9]+); into [\2] = \1,
+
+{
+    [27905] = 38898,
+    [27961] = 38914,
+    [33992] = 38930,
+    [34010] = 38946,
+    [44509] = 38962,
+    [44591] = 38978,
+    [7457] = 38771,
+    [13378] = 38787,
+    [13622] = 38803,
+    [13687] = 38819,
+    [60609] = 44456,
+    [13948] = 38851,
+    [20028] = 38867,
+    [23803] = 38883,
+    [27906] = 38899,
+    [27962] = 38915,
+    [33993] = 38931,
+    [42620] = 38947,
+    [44510] = 38963,
+    [44592] = 38979,
+    [44633] = 38995,
+    [7745] = 38772,
+    [13380] = 38788,
+    [13626] = 38804,
+    [13689] = 38820,
+    [60663] = 44457,
+    [20008] = 38852,
+    [20029] = 38868,
+    [23804] = 38884,
+    [27911] = 38900,
+    [33994] = 38932,
+    [42974] = 38948,
+    [44513] = 38964,
+    [44593] = 38980,
+    [7748] = 38773,
+    [13419] = 38789,
+    [13631] = 38805,
+    [13693] = 38821,
+    [13890] = 38837,
+    [20009] = 38853,
+    [20030] = 38869,
+    [25072] = 38885,
+    [27913] = 38901,
+    [27967] = 38917,
+    [33995] = 38933,
+    [44383] = 38949,
+    [44524] = 38965,
+    [44595] = 38981,
+    [44635] = 38997,
+    [7766] = 38774,
+    [13421] = 38790,
+    [13635] = 38806,
+    [13695] = 38822,
+    [13898] = 38838,
+    [20010] = 38854,
+    [20031] = 38870,
+    [25073] = 38886,
+    [27914] = 38902,
+    [27968] = 38918,
+    [33996] = 38934,
+    [44483] = 38950,
+    [44528] = 38966,
+    [44596] = 38982,
+    [46578] = 38998,
+    [7418] = 38679,
+    [7771] = 38775,
+    [13464] = 38791,
+    [13637] = 38807,
+    [13698] = 38823,
+    [13905] = 38839,
+    [20011] = 38855,
+    [20032] = 38871,
+    [25074] = 38887,
+    [27917] = 38903,
+    [27971] = 38919,
+    [33997] = 38935,
+    [44484] = 38951,
+    [44529] = 38967,
+    [46594] = 38999,
+    [71692] = 50816,
+    [7776] = 38776,
+    [13485] = 38792,
+    [13640] = 38808,
+    [13700] = 38824,
+    [13915] = 38840,
+    [20012] = 38856,
+    [59621] = 44493,
+    [25078] = 38888,
+    [27944] = 38904,
+    [27972] = 38920,
+    [33999] = 38936,
+    [44555] = 38968,
+    [44598] = 38984,
+    [47051] = 39000,
+    [7779] = 38777,
+    [13501] = 38793,
+    [13642] = 38809,
+    [13746] = 38825,
+    [13917] = 38841,
+    [20013] = 38857,
+    [20034] = 38873,
+    [25079] = 38889,
+    [27945] = 38905,
+    [27975] = 38921,
+    [34001] = 38937,
+    [44488] = 38953,
+    [44556] = 38969,
+    [63746] = 45628,
+    [47672] = 39001,
+    [7782] = 38778,
+    [13503] = 38794,
+    [13644] = 38810,
+    [13794] = 38826,
+    [60691] = 44463,
+    [20014] = 38858,
+    [20035] = 38874,
+    [25080] = 38890,
+    [27946] = 38906,
+    [27977] = 38922,
+    [34002] = 38938,
+    [44489] = 38954,
+    [60623] = 38986,
+    [47766] = 39002,
+    [44575] = 44815,
+    [7786] = 38779,
+    [13522] = 38795,
+    [13646] = 38811,
+    [13815] = 38827,
+    [13933] = 38843,
+    [20015] = 38859,
+    [20036] = 38875,
+    [25081] = 38891,
+    [27947] = 38907,
+    [27981] = 38923,
+    [34003] = 38939,
+    [44492] = 38955,
+    [60616] = 38971,
+    [44616] = 38987,
+    [47898] = 39003,
+    [7788] = 38780,
+    [13529] = 38796,
+    [13648] = 38812,
+    [60606] = 44449,
+    [13935] = 38844,
+    [20016] = 38860,
+    [21931] = 38876,
+    [25082] = 38892,
+    [27948] = 38908,
+    [62948] = 45056,
+    [34004] = 38940,
+    [44494] = 38956,
+    [44576] = 38972,
+    [44621] = 38988,
+    [47899] = 39004,
+    [7793] = 38781,
+    [13536] = 38797,
+    [13653] = 38813,
+    [13822] = 38829,
+    [60707] = 44466,
+    [20017] = 38861,
+    [22749] = 38877,
+    [25083] = 38893,
+    [27950] = 38909,
+    [27984] = 38925,
+    [34005] = 38941,
+    [44582] = 38973,
+    [44623] = 38989,
+    [47900] = 39005,
+    [7420] = 38766,
+    [7857] = 38782,
+    [13538] = 38798,
+    [13655] = 38814,
+    [13836] = 38830,
+    [60714] = 44467,
+    [20020] = 38862,
+    [22750] = 38878,
+    [25084] = 38894,
+    [27954] = 38910,
+    [28003] = 38926,
+    [34006] = 38942,
+    [44584] = 38974,
+    [44625] = 38990,
+    [47901] = 39006,
+    [7426] = 38767,
+    [7859] = 38783,
+    [13607] = 38799,
+    [13657] = 38815,
+    [13841] = 38831,
+    [13941] = 38847,
+    [20023] = 38863,
+    [23799] = 38879,
+    [25086] = 38895,
+    [27957] = 38911,
+    [28004] = 38927,
+    [34007] = 38943,
+    [44500] = 38959,
+    [44588] = 38975,
+    [44629] = 38991,
+    [7428] = 38768,
+    [7861] = 38784,
+    [13612] = 38800,
+    [13659] = 38816,
+    [60621] = 44453,
+    [60763] = 44469,
+    [20024] = 38864,
+    [23800] = 38880,
+    [27837] = 38896,
+    [27958] = 38912,
+    [62959] = 45060,
+    [34008] = 38944,
+    [44506] = 38960,
+    [44589] = 38976,
+    [44630] = 38992,
+    [27951] = 37603,
+    [60692] = 44465,
+    [64579] = 46098,
+    [7443] = 38769,
+    [7863] = 38785,
+    [13617] = 38801,
+    [13661] = 38817,
+    [13858] = 38833,
+    [60767] = 44470,
+    [20025] = 38865,
+    [23801] = 38881,
+    [27899] = 38897,
+    [27960] = 38913,
+    [33991] = 38929,
+    [34009] = 38945,
+    [44508] = 38961,
+    [44590] = 38977,
+    [44631] = 38993,
+    [13846] = 38832,
+    [60668] = 44458,
+    [20033] = 38872,
+    [33990] = 38928,
+    [64441] = 46026,
+    [13945] = 38849,
+    [13937] = 38845,
+    [13943] = 38848,
+    [59625] = 43987,
+    [62256] = 44947,
+    [13882] = 38835,
+    [13939] = 38846,
+    [13868] = 38834,
+    [13931] = 38842,
+    [59619] = 44497,
+    [13817] = 38828,
+    [13887] = 38836,
+    [7454] = 38770,
+    [7867] = 38786,
+    [13620] = 38802,
+    [13663] = 38818,
+    [60653] = 44455,
+    [13947] = 38850,
+    [20026] = 38866,
+    [23802] = 38882,
+    [27982] = 38924,
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Data/Scrolls.lua	Wed Oct 20 01:30:51 2010 +0200
@@ -0,0 +1,261 @@
+local addon = select(2, ...);
+
+addon.scrollIds = {
+    [27905] = 38898,
+    [27961] = 38914,
+    [33992] = 38930,
+    [34010] = 38946,
+    [44509] = 38962,
+    [44591] = 38978,
+    [7457] = 38771,
+    [13378] = 38787,
+    [13622] = 38803,
+    [13687] = 38819,
+    [60609] = 44456,
+    [13948] = 38851,
+    [20028] = 38867,
+    [23803] = 38883,
+    [27906] = 38899,
+    [27962] = 38915,
+    [33993] = 38931,
+    [42620] = 38947,
+    [44510] = 38963,
+    [44592] = 38979,
+    [44633] = 38995,
+    [7745] = 38772,
+    [13380] = 38788,
+    [13626] = 38804,
+    [13689] = 38820,
+    [60663] = 44457,
+    [20008] = 38852,
+    [20029] = 38868,
+    [23804] = 38884,
+    [27911] = 38900,
+    [33994] = 38932,
+    [42974] = 38948,
+    [44513] = 38964,
+    [44593] = 38980,
+    [7748] = 38773,
+    [13419] = 38789,
+    [13631] = 38805,
+    [13693] = 38821,
+    [13890] = 38837,
+    [20009] = 38853,
+    [20030] = 38869,
+    [25072] = 38885,
+    [27913] = 38901,
+    [27967] = 38917,
+    [33995] = 38933,
+    [44383] = 38949,
+    [44524] = 38965,
+    [44595] = 38981,
+    [44635] = 38997,
+    [7766] = 38774,
+    [13421] = 38790,
+    [13635] = 38806,
+    [13695] = 38822,
+    [13898] = 38838,
+    [20010] = 38854,
+    [20031] = 38870,
+    [25073] = 38886,
+    [27914] = 38902,
+    [27968] = 38918,
+    [33996] = 38934,
+    [44483] = 38950,
+    [44528] = 38966,
+    [44596] = 38982,
+    [46578] = 38998,
+    [7418] = 38679,
+    [7771] = 38775,
+    [13464] = 38791,
+    [13637] = 38807,
+    [13698] = 38823,
+    [13905] = 38839,
+    [20011] = 38855,
+    [20032] = 38871,
+    [25074] = 38887,
+    [27917] = 38903,
+    [27971] = 38919,
+    [33997] = 38935,
+    [44484] = 38951,
+    [44529] = 38967,
+    [46594] = 38999,
+    [71692] = 50816,
+    [7776] = 38776,
+    [13485] = 38792,
+    [13640] = 38808,
+    [13700] = 38824,
+    [13915] = 38840,
+    [20012] = 38856,
+    [59621] = 44493,
+    [25078] = 38888,
+    [27944] = 38904,
+    [27972] = 38920,
+    [33999] = 38936,
+    [44555] = 38968,
+    [44598] = 38984,
+    [47051] = 39000,
+    [7779] = 38777,
+    [13501] = 38793,
+    [13642] = 38809,
+    [13746] = 38825,
+    [13917] = 38841,
+    [20013] = 38857,
+    [20034] = 38873,
+    [25079] = 38889,
+    [27945] = 38905,
+    [27975] = 38921,
+    [34001] = 38937,
+    [44488] = 38953,
+    [44556] = 38969,
+    [63746] = 45628,
+    [47672] = 39001,
+    [7782] = 38778,
+    [13503] = 38794,
+    [13644] = 38810,
+    [13794] = 38826,
+    [60691] = 44463,
+    [20014] = 38858,
+    [20035] = 38874,
+    [25080] = 38890,
+    [27946] = 38906,
+    [27977] = 38922,
+    [34002] = 38938,
+    [44489] = 38954,
+    [60623] = 38986,
+    [47766] = 39002,
+    [44575] = 44815,
+    [7786] = 38779,
+    [13522] = 38795,
+    [13646] = 38811,
+    [13815] = 38827,
+    [13933] = 38843,
+    [20015] = 38859,
+    [20036] = 38875,
+    [25081] = 38891,
+    [27947] = 38907,
+    [27981] = 38923,
+    [34003] = 38939,
+    [44492] = 38955,
+    [60616] = 38971,
+    [44616] = 38987,
+    [47898] = 39003,
+    [7788] = 38780,
+    [13529] = 38796,
+    [13648] = 38812,
+    [60606] = 44449,
+    [13935] = 38844,
+    [20016] = 38860,
+    [21931] = 38876,
+    [25082] = 38892,
+    [27948] = 38908,
+    [62948] = 45056,
+    [34004] = 38940,
+    [44494] = 38956,
+    [44576] = 38972,
+    [44621] = 38988,
+    [47899] = 39004,
+    [7793] = 38781,
+    [13536] = 38797,
+    [13653] = 38813,
+    [13822] = 38829,
+    [60707] = 44466,
+    [20017] = 38861,
+    [22749] = 38877,
+    [25083] = 38893,
+    [27950] = 38909,
+    [27984] = 38925,
+    [34005] = 38941,
+    [44582] = 38973,
+    [44623] = 38989,
+    [47900] = 39005,
+    [7420] = 38766,
+    [7857] = 38782,
+    [13538] = 38798,
+    [13655] = 38814,
+    [13836] = 38830,
+    [60714] = 44467,
+    [20020] = 38862,
+    [22750] = 38878,
+    [25084] = 38894,
+    [27954] = 38910,
+    [28003] = 38926,
+    [34006] = 38942,
+    [44584] = 38974,
+    [44625] = 38990,
+    [47901] = 39006,
+    [7426] = 38767,
+    [7859] = 38783,
+    [13607] = 38799,
+    [13657] = 38815,
+    [13841] = 38831,
+    [13941] = 38847,
+    [20023] = 38863,
+    [23799] = 38879,
+    [25086] = 38895,
+    [27957] = 38911,
+    [28004] = 38927,
+    [34007] = 38943,
+    [44500] = 38959,
+    [44588] = 38975,
+    [44629] = 38991,
+    [7428] = 38768,
+    [7861] = 38784,
+    [13612] = 38800,
+    [13659] = 38816,
+    [60621] = 44453,
+    [60763] = 44469,
+    [20024] = 38864,
+    [23800] = 38880,
+    [27837] = 38896,
+    [27958] = 38912,
+    [62959] = 45060,
+    [34008] = 38944,
+    [44506] = 38960,
+    [44589] = 38976,
+    [44630] = 38992,
+    [27951] = 37603,
+    [60692] = 44465,
+    [64579] = 46098,
+    [7443] = 38769,
+    [7863] = 38785,
+    [13617] = 38801,
+    [13661] = 38817,
+    [13858] = 38833,
+    [60767] = 44470,
+    [20025] = 38865,
+    [23801] = 38881,
+    [27899] = 38897,
+    [27960] = 38913,
+    [33991] = 38929,
+    [34009] = 38945,
+    [44508] = 38961,
+    [44590] = 38977,
+    [44631] = 38993,
+    [13846] = 38832,
+    [60668] = 44458,
+    [20033] = 38872,
+    [33990] = 38928,
+    [64441] = 46026,
+    [13945] = 38849,
+    [13937] = 38845,
+    [13943] = 38848,
+    [59625] = 43987,
+    [62256] = 44947,
+    [13882] = 38835,
+    [13939] = 38846,
+    [13868] = 38834,
+    [13931] = 38842,
+    [59619] = 44497,
+    [13817] = 38828,
+    [13887] = 38836,
+    [7454] = 38770,
+    [7867] = 38786,
+    [13620] = 38802,
+    [13663] = 38818,
+    [60653] = 44455,
+    [13947] = 38850,
+    [20026] = 38866,
+    [23802] = 38882,
+    [27982] = 38924,
+};
\ No newline at end of file
--- a/Inventorium.toc	Mon Oct 18 19:37:43 2010 +0200
+++ b/Inventorium.toc	Wed Oct 20 01:30:51 2010 +0200
@@ -12,6 +12,9 @@
 Summary.lua
 Queue.lua
 
+Data\PremadeGroups.lua
+Data\Scrolls.lua
+
 AuctionAddons\Auctionator.lua
 AuctionAddons\Auctioneer.lua
 AuctionAddons\AuctionLite.lua
@@ -19,6 +22,9 @@
 AuctionAddons\Others.lua
 
 ItemCountAddons\Altoholic.lua
+ItemCountAddons\DataStore (current account only).lua
+ItemCountAddons\DataStore (with guilds).lua
+ItemCountAddons\DataStore (without guilds).lua
 ItemCountAddons\ItemCount.lua
 
 CraftingAddons\AdvancedTradeSkillWindow.lua
--- a/ItemCountAddons/Altoholic.lua	Mon Oct 18 19:37:43 2010 +0200
+++ b/ItemCountAddons/Altoholic.lua	Wed Oct 20 01:30:51 2010 +0200
@@ -1,6 +1,6 @@
 do
 	
-	local function GetCount(itemId)
+	local function GetTotalCount(itemId)
 		return Altoholic:GetItemCount(itemId) or -1;
 	end
 	
@@ -8,6 +8,6 @@
 		return (Altoholic and Altoholic.GetItemCount);
 	end
 	
-	IMRegisterItemCountAddon("Altoholic", GetCount, IsEnabled);
+	IMRegisterItemCountAddon("Altoholic", GetTotalCount, nil, IsEnabled);
 	
 end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ItemCountAddons/DataStore (current account only).lua	Wed Oct 20 01:30:51 2010 +0200
@@ -0,0 +1,37 @@
+do
+	
+	local function GetTotalCount(itemId)
+		local realm = GetRealmName();
+		
+		local totalCount = 0;
+		
+		-- Process all charracters on this account (GetCharacters defaults to THIS_ACCOUNT)
+		for characterName, character in pairs(DataStore:GetCharacters(realm, nil)) do
+			-- Get only useful info (currency / gear shouldn't contain the stuff we are interested in)
+			local bag, bank = DataStore:GetContainerItemCount(character, itemId);
+			local auctionHouse = DataStore:GetAuctionHouseItemCount(character, itemId);
+			local mail = DataStore:GetMailItemCount(character, itemId);
+			
+			totalCount = totalCount + bag + bank + auctionHouse + mail;
+		end
+		
+		return totalCount or -1;
+	end
+	
+	local function GetCharacterCount(itemId)
+		local character = DataStore:GetCharacter();
+		
+		local bag, bank = DataStore:GetContainerItemCount(character, itemId);
+		local auctionHouse = DataStore:GetAuctionHouseItemCount(character, itemId);
+		local mail = DataStore:GetMailItemCount(character, itemId);
+		
+		return bag, bank, auctionHouse, mail;
+	end
+	
+	local function IsEnabled()
+		return (DataStore and DataStore.GetContainerItemCount and DataStore.GetAuctionHouseItemCount and DataStore.GetMailItemCount);
+	end
+	
+	IMRegisterItemCountAddon("DataStore (current account only)", GetTotalCount, GetCharacterCount, IsEnabled);
+	
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ItemCountAddons/DataStore (with guilds).lua	Wed Oct 20 01:30:51 2010 +0200
@@ -0,0 +1,56 @@
+do
+	
+	local function GetTotalCount(itemId)
+		local realm = GetRealmName();
+		
+		local totalCount = 0;
+		
+		local guilds = {};
+		
+		-- Process all accounts
+		for accountName in pairs(DataStore:GetAccounts()) do
+		
+			-- Process all charracters
+			for characterName, character in pairs(DataStore:GetCharacters(realm, accountName)) do
+				-- Get only useful info (currency / gear shouldn't contain the stuff we are interested in)
+				local bag, bank = DataStore:GetContainerItemCount(character, itemId);
+				local auctionHouse = DataStore:GetAuctionHouseItemCount(character, itemId);
+				local mail = DataStore:GetMailItemCount(character, itemId);
+				
+				totalCount = totalCount + bag + bank + auctionHouse + mail;
+			end
+			
+			-- Process all guilds
+			for guildName, guild in pairs(DataStore:GetGuilds(realm, accountName)) do
+				if not guilds[guildName] then
+					-- We don't want itemcounts from a single guild to be counted twice, so first to present data wins
+					
+					guilds[guildName] = true;
+					
+					local guild = DataStore:GetGuildBankItemCount(guild, itemId);
+				
+					totalCount = totalCount + guild;
+				end
+			end
+		end
+		
+		return totalCount or -1;
+	end
+	
+	local function GetCharacterCount(itemId)
+		local character = DataStore:GetCharacter();
+		
+		local bag, bank = DataStore:GetContainerItemCount(character, itemId);
+		local auctionHouse = DataStore:GetAuctionHouseItemCount(character, itemId);
+		local mail = DataStore:GetMailItemCount(character, itemId);
+		
+		return bag, bank, auctionHouse, mail;
+	end
+	
+	local function IsEnabled()
+		return (DataStore and DataStore.GetContainerItemCount and DataStore.GetAuctionHouseItemCount and DataStore.GetMailItemCount);
+	end
+	
+	IMRegisterItemCountAddon("DataStore (with guilds)", GetTotalCount, GetCharacterCount, IsEnabled);
+	
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ItemCountAddons/DataStore (without guilds).lua	Wed Oct 20 01:30:51 2010 +0200
@@ -0,0 +1,41 @@
+do
+	
+	local function GetTotalCount(itemId)
+		local realm = GetRealmName();
+		
+		local totalCount = 0;
+		
+		-- Process all accounts
+		for accountName in pairs(DataStore:GetAccounts()) do
+		
+			-- Process all charracters
+			for characterName, character in pairs(DataStore:GetCharacters(realm, accountName)) do
+				-- Get only useful info (currency / gear shouldn't contain the stuff we are interested in)
+				local bag, bank = DataStore:GetContainerItemCount(character, itemId);
+				local auctionHouse = DataStore:GetAuctionHouseItemCount(character, itemId);
+				local mail = DataStore:GetMailItemCount(character, itemId);
+				
+				totalCount = totalCount + bag + bank + auctionHouse + mail;
+			end
+		end
+		
+		return totalCount or -1;
+	end
+	
+	local function GetCharacterCount(itemId)
+		local character = DataStore:GetCharacter();
+		
+		local bag, bank = DataStore:GetContainerItemCount(character, itemId);
+		local auctionHouse = DataStore:GetAuctionHouseItemCount(character, itemId);
+		local mail = DataStore:GetMailItemCount(character, itemId);
+		
+		return bag, bank, auctionHouse, mail;
+	end
+	
+	local function IsEnabled()
+		return (DataStore and DataStore.GetContainerItemCount and DataStore.GetAuctionHouseItemCount and DataStore.GetMailItemCount);
+	end
+	
+	IMRegisterItemCountAddon("DataStore (without guilds)", GetTotalCount, GetCharacterCount, IsEnabled);
+	
+end
--- a/ItemCountAddons/ItemCount.lua	Mon Oct 18 19:37:43 2010 +0200
+++ b/ItemCountAddons/ItemCount.lua	Wed Oct 20 01:30:51 2010 +0200
@@ -1,13 +1,17 @@
 do
 	
-	local function GetCount(itemId)
-		return _GetItemCount(itemId) or -1;
+	local function GetTotalCount(itemId)
+		return ICGetItemCountTotal(itemId) or -1;
+	end
+	
+	local function GetCharacterCount(itemId)
+		return ICGetItemCountCharacter(itemId) or -1;
 	end
 	
 	local function IsEnabled()
-		return (_GetItemCount);
+		return (ICGetItemCountTotal and ICGetItemCountCharacter);
 	end
 	
-	IMRegisterItemCountAddon("ItemCount", GetCount, IsEnabled);
+	IMRegisterItemCountAddon("ItemCount", GetTotalCount, GetCharacterCount, IsEnabled);
 	
 end
--- a/Queue.lua	Mon Oct 18 19:37:43 2010 +0200
+++ b/Queue.lua	Wed Oct 20 01:30:51 2010 +0200
@@ -1,266 +1,6 @@
-local addon = LibStub("AceAddon-3.0"):GetAddon("Inventorium");
+local addon = select(2, ...);
 local mod = addon:NewModule("Queue", "AceEvent-3.0", "AceTimer-3.0");
 
-local scrollIds = {
-	[27951] = 37603,
-	[7418] = 38679,
-	[7420] = 38766,
-	[7426] = 38767,
-	[7428] = 38768,
-	[7443] = 38769,
-	[7454] = 38770,
-	[7457] = 38771,
-	[7745] = 38772,
-	[7748] = 38773,
-	[7766] = 38774,
-	[7771] = 38775,
-	[7776] = 38776,
-	[7779] = 38777,
-	[7782] = 38778,
-	[7786] = 38779,
-	[7788] = 38780,
-	[7793] = 38781,
-	[7857] = 38782,
-	[7859] = 38783,
-	[7861] = 38784,
-	[7863] = 38785,
-	[7867] = 38786,
-	[13378] = 38787,
-	[13380] = 38788,
-	[13419] = 38789,
-	[13421] = 38790,
-	[13464] = 38791,
-	[13485] = 38792,
-	[13501] = 38793,
-	[13503] = 38794,
-	[13522] = 38795,
-	[13529] = 38796,
-	[13536] = 38797,
-	[13538] = 38798,
-	[13607] = 38799,
-	[13612] = 38800,
-	[13617] = 38801,
-	[13620] = 38802,
-	[13622] = 38803,
-	[13626] = 38804,
-	[13631] = 38805,
-	[13635] = 38806,
-	[13637] = 38807,
-	[13640] = 38808,
-	[13642] = 38809,
-	[13644] = 38810,
-	[13646] = 38811,
-	[13648] = 38812,
-	[13653] = 38813,
-	[13655] = 38814,
-	[13657] = 38815,
-	[13659] = 38816,
-	[13661] = 38817,
-	[13663] = 38818,
-	[13687] = 38819,
-	[13689] = 38820,
-	[13693] = 38821,
-	[13695] = 38822,
-	[13698] = 38823,
-	[13700] = 38824,
-	[13746] = 38825,
-	[13794] = 38826,
-	[13815] = 38827,
-	[13817] = 38828,
-	[13822] = 38829,
-	[13836] = 38830,
-	[13841] = 38831,
-	[13846] = 38832,
-	[13858] = 38833,
-	[13868] = 38834,
-	[13882] = 38835,
-	[13887] = 38836,
-	[13890] = 38837,
-	[13898] = 38838,
-	[13905] = 38839,
-	[13915] = 38840,
-	[13917] = 38841,
-	[13931] = 38842,
-	[13933] = 38843,
-	[13935] = 38844,
-	[13937] = 38845,
-	[13939] = 38846,
-	[13941] = 38847,
-	[13943] = 38848,
-	[13945] = 38849,
-	[13947] = 38850,
-	[13948] = 38851,
-	[20008] = 38852,
-	[20009] = 38853,
-	[20010] = 38854,
-	[20011] = 38855,
-	[20012] = 38856,
-	[20013] = 38857,
-	[20014] = 38858,
-	[20015] = 38859,
-	[20016] = 38860,
-	[20017] = 38861,
-	[20020] = 38862,
-	[20023] = 38863,
-	[20024] = 38864,
-	[20025] = 38865,
-	[20026] = 38866,
-	[20028] = 38867,
-	[20029] = 38868,
-	[20030] = 38869,
-	[20031] = 38870,
-	[20032] = 38871,
-	[20033] = 38872,
-	[20034] = 38873,
-	[20035] = 38874,
-	[20036] = 38875,
-	[21931] = 38876,
-	[22749] = 38877,
-	[22750] = 38878,
-	[23799] = 38879,
-	[23800] = 38880,
-	[23801] = 38881,
-	[23802] = 38882,
-	[23803] = 38883,
-	[23804] = 38884,
-	[25072] = 38885,
-	[25073] = 38886,
-	[25074] = 38887,
-	[25078] = 38888,
-	[25079] = 38889,
-	[25080] = 38890,
-	[25081] = 38891,
-	[25082] = 38892,
-	[25083] = 38893,
-	[25084] = 38894,
-	[25086] = 38895,
-	[27837] = 38896,
-	[27899] = 38897,
-	[27905] = 38898,
-	[27906] = 38899,
-	[27911] = 38900,
-	[27913] = 38901,
-	[27914] = 38902,
-	[27917] = 38903,
-	[27944] = 38904,
-	[27945] = 38905,
-	[27946] = 38906,
-	[27947] = 38907,
-	[27948] = 38908,
-	[27950] = 38909,
-	[27954] = 38910,
-	[27957] = 38911,
-	[27958] = 38912,
-	[27960] = 38913,
-	[27961] = 38914,
-	[27962] = 38915,
-	[27967] = 38917,
-	[27968] = 38918,
-	[27971] = 38919,
-	[27972] = 38920,
-	[27975] = 38921,
-	[27977] = 38922,
-	[27981] = 38923,
-	[27982] = 38924,
-	[27984] = 38925,
-	[28003] = 38926,
-	[28004] = 38927,
-	[33990] = 38928,
-	[33991] = 38929,
-	[33992] = 38930,
-	[33993] = 38931,
-	[33994] = 38932,
-	[33995] = 38933,
-	[33996] = 38934,
-	[33997] = 38935,
-	[33999] = 38936,
-	[34001] = 38937,
-	[34002] = 38938,
-	[34003] = 38939,
-	[34004] = 38940,
-	[34005] = 38941,
-	[34006] = 38942,
-	[34007] = 38943,
-	[34008] = 38944,
-	[34009] = 38945,
-	[34010] = 38946,
-	[42620] = 38947,
-	[42974] = 38948,
-	[44383] = 38949,
-	[44483] = 38950,
-	[44484] = 38951,
-	[44488] = 38953,
-	[44489] = 38954,
-	[44492] = 38955,
-	[44494] = 38956,
-	[44500] = 38959,
-	[44506] = 38960,
-	[44508] = 38961,
-	[44509] = 38962,
-	[44510] = 38963,
-	[44513] = 38964,
-	[44524] = 38965,
-	[44528] = 38966,
-	[44529] = 38967,
-	[44555] = 38968,
-	[44556] = 38969,
-	[60616] = 38971,
-	[44576] = 38972,
-	[44582] = 38973,
-	[44584] = 38974,
-	[44588] = 38975,
-	[44589] = 38976,
-	[44590] = 38977,
-	[44591] = 38978,
-	[44592] = 38979,
-	[44593] = 38980,
-	[44595] = 38981,
-	[44596] = 38982,
-	[44598] = 38984,
-	[60623] = 38986,
-	[44616] = 38987,
-	[44621] = 38988,
-	[44623] = 38989,
-	[44625] = 38990,
-	[44629] = 38991,
-	[44630] = 38992,
-	[44631] = 38993,
-	[44633] = 38995,
-	[44635] = 38997,
-	[46578] = 38998,
-	[46594] = 38999,
-	[47051] = 39000,
-	[47672] = 39001,
-	[47766] = 39002,
-	[47898] = 39003,
-	[47899] = 39004,
-	[47900] = 39005,
-	[47901] = 39006,
-	[59625] = 43987,
-	[60606] = 44449,
-	[60621] = 44453,
-	[60653] = 44455,
-	[60609] = 44456,
-	[60663] = 44457,
-	[60668] = 44458,
-	[60691] = 44463,
-	[60692] = 44465,
-	[60707] = 44466,
-	[60714] = 44467,
-	[60763] = 44469,
-	[60767] = 44470,
-	[59621] = 44493,
-	[59619] = 44497,
-	[44575] = 44815,
-	[62256] = 44947,
-	[62948] = 45056,
-	[62959] = 45060,
-	[63746] = 45628,
-	[64441] = 46026,
-	[64579] = 46098,
-	[71692] = 50816,
-};--enchantId=scrollId
-
 function mod:OnEnable()
 	-- Register our own slash commands
 	addon:RegisterSlash(function()
@@ -309,7 +49,7 @@
 	for itemId, _ in pairs(addon.db.global.groups[groupName].items) do
 		if not temp[itemId] then
 			local itemLink = select(2, GetItemInfo(itemId));
-			print("Couldn't queue " .. itemLink);
+			print("Couldn't queue " .. itemLink .. " (not part of this profession)");
 		end
 	end
 end
@@ -324,7 +64,7 @@
 			-- If this isn't an item, it can only be an enchant instead
 			itemId = tonumber(itemLink:match("|Henchant:([-0-9]+)|h"));
 			
-			itemId = scrollIds[itemId]; -- change enchantIds into scrollIds
+			itemId = addon.scrollIds[itemId]; -- change enchantIds into scrollIds
 		end
 		
 		if addon.db.global.groups[groupName].items[itemId] then
@@ -338,9 +78,17 @@
 			local currentStock = addon:GetItemCount(itemId);
 			if currentStock >= 0 then
 				-- Current stock will be -1 when no itemcount addon was found
-				local amount = ( addon:GetOptionByKey(groupName, "restockTarget") - currentStock );
+				local restockTarget = addon:GetOptionByKey(groupName, "restockTarget");
+				local bonusQueue = addon:GetOptionByKey(groupName, "bonusQueue");
+				local minCraftingQueue = floor( addon:GetOptionByKey(groupName, "minCraftingQueue") * restockTarget );
 				
-				if amount > 0 then
+				local amount = ( restockTarget - currentStock );
+				
+				if currentStock == 0 and bonusQueue > 0 then
+					amount = floor( ( amount * ( bonusQueue + 1 ) ) + .5 ); -- round
+				end
+				
+				if amount > 0 and amount >= minCraftingQueue then
 					self:Queue(i, amount);
 					
 					print("Queued " .. amount .. " of " .. itemLink);
--- a/Summary.lua	Mon Oct 18 19:37:43 2010 +0200
+++ b/Summary.lua	Wed Oct 20 01:30:51 2010 +0200
@@ -1,4 +1,4 @@
-local addon = LibStub("AceAddon-3.0"):GetAddon("Inventorium");
+local addon = select(2, ...);
 local mod = addon:NewModule("Summary", "AceEvent-3.0", "AceTimer-3.0");
 
 local AceGUI = LibStub("AceGUI-3.0");
@@ -566,7 +566,7 @@
 	elseif value == -4 then
 		return "|cff00ff00-|r";
 	elseif value < priceThreshold then
-		return ("|cffff0000%s|r"):format(addon:ReadableMoney(value or 0, true));
+		return ("|cffaaaaaa%s|r"):format(addon:ReadableMoney(value or 0, true):gsub("|([a-fA-F0-9]+)([gsc]+)|r", "%2"));
 	else
 		return addon:ReadableMoney(value or 0, true);
 	end