I need some help reprogramming an addon. its an addon that give me info of what kind of spell the player in the raid died of. Its called Fatality if someone knows about it.
So what i want:
Currently, i managed to rewrite it so the text is posted in Officer only, but its annoying on whipes cause it spams. So what i want is that its posted in the Chatbox, but only so i can see it.
Like this macro i have:
/run ChatFrame1:AddMessage(format("Avoidance with Stoneskin Gargoyle: %.2f%%", GetDodgeChance() + GetParryChance() + 6 + 1/(0.0625 + 0.956/(floor(GetCombatRatingBonus(CR_DEFENSE_SKILL))*0.04))))
This shows in the chatbox but only for me to see.
So i want the addon to do the same.
Here is some of the addon LUA (the part that is about where to post the text)
ocal DELAY = 0 -- seconds between each announcement (default: 0)
local LIMIT = 10 -- number of deaths to report per combat session (default: 10)
local OUTPUT = "OFFICER" -- announcement channel (default: "OFFICER")
local CHANNEL_NAME = "cname" -- name of the channel to report to (note: OUTPUT must be set to "CHANNEL")
local TIMESTAMP = false -- toggle timestamps. true = on / false = off (default: false)
local TIMESTAMP_FORMAT = "%X" -- timestamp format. see http://www.lua.org/pil/22.1.html for more info (default: "%X")
local OVERKILL = true -- toggle overkill. true = on / false = off (default: true)
local RAID_ICONS = true -- toggle raid icons. true = on / false = off (default: true)
So i guess under local OUTPUT = "OFFICER" is there something should be added.
EDIT: I think i found a possible solutoin. By making my own channel that only i see and add it to the LUA, but i guess if someone know how to get it like i wanted, you can post it cause it can be usefull for others )