Initial code. Simply loads up the addon and outputs any comabt messages
Chris O'Dell [04-20-14 - 22:02]
Initial code. Simply loads up the addon and outputs any comabt messages
diff --git a/SoulGemNotifier.lua b/SoulGemNotifier.lua
new file mode 100644
index 0000000..5cd3dab
--- /dev/null
+++ b/SoulGemNotifier.lua
@@ -0,0 +1,24 @@
+--[[
+ SoulGemNotifier
+ Author: @ChrisAnn
+ Thanks to Combat Log Statistics and XPNotifier for being inspiration
+]]
+
+
+SoulGemNotifier = {}
+SoulGemNotifier.name = "SoulGemNotifier"
+SoulGemNotifier.version = "0.1.0"
+
+function SoulGemNotifier.Initialise(eventCode, addOnName)
+ if (addOnName ~= SoulGemNotifier.name) then return end
+
+ zo_callLater(function() d("Soul Gem Notifier Initialised.") end, 4000)
+ EVENT_MANAGER:RegisterForEvent(SoulGemNotifier.name, EVENT_COMBAT_EVENT, SoulGemNotifier.OnCombatEvent)
+end
+
+function SoulGemNotifier.OnCombatEvent(eventCode, result, isError, abilityName, abilityGraphic, abilityActionSlotType, sourceName, sourceType, targetName, targetType, hitValue, powerType, damageType, log)
+ -- Display all combat events for debugging
+ d( "[" ..result .. "]," .. "[" ..abilityName .. "]," .. "[" ..sourceName .. "]," .. "[" ..sourceType .. "]," .. "[" ..targetName .. "]," .. "[" ..targetType .. "]," .. "[" ..hitValue .. "]," .. "[" ..abilityActionSlotType .. "]," .. "[" ..powerType .. "]," .. "[" ..damageType .. "]" )
+end
+
+EVENT_MANAGER:RegisterForEvent(SoulGemNotifier.name, EVENT_ADD_ON_LOADED, SoulGemNotifier.Initialise)
\ No newline at end of file
diff --git a/SoulGemNotifier.txt b/SoulGemNotifier.txt
new file mode 100644
index 0000000..d722083
--- /dev/null
+++ b/SoulGemNotifier.txt
@@ -0,0 +1,4 @@
+## Title: Soul Gem Notifier
+## APIVersion: 100003
+
+SoulGemNotifier.lua