commit 58b08d6ae055cfcc8a16c21b3e372f3bb2d9acaa Author: mikx Date: Fri Jan 5 06:40:15 2018 -0500 commit from backup diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..2a0b72f --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,2 @@ +[0.0.10][June 11, 2017] +- Experimental Release \ No newline at end of file diff --git a/Event/ENCOUNTER_LOOT_RECEIVED.lua b/Event/ENCOUNTER_LOOT_RECEIVED.lua new file mode 100644 index 0000000..834b3e6 --- /dev/null +++ b/Event/ENCOUNTER_LOOT_RECEIVED.lua @@ -0,0 +1,20 @@ +-- MxW (MxW Addon) +-- By mikx +-- https://git.mikx.ca/wow-addons/MxW_Addon +-- Licensed under the GNU General Public License 3.0 +-- See included License file for more informations. + +local MX = LibStub("AceAddon-3.0"):GetAddon("MxW"); +local L = LibStub("AceLocale-3.0"):GetLocale("MxW"); + +local ENCOUNTER_LOOT_RECEIVED_Frame = CreateFrame("Frame") +ENCOUNTER_LOOT_RECEIVED_Frame:RegisterEvent("ENCOUNTER_LOOT_RECEIVED") +ENCOUNTER_LOOT_RECEIVED_Frame:SetScript("OnEvent", + function(self, event, ...) + local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 = ... + name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(arg2) + value = MX.TSM:GetItemValue(arg2, "DBMarket"); + if (value ~= nil and value >= Farmer_Logic_MinAlert and quality >= 1) then + MX:SendAlert(arg2,value); + end + end) diff --git a/Event/Load_Events.xml b/Event/Load_Events.xml new file mode 100644 index 0000000..7238762 --- /dev/null +++ b/Event/Load_Events.xml @@ -0,0 +1,4 @@ + +