/trunk
## Interface: 40000 |
## X-Compatible-With: 40000 |
## X-Max-Interface: 40000 |
## Interface: 40100 |
## X-Compatible-With: 40100 |
## X-Max-Interface: 40100 |
## X-Min-Interface: 30300 |
## Title: NightWatch |
## Notes: Sends chat alerts for selected spells. "/nw" for config. |
## Author: Nightyniight @ Frostmourne - US |
## Version: 1.2 |
## Version: 1.3 |
## DefaultState: Enabled |
## LoadOnDemand: 0 |
## SavedVariables: NightWatchDB |
1.3 2011-04-28 |
* fix for new COMBAT_LOG_EVENT_UNFILTERED |
* bump interface version to 4.1 |
1.2 2010-10-13 |
* bump interface version number for 4.0.1 |
* fix minor typo in code, don't think it affected anything. |
1.1 2010-08-23 |
* fixed outputs not updating on profile changes. |
* partial fix for res spell target not showing in combatlog. gg bliz. |
* minor fix db upgrade code running on every profile change. |
* slightly nicer flag & message defaults. |
* minor clean up upvalues. |
1.0 2010-07-08 |
* New (and customised) LibSink: Built-in support for custom channels, new "Group" channel (sends output to Raid or Party or Say). |
0.9 2010-04-23 |
* Fix/clean up the db upgrade code. |
* Add db versioning. |
0.8 |
* Add 2 additional outputs (streamlined the sink code a bit too). |
0.7.7 |
* attempt to get packager to make correct zip dir structure. |
* very minor function upvalue. |
0.7.6 |
* add message format copy, paste, set all and reset. |
end |
------------------------------------------------------------------------------- |
-- 0 1 2 3 4 5 6 7 8 9 10 11 12 |
-- _,timestamp, event, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, spellID, spellName, spellSchool, missType, ...) |
-- 0 1 2 3 4 5 6 7 8 9 10 11 12 13 |
-- _, timestamp, event, hideCaster, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, spellID, spellName, spellSchool, missType, ...) |
-- |
local flag, source, target, spell |
local msg, whisperTarget |
function addon:combatLogEvent(_, _, flag, _, source, _, _, target, _, _, spell, ...) |
-- 0 1 2 3 4 5 6 7 8 9 10 |
function addon:combatLogEvent(_, _, flag, _, _, source, _, _, target, _, _, spell, ...) |
-- 0 1 2 3 4 5 6 7 8 9 10 11 |
if not db.spells[spell] then return end -- Spell not in database, quit |