Mercurial > wow > itemauditor
comparison Modules/Tooltip.lua @ 8:0271e781b154
Working on converting the database to store items as links instead of names.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Wed, 23 Jun 2010 23:47:48 -0700 |
| parents | bbcf81868171 |
| children | c79ede3c7b82 |
comparison
equal
deleted
inserted
replaced
| 7:bbba2fae0f69 | 8:0271e781b154 |
|---|---|
| 6 local function ShowTipWithPricing(tip, link, num) | 6 local function ShowTipWithPricing(tip, link, num) |
| 7 if (link == nil) then | 7 if (link == nil) then |
| 8 return; | 8 return; |
| 9 end | 9 end |
| 10 | 10 |
| 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(itemName) | 14 local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(link) |
| 15 | 15 |
| 16 local AHCut = 0.05 | 16 local AHCut = 0.05 |
| 17 local keep = 1 - AHCut | 17 local keep = 1 - AHCut |
| 18 | 18 |
| 19 if investedTotal > 0 then | 19 if investedTotal > 0 then |
