Quantcast
Addon request: disable disenchant warning - WoWInterface
Thread Tools Display Modes
01-29-15, 11:11 PM   #1
Cantankerous
A Deviate Faerie Dragon
Join Date: Dec 2008
Posts: 13
Addon request: disable disenchant warning

In your garrison's enchanter's study, when you click the "Essence Font" aka the cauldron, I would like to NEVER SEE THAT WARNING DIALOG AGAIN.

No config options, just get rid of that damn dialog. Anybody? Please and thank you!
  Reply With Quote
01-29-15, 11:28 PM   #2
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
I just whipped up a small test, and it appears that automating the acceptance of this (or perhaps all?) spell confirmation prompts causes taint. I assume it is because accepting the prompt executes a spell immediately, and spell casting via Lua is certainly restricted to Blizzard.

I tried using the static popup's OnClick function, the "Okay" button's Click method, and AcceptSpellConfirmationPrompt.

Lua Code:
  1. local eventHandler = CreateFrame("Frame")
  2.  
  3. eventHandler:RegisterEvent("SPELL_CONFIRMATION_PROMPT")
  4. eventHandler:SetScript("OnEvent", function (self, event, spellID)
  5.     -- The spell ID is 161736.
  6.     for i = 1, STATICPOPUP_NUMDIALOGS do
  7.         local frame = _G["StaticPopup"..i]
  8.  
  9.         if (frame.which == "SPELL_CONFIRMATION_PROMPT") and (frame.data == spellID) then
  10.             -- StaticPopup_OnClick(frame, 1)
  11.            
  12.             -- _G["StaticPopup"..i.."Button1"]:Click()
  13.             -- frame.Button1:Click()
  14.  
  15.             -- AcceptSpellConfirmationPrompt(spellID)
  16.         end
  17.     end
  18. end)

Last edited by Clamsoda : 01-29-15 at 11:46 PM.
  Reply With Quote
01-29-15, 11:33 PM   #3
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 581
tekkub made an addon for this a while ago called tekkrush or something like that.
__________________
Tweets YouTube Website
  Reply With Quote
01-29-15, 11:39 PM   #4
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
Accepting warnings regarding disenchanting, and accepting the warning for using the Essence Font inside of a Garrison's enchanting building are NOT the same thing.
  Reply With Quote
01-29-15, 11:59 PM   #5
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 581
Originally Posted by Clamsoda View Post
Accepting warnings regarding disenchanting, and accepting the warning for using the Essence Font inside of a Garrison's enchanting building are NOT the same thing.
Ah well I haven't played the game for almost a year now so... Didn't know.
__________________
Tweets YouTube Website
  Reply With Quote
01-30-15, 12:49 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Cantankerous View Post
In your garrison's enchanter's study, when you click the "Essence Font" aka the cauldron, I would like to NEVER SEE THAT WARNING DIALOG AGAIN.
Sadly it's not possible. Blizzard really really wants to annoy the everliving f**k out of us with that dialog.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Donít message me about addon bugs or programming questions.
  Reply With Quote
01-30-15, 11:33 PM   #7
Cantankerous
A Deviate Faerie Dragon
Join Date: Dec 2008
Posts: 13
Originally Posted by Clamsoda View Post
I just whipped up a small test...
Thanks very much for trying. At least the dialog only comes up for the first item per session. Small consolation.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Addon request: disable disenchant warning

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off