View Single Post
06-17-20, 11:18 AM   #6
millo666
A Murloc Raider
Join Date: Jun 2020
Posts: 7
Originally Posted by Kanegasi View Post
First of all, the source and destination variables aren't read by CombatLogGetCurrentEventInfo(), they are written by it.

Secondly, could you please share your entire code? Getting assistance with a part of some code doesn't work if you don't share all of it.
local function DummyFrame_OnEvent(self, event, ...)


if event == "PLAYER_ENTERING_WORLD" then

playerGUID = UnitGUID("player")
if UnitGUID("pet") ~= nil then
petGUID = UnitGUID("pet")
end
DummyFrame:UnregisterEvent("PLAYER_ENTERING_WORLD")


elseif event == "COMBAT_LOG_EVENT_UNFILTERED" then

local timestamp, subevent, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags = CombatLogGetCurrentEventInfo()


if (sourceGUID == playerGUID or sourceGUID == petGUID) and (destGUID ~=petGUID and destGUID ~=playerGUID) then
print("sourceGUID "..sourceGUID)
print("destGUID "..destGUID)
print(timestamp.."|n")
end



end
DummyFrame:SetScript("OnEvent", DummyFrame_OnEvent)
  Reply With Quote