(beta) Full AceGui3.0 usage
This commit is contained in:
@@ -11,10 +11,11 @@ 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);
|
||||
local encounterID, itemID, itemLink, quantity, playerName, className, arg7, arg8, arg9 = ...
|
||||
name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(itemID)
|
||||
value = MX.TSM:GetItemValue(itemID, "DBMarket");
|
||||
local pn = UnitName("player");
|
||||
if (value ~= nil and value >= Farmer_Logic_MinAlert and quality >= 1 and playerName == pn) then
|
||||
MX:SendAlert(itemID,value);
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user