From b761d27e3e5223363520086d1db28d2ef7ad396a Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 4 Jun 2009 20:22:36 +0000 Subject: [PATCH] Fix pvp flag issue if doing db scan, add checking to see about item types. --- ARLDatamine.lua | 47 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 9e80df0..ea17ff9 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -900,15 +900,18 @@ function addon:ScanToolTip(name,recipelist,reverselookup,isvendor) if specialty then self:Print(GetSpellInfo(specialty)) end - -- Vendor Flag - if (not flags[4]) and (isvendor) then - tinsert(missingflags,"4") - end - -- PVP Flag - if (((GetSubZoneText() == "Wintergrasp Fortress") or (GetSubZoneText() == "Wintergrasp Fortress")) and (not flags[9])) then - tinsert(missingflags, "9") - elseif (flags[9]) then - tinsert(extraflags, "9") + + if (isvendor) then + -- Vendor Flag + if (not flags[4]) then + tinsert(missingflags,"4") + end + -- PVP Flag + if (((GetSubZoneText() == "Wintergrasp Fortress") or (GetSubZoneText() == "Wintergrasp Fortress")) and (not flags[9])) then + tinsert(missingflags, "9") + elseif (flags[9]) then + tinsert(extraflags, "9") + end end -- Classes @@ -1182,6 +1185,32 @@ function addon:ScanToolTip(name,recipelist,reverselookup,isvendor) if (not tank) and (not healer) and (not caster) and (not dps) then self:Print("No player type flag.") end + if (not Cloth) or + (not Leather) or + (not Mail) or + (not Plate) or + (not Cloak) or + (not Trinket) or + (not Ring) or + (not Necklace) or + (not Shield ) or + (not OneHanded) or + (not TwoHanded) or + (not Axe) or + (not Sword) or + (not Mace) or + (not Polearm) or + (not Dagger) or + (not Staff) or + (not Wand) or + (not Thrown) or + (not Bow) or + (not Crossbow) or + (not Ammo) or + (not Fist) or + (not Gun) then + self:Print("Item type flag") + end end end -- 1.7.9.5