Mercurial > wow > itemauditor
comparison Modules/Tooltip.lua @ 10:c79ede3c7b82
Updated version and added a dependency on my modified API for QuickAuctions. Next I need to make that dependency optional
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Fri, 25 Jun 2010 22:03:44 -0700 |
parents | 0271e781b154 |
children | 6a6296dd249f |
comparison
equal
deleted
inserted
replaced
9:374dd1a90d02 | 10:c79ede3c7b82 |
---|---|
11 -- local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, _, _, _, _, itemVendorPrice = GetItemInfo (link); | 11 -- local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, _, _, _, _, itemVendorPrice = GetItemInfo (link); |
12 -- local _, _, Color, Ltype, Id, Enchant, Gem1, Gem2, Gem3, Gem4, Suffix, Unique, LinkLvl, Name = string.find(link, "|?c?f?f?(%x*)|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?") | 12 -- local _, _, Color, Ltype, Id, Enchant, Gem1, Gem2, Gem3, Gem4, Suffix, Unique, LinkLvl, Name = string.find(link, "|?c?f?f?(%x*)|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?") |
13 | 13 |
14 local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(link) | 14 local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(link) |
15 | 15 |
16 local AHCut = 0.05 | 16 local AHCut = ItemAuditor.db.factionrealm.AHCut |
17 local keep = 1 - AHCut | 17 local keep = 1 - AHCut |
18 | 18 |
19 if investedTotal > 0 then | 19 if investedTotal > 0 then |
20 tip:AddDoubleLine("\124cffffffffIA: Total Invested", utils:FormatMoney(investedTotal)); | 20 tip:AddDoubleLine("\124cffffffffIA: Total Invested", utils:FormatMoney(investedTotal)); |
21 tip:AddDoubleLine("\124cffffffffIA: Invested/Item (" .. count .. ")", utils:FormatMoney(ceil(investedPerItem))); | 21 tip:AddDoubleLine("\124cffffffffIA: Invested/Item (" .. count .. ")", utils:FormatMoney(ceil(investedPerItem))); |