i got this error now after adding it actually
Code:
Message: ...lInterruptAnnouncer\SuccessfulInterruptAnnouncer.lua:83: attempt to concatenate a nil value
Time: 10/15/11 16:34:29
Count: 10
Stack: ...lInterruptAnnouncer\SuccessfulInterruptAnnouncer.lua:83: in function <...lInterruptAnnouncer\SuccessfulInterruptAnnouncer.lua:36>
Locals: self = <unnamed> {
0 = <userdata>
}
event = "COMBAT_LOG_EVENT_UNFILTERED"
numParty = 4
timestamp = 1318689275.11
eventType = "SPELL_AURA_APPLIED"
hideCaster = false
sourceGUID = "0x05000000040A7517"
sourceName = "Daroyce-Frostmane"
sourceFlags = 1298
sourceRaidFlags = 0
destGUID = "0xF130191A00007668"
destName = "Anguished Dead"
destFlags = 68168
destRaidFlags = 0
spellID = 31935
spellName = "Avenger's Shield"
_ = 2
extraskillID = "DEBUFF"
extraskillname = nil
(*temporary) = "Interrupted"
(*temporary) = " "
(*temporary) = nil
(*temporary) = "DEBUFF"
(*temporary) = "attempt to concatenate a nil value"
-- Load Variables
if type(INSraid) ~= "boolean" then
INSraid = false;
else
end
if type(INSparty) ~= "boolean" then
INSparty = false;
else
end
if type(INSyell) ~= "boolean" then
INSyell = true;
else
end
if type(INSsay) ~= "boolean" then
INSsay = true;
else
end
if type(INSself) ~= "boolean" then
INSself = true;
else
end
if type(INSspell) ~= "boolean" then
INSspell = true;
else
end
if type(INStarget) ~= "boolean" then
INStarget = true;
else
end
Code:
-- Define Event Action
local function OnEvent(self, event, ...)
if ( event == "PLAYER_LOGIN" ) then
self:UnregisterEvent("PLAYER_LOGIN");
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
elseif ( event == "COMBAT_LOG_EVENT_UNFILTERED" ) then
local numParty = GetNumPartyMembers();
local timestamp, eventType, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, spellID, spellName, _, extraskillID, extraskillname = ...;
if (eventType == "SPELL_INTERRUPT") and sourceName == UnitName("player") then
intmsg = ("Interrupted");
if(INStarget == true) then
intmsg = (intmsg.." "..destName)
end
if(INSspell == true) then
if(INStarget == true) then
intmsg = (intmsg.."'s "..GetSpellLink(extraskillID))
else
intmsg = (intmsg.." "..GetSpellLink(extraskillID))
end
end
if UnitInRaid("player") and (INSraid == true) then
SendChatMessage(intmsg, "RAID")
elseif UnitInParty("player") and (INSparty == true) and (numParty > 0) then
SendChatMessage(intmsg, "PARTY")
end
if (INSyell == true) then
SendChatMessage(intmsg, "YELL")
end
if (INSsay == true) then
SendChatMessage(intmsg, "SAY")
end
if (INSself == true) then
print(intmsg)
end
elseif (eventType == "SPELL_AURA_APPLIED") and destName == UnitName("target") and spellID == ("31935" or "24259" or "12311" or "12958") then
intmsg = ("Interrupted");
if(INStarget == true) then
intmsg = (intmsg.." "..destName)
end
if(INSspell == true) then
if(INStarget == true) then
intmsg = (intmsg.."'s "..GetSpellLink(extraskillID))
else
intmsg = (intmsg.." "..GetSpellLink(extraskillID))
end
end
if UnitInRaid("player") and (INSraid == true) then
SendChatMessage(intmsg, "RAID")
elseif UnitInParty("player") and (INSparty == true) and (numParty > 0) then
SendChatMessage(intmsg, "PARTY")
end
if (INSyell == true) then
SendChatMessage(intmsg, "YELL")
end
if (INSsay == true) then
SendChatMessage(intmsg, "SAY")
end
if (INSself == true) then
print(intmsg)
end
end
end
end