1.9.0_9.0.1

This commit is contained in:
mikx
2020-11-13 14:41:52 -05:00
parent 55d2c154b5
commit dbb50ecc96
24 changed files with 93 additions and 1794 deletions

View File

@@ -1,6 +1,6 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.
@@ -29,7 +29,10 @@ LOOT_OPENED_Frame:SetScript("OnEvent",
-- get the iteminfo using the slot itemlink
name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(iLink)
-- get the item value using the link, return nil if the item has no value
value = MX.TSM:GetItemValue(link, "DBMarket");
local itemId = MX:ToItemID(link);
if (itemId ~= nil) then
value = MX.TSM:GetItemValue(itemId, "DBMarket");
end
-- MINIMUM QUALITY SETTINGS ------
local eq = 2 -- equipable quality
@@ -72,8 +75,12 @@ LOOT_OPENED_Frame:SetScript("OnEvent",
MX:ChatGuildLootMessage(link,value);
end
end
value = nil
iLink = nil
end
if (value ~= nil) then
Farmer_Money_LootSession = Farmer_Money_LootSession + value;
MX:UpdateMainUI()
value = nil
iLink = nil
end
end
end

View File

@@ -1,6 +1,6 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.
@@ -17,7 +17,7 @@ PLAYER_MONEY_Frame:SetScript("OnEvent", function(self, event, ...)
if (DiffGold > 0) then -- Gold gain
local date = C_Calendar.GetDate();
local date = C_DateAndTime.GetCurrentCalendarTime();
local weekday, month, day, year = date.weekday, date.month, date.monthDay, date.year;
-- Write to SavedVariables