InterruptBar modification guide

Talk about anything here, related to Smolderforge or not.
Cube
Posts: 2551

InterruptBar modification guide

Post by Cube »

Hey there.

Quite a lot of people use InterruptBar around here. What most people don't know is how to modify it, and add/remove spells that are being tracked. Since I don't have anything better to do this morning, I thought I'd enlighten you on the subject. Do me a favor and read through the guide before you start asking questions.

First off, you'll obviously need the addon, which you can find here.

Warning: This is some random Russian site. If you're not comfortable with clicking this link, then don't.

---

Edit:

Alternative download from wowinterface.com

Note: If you use this download, you'll have to modify the lua, because it's modified for Mists of Pandaria.

---

Second, you'll need the spell id and the cooldown time of the spell(s) you want to add.

If you don't know how to find the spell id, go to this site and search for the spell in question. When you've located the spell, you'll see the spell id up in the adress bar, listed at the end of the url.

I'll use Shadow Word: Death as an example.

Image

So as you can see, the spell id of Shadow Word: Death is 32379, and I know the cooldown is 12 sec. I have no idea why they don't list the cooldown on the site, but you can just check it in-game if you don't already know it.

Now you'll need to open the InterruptBar.lua file located in the addon folder (...\World of Warcraft\Interface\Addons\InterruptBar). You'll need to open it with notepad, which you can do by right-clicking it and select Open with... . If notepad isn't listed, press Browse... and go to C:\\Windows and you'll find it there.

Once you've got the file open, it should look like this.

Image

If it doesn't, try to open Format in the notepad menu, and select Word Wrap.

First, we'll add the spell id. This is where we tell the addon which spell to track, and what cooldown the spell has. It should be listed like this:

[spell id] = cooldown

Image

Since we're adding Shadow Word: Death, it should be listed as [32379] = 12. Just add it to the list by following the same pattern as all the other spells are listed. Don't forget the comma and the space. You don't have to worry about which order the spells are listed as.

Note: All cooldowns should be listed in seconds.

Now we're going to tell InterruptBar in which order the spell(s) will be listed in-game.

Image

Above the highlighted list there's another list with all the spell id's of the other spells currently tracked by the addon. If you want, you could add more spell id's to this list, but it's not necessary. This is just a memo to make it easier to identify which spell is which.

In the highlighted list you'll find all the spell id's currently tracked by the addon. They're listed in the order by which they're shown in-game. As you can see, the first spell id listed is 6552. This is the id of Pummel (which you can see in the list above.) Since it's the first id listed, Pummel is the first ability shown in the order of spells listed in-game. After Pummel comes 2139, which will make Counterspell the second spell listed in-game. Since we're adding Shadow Word: Death (32379), we'll have to add it to this list as well, otherwise the addon won't know where to list it, and it won't show up once an enemy uses it. Since it's a priest spell, I'll add it after Psychic Scream. If you look at the spell id list, the id of Psychic Scream is 10890. In the local order, it's listed as the ninth spell, which would mean that I'd have to add Shadow Word: Death as the tenth. All you have to do here is add the id after Psychic Scream, following the same pattern the other spells are listed.

Once you're done with this, save the document and you're all done.

This is how the lua file should look once Shadow Word: Death is added as I've described.

Image

And this is how it'll look in-game.

Image

If you're adding more spells, InterruptBar will obviously take up more and more space on your screen. A tip is to write /ib hidden in-game to hide the addon. Once a cooldown is used, InterruptBar will only show the cooldown in question. This will save you the trouble of having a cluttered ui.

Hopefully this guide helped you. If you have any questions, just ask.

---

Edit:
Cube wrote:
ZatYo wrote:is it possible to make it in 2 columns on tbc?
InterruptBar download

Found a fix. Download this one instead, and modify it as you wish. If you already have all the spells added that you want, then you can just copy the spell id's and settings from your old lua into this one.

In game, you write /ib columns X, where the X is the amount of columns you want. So if you have twelve spells tracked, and write /ib columns 6, you'll get two rows with six spells in each.

Keep in mind that this InterruptBar is modified for retail, so there's a lot of wierd shit in it. So you'll have to manually modify the spell id's if you want it to work. But if you do, it works just fine.

It's wierd though, because the column command works fine in my wrath version, but if I use the same lua with modified spell id's in tbc, the addon works, but the command doesn't. Not that it matters, this one works just fine.

Edit:

Forgot to mention that when you've written the column command you have to reload your ui, which you do by writing /reload ui in-game.
Last edited by Cube on 09 Nov 2013, 18:47, edited 6 times in total.
Balls, Cube, Deems, Google [Bot]
User avatar
Awoth
Game Master
Game Master
Posts: 348

Post by Awoth »

Helpful guide, well done!
Game Master - In-Game Support
QuantumVoid
Posts: 183
Location: Under a Boat by the River

Re: InterruptBar modification guide

Post by QuantumVoid »

Decent guide, well done on even bothering to write that wall of text in a well formated way.
I also like how some of us stress every single time how important it is to have a minimalistic UI. Makes me feel I'm not the only psychotic person about it :P

By the way, out of curiosity, since you example'd with SWD, I take it you can add whatever spell you wish. However some of such spells have their cooldowns reduced by x/y talent (for example Blind (even though everyone picks Dirty Tricks, but that is irrelevant, talking from a theoretical poV)) - Is it possible to edit the code in a way that it can recognize wether Blind or x/y spell has a reduced cd?
Cube
Posts: 2551

Re: InterruptBar modification guide

Post by Cube »

QuantumVoid wrote:By the way, out of curiosity, since you example'd with SWD, I take it you can add whatever spell you wish. However some of such spells have their cooldowns reduced by x/y talent (for example Blind (even though everyone picks Dirty Tricks, but that is irrelevant, talking from a theoretical poV)) - Is it possible to edit the code in a way that it can recognize wether Blind or x/y spell has a reduced cd?
It's not. I'd go with the cd of whatever spec is used most, or the cd with the reduction talents.
Balls, Cube, Deems, Google [Bot]
QuantumVoid
Posts: 183
Location: Under a Boat by the River

Re: InterruptBar modification guide

Post by QuantumVoid »

I see, yeah sounds logical.

Though imo it might be possible. I mean, there are addons that code-wise get input from other players.
Not sure if it possible for an addon written in Lua to get input relative to a player's talents or other info, though. Even if it is, I can not code in Lua so I'm at an impasse. It would probably need someone knowledgable.

Not that it matters all that much, just saying.
Antique
Donor
Donor
Posts: 320

Re: InterruptBar modification guide

Post by Antique »

just what i needed


thanks
User avatar
Deems
Posts: 1508
Location: Wonderland

Re: InterruptBar modification guide

Post by Deems »

this guide goes 3 hunna
Google [Bot]
User avatar
Firstaidkit
Donor
Donor
Posts: 2015

Re: InterruptBar modification guide

Post by Firstaidkit »

Actually never thought that I would say this but this post is actually really good and helpful for beginners and it deserves a sticky!
Keep up the good posts like this Cube and I got no reasons to flame you any longer =P.
If it doesn't challenge you, it doesn't change you..
Follow me at http://twitch.tv/firstaidkitsmolderforge for PvP and good music!
Cube
Posts: 2551

Re: InterruptBar modification guide

Post by Cube »

Firstaidkit wrote:Actually never thought that I would say this but this post is actually really good and helpful for beginners and it deserves a sticky!
Keep up the good posts like this Cube and I got no reasons to flame you any longer =P.
You can't flame me and stay on top. Ever. Sorry.
Balls, Cube, Deems, Google [Bot]
ZatYo
Donor
Donor
Posts: 785

Re: InterruptBar modification guide

Post by ZatYo »

is it possible to make it in 2 columns on tbc?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest