Подтверждение лута -
PHP код:
local f = CreateFrame("Frame")
f:RegisterEvent("CONFIRM_DISENCHANT_ROLL");
f:RegisterEvent("CONFIRM_LOOT_ROLL");
StaticPopupDialogs["CONFIRM_LOOT_ROLL"] = nil;
f:SetScript("OnEvent", function(Self, Event, ...)
local arg1, arg2 = ...;
ConfirmLootRoll(arg1, arg2);
end)
Автораспыл\грид -
PHP код:
local f = CreateFrame("Frame", nil, UIParent)
f:RegisterEvent("START_LOOT_ROLL")
f:SetScript("OnEvent", function(_, _, id)
if not id then return end
local _, _, _, quality, bop, _, _, canDE = GetLootRollItemInfo(id)
if quality == 2 and not bop then RollOnLoot(id, canDE and 3 or 2) end
end)
Тут без синьки.
А вообще была тема.