WoWInterface SVN EasyRoll

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 1 to Rev 2
    Reverse comparison

Rev 1 → Rev 2

trunk/EasyRoll/EasyRoll.lua New file
0,0 → 1,25
local f = CreateFrame("Frame", "EasyRoll")
f:RegisterEvent("START_LOOT_ROLL")
f:RegisterEvent("CONFIRM_LOOT_ROLL")
f:RegisterEvent("CONFIRM_DISENCHANT_ROLL")
f:SetScript("OnEvent",function(self,event,...)
if event == "CONFIRM_LOOT_ROLL" or event == "CONFIRM_DISENCHANT_ROLL" then
local _, iname, _, quality, BoP, canNeed, _, canDiss = GetLootRollItemInfo(select(1,...))
if BoP and not canNeed then
if canDiss then
ConfirmLootRoll(select(1,...),3)
else
ConfirmLootRoll(select(1,...),2)
end
end
elseif event == "START_LOOT_ROLL" then
local _, iname, _, quality, BoP, canNeed, _, canDiss = GetLootRollItemInfo(select(1,...))
if BoP and not canNeed then
if canDiss then
RollOnLoot(select(1,...),3)
else
RollOnLoot(select(1,...),2)
end
end
end
end)
\ No newline at end of file
trunk/EasyRoll/EasyRoll.toc New file
0,0 → 1,9
## Interface: 30300
## Title: EasyRoll
## Notes: Rolls Disenchant/Greed on all items that are Bind On Pickup, that you aren't allowed to need.
## Author: Meredy-Das Syndikat (EU)
## Version: 1.0
## eMail: zam@abwesend.de
## DefaultState: Enabled
 
EasyRoll.lua
\ No newline at end of file