InterruptBar
Description
A basic mod that tracks enemy interrupt abilities on a neat little bar. I consider this mod feature complete.
- Feral Charge
- Counterspell
- Pummel
- Kick, and
- Spell Lock
- Mind Freeze
- Skull Bash
- Rebuke
Usage
Left Click the bar to move it. Go to the options to lock the bar. You can also hide buttons until they're active.
Type /ib in-game for a list of options
In the options you can make it so the bar only shows when an ability is fired.
Customization
To edit the order of abilities open InterruptBar.lua and change the order of the numbers in the 'order' table. Each number is labeled indicating what spell it is.
Adding new abilities isn't intended.
Cheers
local spellids = {[6552] = 10, [2139] = 24, [19647] = 24, [16979] = 15, [1766] = 10, [47528] = 10, [47476] = 100, [34490] = 20 , [57994] = 6 , [15487] = 45 , [72] = 12 ,[47481] = 60 , [10308] = 40 , [10890] = 30 , [47847] = 20 ,[48827] = 30 }
for spellid,time in pairs(spellids) do
local name,_,spellicon = GetSpellInfo(spellid)
abilities[name] = { icon = spellicon, duration = time }
end
-----------------------------------------------------
-- Edit this table to change the order
-----------------------------------------------------
-- 6552 Pummel
-- 72 Shield Bash
-- 2139 Counterspell
-- 19647 Spell Lock
-- 47847 Shadowfury
-- 16979 Feral Charge
-- 1766 Kick
-- 47528 Mind Freeze
-- 47481 Gnaw
-- 47476 Strangulate
-- 10308 Hammer of Justice
-- 48827 Avenger's Shield
-- 15487 Silence
-- 10890 Psychic Scream
-- 57994 Wind Shear
-- 34490 Silencing Shot
-----------------------------------------------------
local order = {6552 , 72 , 2139 , 19647 ,47847, 1766, 47528 , 47481 ,47476 , 10308 , 48827 , 16979 , 15487 ,10890 ,57994 ,34490 }
Go at InterruptBar folder and open the file named InterruptBar ( Lua file )with notepad and copy paste this . :)
Also you should try add more options to it, make it so people can customize it, for example add bars instead of numbers.. etc.
Great work, please continue and fix the bugs, it will be great, waiting u're next version.
I've edited all names (InterruptBar --> InterruptBar2 - InterruptBarDB --> InterruptBarDB2, goes for .scale etc as well)
And it all seems to work except for the ingame command. I edited my 2nd bars command to /dmgb instead of /ib, but /dmgb still calls the menu for the first interruptbar (/ib).
Any ideas?
Time: 04/07/10 01:30:01
Count: 1
Stack: [C]: in function `SetScale'
Interface\AddOns\InterruptBar\InterruptBar.lua:114: in function <Interface\AddOns\InterruptBar\InterruptBar.lua:113>
Interface\AddOns\InterruptBar\InterruptBar.lua:247: in function `cb'
Interface\AddOns\InterruptBar\InterruptBar.lua:265: in function `value'
Interface\FrameXML\ChatFrame.lua:3577: in function <Interface\FrameXML\ChatFrame.lua:3509>
[C]: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3222: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:3246: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
Locals: (*temporary) = <unnamed> {
Feral Charge - Bear = <unnamed> {
}
Kick = <unnamed> {
}
Pummel = <unnamed> {
}
Counterspell = <unnamed> {
}
Mind Freeze = <unnamed> {
}
Spell Lock = <unnamed> {
}
0 = <userdata>
}
(*temporary) = nil
plz tell me :D
Greets