Im doing a code for check enemy blacklist... At the moment all is right, if enemy is on my list and is near me the addon put me a msg. Is possible put some texture for mark the enemy and see more better?
This is a code part...
PHP Code:
function Alerter()
tracker = CreateFrame("Frame")
tracker:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") -- testing
tracker:SetScript("OnEvent", function(self, event, ...)
inInstance, instanceType = IsInInstance()
timeStamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, prefixParam1, prefixParam2, dummyparam, suffixParam1, suffixParam2 = ...
if not inInstance and SpellEvents[event] and enemies[sourceName] and total >= timecheck and bit.band(sourceFlags, COMBATLOG_OBJECT_REACTION_HOSTILE) > 0 then
print("|cffFE2E2EYour enemy |r"..sourceName.." |cffFE2E2Eis near");
-- condicion = true
total = 0
end
end)
end
Thanks for help!