Working on modifying tekkub's tekkrush for my own purposes so it can auto confirm both disenchant and greed rolls but still bring up the popup menu for when you hit need.

now to my knowledge there are two roll events

CONFIRM_LOOT_ROLL which handles both Need and Greed and CONFIRM_DISENCHANT_ROLL which handles disenchanting/prospecting

so since CONFIRM_LOOT_ROLL handles greed and need is there any simple way to do what im trying to do?

Here's the script for Tekkrush
ocal f = CreateFrame("Frame")
f:RegisterEvent("CONFIRM_LOOT_ROLL")
f:SetScript("OnEvent", function(self, event, id, rollType)
for i=1,STATICPOPUP_NUMDIALOGS do
local frame = _G["StaticPopup"..i]
if frame.which == "CONFIRM_DISENCHANT_ROLL" and frame.data == id and frame.data2 == rollType and frame:IsVisible() then StaticPopup_OnClick(frame, 1) end
end
end)
Edited by Bõb on 12/9/2012 7:50 PM PST