A Cyclonian
Join Date: Apr 2010
Posts: 42
|
i have an incoming combat data dmg/healing already setup... but it shows all dmg(including dmg/healing i do) i do not want it to show dmg/healing i do... just incoming
lua Code:
local function incomingOnEvent(self, event, ...) local _, eventType, _, sourceGUID, _, sourceFlags = ... --player dmg/healing taken, dodge/parries/misses --- ouch!! they hitting me if eventType == "SWING_DAMAGE" then local _, _, _, amount, _, _, _, _, critical = select(9, ...) self:AddMessage(amount, 1, 0, 0) elseif eventType == "SPELL_DAMAGE" or eventType == "SPELL_PERIODIC_DAMAGE" then local _, _, _, spellId, _, spellSchool, amount, _, _, _, _, _, critical = select(9, ...) self:AddMessage(amount, 1, 0, 0) end --- dodge/parries/misses if eventType == "SWING_MISSED" then local _, _, _, missType, _ = select(9, ...) self:AddMessage(missType, 0.5, 0.9, 1) end if eventType == "SPELL_MISSED" or eventType == "RANGE_MISSED" then local _, _, _, spellId, _, _, missType, _ = select(9,...) self:AddMessage(missType, 0.5, 0.9, 1) end --- getting healed(by others) if eventType == "SPELL_HEAL" or eventType== "SPELL_PERIODIC_HEAL" then local _, _, _, _, _, _, amount, _, _, _ = select(9,...) self:AddMessage(amount, 0, 1, 0) end end
this is the function i use to get my incoming dmg/healing
i have tried few different filters... but cant get it to work 100%
lua Code:
local gflags = bit.bor(COMBATLOG_OBJECT_AFFILIATION_MINE, COMBATLOG_OBJECT_REACTION_FRIENDLY, COMBATLOG_OBJECT_CONTROL_PLAYER, COMBATLOG_OBJECT_TYPE_GUARDIAN) local function OnEvent(self, event, ...) local _, eventType, _, sourceGUID, _, sourceFlags = ... if sourceGUID == UnitGUID("player") or sourceGUID == UnitGUID("pet") or sourceFlags == gflags then -- lets show how bad we beat up stuff if eventType == "SWING_DAMAGE" then local _, _, _, amount, _, _, _, _, critical = select(9, ...) self:AddMessage(amount, 1, 1, 1) elseif eventType == "SPELL_DAMAGE" or eventType == "SPELL_PERIODIC_DAMAGE" then local _, _, _, spellId, _, spellSchool, amount, _, _, _, _, _, critical = select(9, ...) if eventType == "SPELL_PERIODIC_DAMAGE" then self:AddMessage(amount, 151/255, 70/255, 194/255) else if critical then self:AddMessage(amount, 1, .49, .04) else self:AddMessage(amount, 1, 1, 0) end end elseif eventType == "RANGE_DAMAGE" then local _, _, _, spellId, _, _, amount, _, _, _, _, _, critical = select(9, ...) self:AddMessage(amount, 1, 1, 1) elseif eventType == "SWING_MISSED" then local _, _, _, missType, _ = select(9, ...) self:AddMessage(missType, 1, 1, 1) elseif eventType == "SPELL_MISSED" or eventType == "RANGE_MISSED" then local _, _, _, spellId, _, _, missType, _ = select(9,...) self:AddMessage(missType, 1, 1, 1) end --- healing people if eventType == "SPELL_HEAL" or eventType== "SPELL_PERIODIC_HEAL" then local _, _, _, _, _, _, amount, _, _, _ = select(9,...) self:AddMessage(amount, 0, 1, 0) end end end
this here is the functioning for the dmg/healing that i do.. this part works 100%
without the filter on the first 1.. it shows alll dmg, including dmg being done to party... and dmg party does
__________________
Last edited by barbol12 : 09-19-11 at 04:57 PM.
|