Thread Tools Display Modes
10-13-10, 12:45 PM   #1
Kekskrümel
An Aku'mai Servant
Join Date: Oct 2010
Posts: 39
sFilter Help - attempt to compare number with nil

Hello,

with patch 4.0.1 i get this Error from sFilter:

Interface\AddOns\sFilter\sFilter.lua:273: attempt to compare number with nil
Count: 1

Call Stack:
[C]: ?
Interface\AddOns\sFilter\sFilter.lua:273: in function <Interface\AddOns\sFilter\sFilter.lua:263>

sFilter also doesn't work :/

Can someone take an look in the lua code ? :/ Love this addon and it looks like it is discontinued by the developer :/

I would donate some $ if someone can fix this :/

Thx

Greetings Nils

Here the LUA Code:

Code:
--[[     Options start here     ]]
-- "true" means enabled, "false" means disabled
local configmode = false             -- In this mode all icons are shown and can be moved.
local FontSize = 15                    -- Font size for stacks text
local r, g, b = .8, .8, .8              -- Text color for stacks text More info: http://www.wowwiki.com/API_FontString_SetTextColor
local CountPoint = { "BOTTOMRIGHT", 3,-3 }            -- Stacks text position. More info: http://www.wowwiki.com/API_Region_SetPoint
local bordertex = "Interface\\AddOns\\sFilter\\Textures\\border" -- Texture for icon borders

--[[ More info about config mode:
You can move icons with left mouse button while holding Alt OR Shift. Changed position won't be saved between sessions.
After click on icon you will see in chat info about its position. This can be used to change setPoint attribute is spell list.
Clicking on icon with right mouse button will reset its position to default.
]]

--[[ Closer look at spell lists:
All classes have their own spell list.
Each entry in list creates a separate icon. Entry is a table with values in it:
- spellId - id of spell you want to track. If you don't know it - check wowhead.com - last number in any spell link is spellid (example: http://www.wowhead.com/?spell=55095, id is 55095)
- spellId2, spellId3, spellId4, spellId5 - optional entries, these are the spellids you want to track if primary spell is NOT active.
- size - icon size in pixels
- unitId - unit at which you wish to track selected spell(s). More info: http://www.wowwiki.com/UnitId
- isMine - this is filter. isMine = 1 means only your buff/debuff will be tracked. isMine = "all" means effect from any source will be seen.
- filter - filter again =). Needs to be "HELPFUL" for buffs and "HARMFUL" for debuffs.
- setPoint - where to place the icon. It's a table with coordinates inside. More info: http://www.wowwiki.com/API_Region_SetPoint

I removed alpha settings and some other things, you can use original addon version for these features: http://toxila.googlecode.com/svn/zips/sFilter/
]]

local sFilter_Spells = {
    ["DEATHKNIGHT"] = {
    },
    ["DRUID"] = {
    --[[  BUFFS  ]]--
		--Frenzie Regeneration
		{spellId = 22842, spellId2 = 13159, spellId3 = 34074, spellId4 = 61847, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -7}},
		--Survival isntinct
		{spellId = 61336, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -7}},
		--Barskin
		{spellId = 22812, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -59, -40}},	
		
    --[[  DEBUFFS  ]]--
		--Mangle
		{spellId = 48564, size = 30, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -40}},
		--Lecerate
		{spellId = 48568, spellId2 = 3043, spellId3 = 3034, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 92, -40}},
		--FFF
		{spellId = 60089, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 59, -40}},
		--Demorolazing Roar
		{spellId = 48560, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 26, -40}},
		--Bash
		{spellId = 8983, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 59, -7}},
		--Challeging Roar
		{spellId = 5209, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 26, -7}},
    },
    ["HUNTER"] = {
		--[[  BUFFS  ]]--
		--Aspect of ...
		{spellId = 5118, spellId2 = 13159, spellId3 = 34074, spellId4 = 61847, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -7}},
		--Misdirection
		{spellId = 34477, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -7}},
		--Trueshoot Aura
		{spellId = 19506, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -59, -40}},		
		--Master Tactician
		{spellId = 34837, spellId2 =53224, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -40}},
		--Expose Weakness
		{spellId = 34503, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -40}},
		--Rapid Fire
		{spellId = 3045, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -59, -7}},
		
		--[[  DEBUFFS  ]]--
		--Hunter's Mark
		{spellId = 14325, size = 30, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -40}},
		--Serpent Sting | Scorpid Sting | Viper Sting
		{spellId = 49001, spellId2 = 3043, spellId3 = 3034, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 92, -40}},
		--Lock and Load
		{spellId = 56344, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", 59, -40}},
		--Black Arrow
		{spellId = 63670, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 26, -40}},

		--[[ BOSS ]]--
		--Malygos: Engulf in Flames
		{spellId = 61621, spellId2 = 56092, size = 30, unitId = "target", isMine = "vehicle", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 47}},
		--Hodir: Storm Cloud | Storm Power
		{spellId = 65123, spellId2 = 65134, size = 30, unitId = "player", isMine = "all", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 80}},
		--Hodir: Singed
		{spellId = 65280, size = 30, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 47}},
		--Flame Leviathan: Blue Pyrite
		{spellId = 62489, size = 30, unitId = "target", isMine = "vehicle", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 47}},
		--Yogg-Saron: Shadow Beacon
		{spellId = 64465, size = 30, unitId = "target", isMine = "all", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 47}},
	},
    ["MAGE"] = {
    },
    ["PALADIN"] = {
		--[[  BUFFS  ]]--
		--Seals
		{spellId = 20166, spellId2 = 53739, spellId3 = 31892, spellId4 = 20375, spellId5 = 21084, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -40}},
		--Judgements of the Pure | Holy  Shield
		{spellId = 54155, spellId2 = 48952, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -40}},
		--Light's Grace | Sacred Shield
		{spellId = 31836, spellId2 = 53601, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -7}},		
		--Infusion of Light
		{spellId = 54149, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -7}},
		--Divine Plea
		{spellId = 54428, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -59, -7}},
		
		--[[  DEBUFFS  ]]--
		--Judge
		{spellId = 20271, spellId2 = 20186, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -40}},
		--Heart of the Crusader
		{spellId = 54499, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 92, -40}},
		--Blood Corruption
		{spellId = 53742, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 59, -40}},	
		
		{spellId = 62489, size = 30, unitId = "target", isMine = "vehicle", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 40}},
    },
    ["PRIEST"] = {
    --[[  BUFFS  ]]--
    --Serindipity
		{spellId = 63734, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -7}},
		--Pain Suppresion
		{spellId = 33206, size = 30, unitId = "target", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -7}},
		--Engel
		{spellId = 47788, size = 30, unitId = "target", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -40}},
    },
    ["ROGUE"] = {
		--[[  BUFFS  ]]--
		--Slice
		{spellId = 6774, spellId2 = 53739, spellId3 = 31892, spellId4 = 20375, spellId5 = 21084, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -80}},
		--Trink14
		{spellId = 54155, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -40}},
		--QS
		{spellId = 31836, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -7}},		
		--MT
		{spellId = 54149, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -7}},
		--VS
		{spellId = 54428, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -59, -40}},
		
		--[[  DEBUFFS  ]]--
		--Judge
		{spellId = 20271, spellId2 = 20186, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -40}},
		--Serpent
		{spellId = 48672, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 92, -40}},
		--Crit
		{spellId = 53742, size = 30, unitId = "player", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 59, -40}},	
    },
     ["SHAMAN"] = {
		--[[  BUFFS  ]]--
		--Elemental Oath
		{spellId = 51470, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -7}},
		--Clearcasting | Tidal Waves
		{spellId = 12536, spellId2 = 51566, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -40}},
		--Water Shield | Lightning Shield | Earth Shield
		{spellId = 57960, spellId2 = 49281, spellId3 = 49284, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -40}},
		--Trink
		{spellId = 60485, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -7}},
				
		--[[  DEBUFFS  ]]--
		--Flame Shock
		{spellId = 8050, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -40}},
		--[[ BOSS ]]--
		--Hodir: Storm Cloud | Storm Power
		{spellId = 65123, spellId2 = 65134, size = 30, unitId = "player", isMine = "all", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 80}},
		--Hodir: Singed
		{spellId = 65280, size = 30, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 40}},
		{spellId = 62489, size = 30, unitId = "target", isMine = "vehicle", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 40}},
		--Malygos: Engulf in Flames
		{spellId = 61621, spellId2 = 56092, size = 30, unitId = "target", isMine = "vehicle", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 40}},
    },
    ["WARRIOR"] = {
		--[[  BUFFS  ]]--
		--Commanding Shout | Battle Shout
		{spellId = 47440, spellId2 = 47436, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -40}},
		--Enrage
		{spellId = 13048, spellId2 = 51566, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -40}},
		--Taste for Blood
		{spellId = 56638, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -40}},
		--Sudden Death
		{spellId = 29724, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -40}},
				
		--[[  DEBUFFS  ]]--
		--Rend
		{spellId = 47465, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -40}},
		{spellId = 1160, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -40}},
		
		--[[ BOSS ]]--
		--Hodir: Storm Cloud | Storm Power
		{spellId = 65123, spellId2 = 65134, size = 30, unitId = "player", isMine = "all", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 80}},
		--Hodir: Singed
		{spellId = 65280, size = 30, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 47}},
		{spellId = 62489, size = 30, unitId = "target", isMine = "vehicle", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -215, 47}},
		{spellId = 61621, spellId2 = 56092, size = 30, unitId = "target", isMine = "vehicle", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", -245, 47}},
		
    -- Instant Slam!
    --{spellId = 46916, size = 64, unitId = "player", isMine = "all", filter = "HELPFUL", setPoint = {"LEFT", UIParent, "CENTER", 85, 0}},
    -- Sudden Death
    --{spellId = 52437, size = 64, unitId = "player", isMine = "all", filter = "HELPFUL", setPoint = {"LEFT", UIParent, "CENTER", 85, 0}},
    -- Hamstring
    --{spellId = 1715, size = 32, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 169, 0}},
    -- Rend
    --{spellId = 47465, size = 32, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 206, 0}},
    -- Instant Shield Slam
    --{spellId = 50227, size = 64, unitId = "player", isMine = "all", filter = "HELPFUL", setPoint = {"LEFT", UIParent, "CENTER", 85, 0}},
    -- Armor debuff - major: sunder, expose
    --{spellId = 7386, spellId2 = 48669, size = 32, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 169, 0}},
    -- Attack speed debuff: warrior clap, feral wounds, dk frost fever
    --{spellId = 6343, spellId2 = 48485, spellId3 = 55095, size = 42, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 206, 0}},
    -- Attack power debuff: warrior shout, druid roar, lock curse
    --{spellId = 1160, spellId2 = 48560, spellId3 = 50511, size = 32, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 243, 0}},
    },
    ["WARLOCK"] = {
			--[[  BUFFS  ]]--
		--Fury of the Five Flights | Mjolnir Runestone
		{spellId = 60314, spellId2 = 65019, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -7}},
		--Life Tap (Glyph)
		{spellId = 63321, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -7}},
		--Quick Shots
		{spellId = 6150, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -59, -40}},		
		--Master Tactician
		{spellId = 34837, spellId2 =53224, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -92, -40}},
		--Expose Weakness
		{spellId = 34503, size = 30, unitId = "player", isMine = "player", filter = "HELPFUL", setPoint = {"CENTER", UIParent, "CENTER", -125, -40}},
		
		--[[  DEBUFFS  ]]--
		--Curse: Agony, Weakness, Tongues, Elements, Doom
		{spellId = 980, spellId2 = 1108, spellId3 = 1714, spellId4 = 11721, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -40}},
		--Coruption
		{spellId = 172, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 92, -40}},
		--Unstable Affliction
		{spellId = 47843, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 59, -40}},
		--Black Arrow
		{spellId = 59163, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 26, -40}},
		--Immolate
		{spellId = 47811, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 59, -7}},
		--Conflagrate
		{spellId = 17962, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 26, -7}},
		--Death Coil
		{spellId = 47860, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 26, 26}},
		--Fear
		{spellId = 6215, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 59, 26}},
		--Shadowfury
		{spellId = 47847, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 92, 26}},	
		--Shadowflame
		{spellId = 61290, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, 26}},	
		--Shadow Embrace
		{spellId = 32385, size = 30, unitId = "target", isMine = "player", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 125, -7}},
		--Black Arrow
		{spellId = 30910, spellId2 = 30910, spellId3 = 30910, spellId4 = 30910, spellId5 = 30910, size = 30, unitId = "target", isMine = "all", filter = "HARMFUL", setPoint = {"CENTER", UIParent, "CENTER", 92, -7}},
    }
}

--[[        Options end         ]]

local function sFilter_CreateFrame(data)
    local spellName, _, spellIcon = GetSpellInfo(data.spellId)
    local frame = CreateFrame("Frame", "sFilter_" .. data.unitId .. "_" .. data.spellId, UIParent)
    frame:SetWidth(data.size)
    frame:SetHeight(data.size)
    frame:SetPoint(unpack(data.setPoint))
    frame:RegisterEvent("UNIT_AURA")
    frame:RegisterEvent("PLAYER_TARGET_CHANGED")
    frame:RegisterEvent("PLAYER_ENTERING_WORLD")
    frame:SetScript("OnEvent", function(self, event, ...)
        local unit = ...
        if(data.unitId==unit or event=="PLAYER_TARGET_CHANGED" or event=="PLAYER_ENTERING_WORLD") then
            self.found = false
            self:SetAlpha(1)
            for i=1, 40 do
                local name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable = UnitAura(data.unitId, i, data.filter)
                if((data.isMine=="all" or isMine==data.isMine) and (name==GetSpellInfo(data.spellId) or (data.spellId2 and name==GetSpellInfo(data.spellId2)) or (data.spellId3 and name==GetSpellInfo(data.spellId3)) or (data.spellId4 and name==GetSpellInfo(data.spellId4)) or (data.spellId5 and name==GetSpellInfo(data.spellId5)))) then
                    self.found = true
                    self.icon:SetTexture(icon)
                    self.count:SetText(count>1 and count or "")
                    if(duration>0) then
                        self.cooldown:Show()
                        CooldownFrame_SetTimer(self.cooldown, expirationTime-duration, duration, 1)
                    else
                        self.cooldown:Hide()
                    end
                    break
                end
            end

            if(not self.found) then
                self:SetAlpha(0)
                self.icon:SetTexture(spellIcon)
                self.count:SetText("")
                self.cooldown:Hide()
            end
        end

        if(configmode==true) then
            self:SetAlpha(1)
            self.count:SetText(9)
        end
    end)

    if(configmode==true) then
        frame:SetMovable(true)
        frame:EnableMouse(true)
        frame:RegisterForDrag("LeftButton", "RightButton")
        frame:SetScript("OnMouseDown", function(self)
            if(arg1=="LeftButton") then
                if(IsShiftKeyDown() or IsAltKeyDown()) then
                    self:StartMoving()
                end
            else
                self:ClearAllPoints()
                self:SetPoint(unpack(data.setPoint))
            end
        end)
        frame:SetScript("OnMouseUp", function(self) 
            self:StopMovingOrSizing()
            if(arg1=="LeftButton") then
                local x, y = self:GetCenter()
                print(format("|cffff00ffs|rFilter: setPoint for %s (%s): {%s, UIParent, %s, %s, %s}", data.spellId, spellName, "CENTER", "BOTTOMLEFT", floor(x + 0.5), floor(y + 0.5)))
            end
        end)
    end

    frame.icon = frame:CreateTexture("$parentIcon", "BACKGROUND")
    frame.icon:SetAllPoints(frame)
    frame.icon:SetTexture(spellIcon)
    frame.icon:SetTexCoord(0, 1, 0, 1)

    frame.count = frame:CreateFontString(nil, "OVERLAY")
    frame.count:SetFont("Fonts\\skurri.ttf", FontSize, "OUTLINE")
    frame.count:SetTextColor(r, g, b)
    frame.count:SetPoint(unpack(CountPoint))
    frame.count:SetJustifyH("RIGHT")

    frame.cooldown = CreateFrame("Cooldown", nil, frame, "CooldownFrameTemplate")
    frame.cooldown:SetPoint("TOPLEFT")
    frame.cooldown:SetPoint("BOTTOMRIGHT")
    frame.cooldown:SetReverse()

    frame.overlay = frame:CreateTexture(nil, "OVERLAY")
    frame.overlay:SetTexture(bordertex)
	--frame.overlay:SetAllPoints(frame)
	frame.overlay:SetPoint("TOPLEFT",frame,"TOPLEFT",-1,1)
	frame.overlay:SetPoint("BOTTOMRIGHT",frame,"BOTTOMRIGHT",1,-1)
	frame.overlay:SetVertexColor(0.35, 0.35, 0.35, 1);
	--[[

	--]]
end

local class = select(2, UnitClass("player"))
if(sFilter_Spells and sFilter_Spells[class]) then
    for index in pairs(sFilter_Spells) do
        if(index~=class) then
            sFilter_Spells[index] = nil
        end
    end
    for i=1, #sFilter_Spells[class], 1 do
        sFilter_CreateFrame(sFilter_Spells[class][i])
    end
end

Last edited by Kekskrümel : 10-13-10 at 04:59 PM.
  Reply With Quote
10-13-10, 01:12 PM   #2
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
I think you just need to update your spell IDs to the latest ones found on wowhead.com.
  Reply With Quote
10-13-10, 02:26 PM   #3
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Wow I just got a 30k overkill crit from the wall of text.

In the future the code box makes large amounts of code easily viewable or even pastebin.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
10-13-10, 04:58 PM   #4
Kekskrümel
An Aku'mai Servant
Join Date: Oct 2010
Posts: 39
Originally Posted by nobgul View Post
Wow I just got a 30k overkill crit from the wall of text.

In the future the code box makes large amounts of code easily viewable or even pastebin.
Sorry for that xD

@ Haleth, yeah doesnt noticed that nearly all spell Ids are changed ~~

Thx

Greetings Nils
  Reply With Quote
10-14-10, 05:17 AM   #5
Fuzzyduck
A Kobold Labourer
Join Date: Oct 2010
Posts: 1
Originally Posted by Kekskrümel View Post
Sorry for that xD

@ Haleth, yeah doesnt noticed that nearly all spell Ids are changed ~~

Thx

Greetings Nils
Did it work? It didn't for me
  Reply With Quote
01-12-11, 04:23 AM   #6
groin
A Cyclonian
AddOn Compiler - Click to view compilations
Join Date: Nov 2008
Posts: 45
hi it's possible to change the line

frame.icon:SetTexture(spellIcon)

with something to change the spell icon from square to rectangle?
  Reply With Quote
01-12-11, 11:05 AM   #7
Lordyfrb
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 71
Just had a quick look at the code posted and noticed something, not sure if the 'Closer Look at spell lists' comment near the top of the file is wrong, but it states:

Code:
- isMine - this is filter. isMine = 1 means only your buff/debuff will be tracked. 
isMine = "all" means effect from any source will be seen.
Whereas in you sFilter table below you have:
Code:
isMine = "player"
for most of the table entries, try changing these to the one above to see if that helps.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » sFilter Help - attempt to compare number with nil


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off