Jump to content

Kerrbox

Member Since 17 Nov 2012
Offline Last Active Feb 21 2013 11:05 PM
-----

#3812651 Disabling red bars - working method

Posted Thaya on 29 November 2012 - 02:06 AM

f=CreateFrame("Frame") f:RegisterEvent("LOSS_OF_CONTROL_ADDED") f:RegisterEvent("LOSS_OF_CONTROL_UPDATE") f:SetScript("OnEvent",function() for b in pairs(ActionBarActionEventsFrame.frames) do b.cooldown:SetLossOfControlCooldown(0,0) end end)

Choose one:
  • download and install this addon: http://www.mediafire...rstnhs03hiabt2g - it just runs the script above;
  • or put the script above in an addon you always run in its main .lua file;
  • or create your own addon to run the script above - a simple guide is in my signature;
  • or simply /run the script above in-game every time you log in.

Update 1: added a downloadable addon.

Update 2: updated both the script and the download with a more efficient version - it'll run only when you actually do get controlled instead of on every action bar update/event. Save yourself some CPU cycles.
Spoiler

Update 3: a version that hooks into Bartender as well: http://www.wowinterf...rolRemover.html


#3812542 Bars going red when cc'd

Posted Thaya on 28 November 2012 - 10:38 PM

Yeah but there are also functions like ActionButton_UpdateLossOfControlCooldown which supposedly handle this, but they don't.

Edit: the solution was to force the game to run a 0 cooldown on updates. Fix is here: http://www.arenajunk...working-method/


#3812418 Updating script folder

Posted Thaya on 28 November 2012 - 07:09 PM

You mean so you don't have to tick "load outdated addons" to force it to load?

In the .toc file, change the ##Interface line to this:
## Interface: 50100


<