Jump to content

Photo

Adding spells to InterruptBar


  • Please log in to reply
67 replies to this topic

#41 pyr1296684982

pyr1296684982
  • Members
  • Undeadclass_name
  • EU-Twilight's Hammer
  • Blackout
  • Posts: 8
  • Talents: Holy
  • RBG: 383

Posted 17 April 2010 - 06:21 PM

If someone's still playing around with these and has been in the same unsatisfying situation, where you'd like to add lots of new icons to interruptbar, resulting in too long rows and you've noticed InterruptIcons has not been updated, you can use my 3 lines of code, most easily implemented as replacing the "local function InterruptBar_AddIcons()" function with the following code. You can change the value 14 to anything suitable, so if you want 10 icons / line, change it to 9, etc.

Here's the code:

local function InterruptBar_AddIcons()
local x = -45
local y = 0
local icons_thisrow = 0
for _,ability in ipairs(order) do
local btn = CreateFrame("Frame",nil,bar)
btn:SetWidth(30)
btn:SetHeight(30)
icons_thisrow = icons_thisrow + 1
if icons_thisrow > 14 then
y = y + 30
x = -45
icons_thisrow = 0
end


btn:SetPoint("CENTER",bar,"CENTER",x,y)
btn:SetFrameStrata("LOW")

local cd = CreateFrame("Cooldown",nil,btn)
cd.noomnicc = true
cd.noCooldownCount = true
cd:SetAllPoints(true)
cd:SetFrameStrata("MEDIUM")
cd:Hide()

local texture = btn:CreateTexture(nil,"BACKGROUND")
texture:SetAllPoints(true)
texture:SetTexture(abilities[ability].icon)
texture:SetTexCoord(0.07,0.9,0.07,0.90)

local text = cd:CreateFontString(nil,"ARTWORK")
text:SetFont(STANDARD_TEXT_FONT,12,"OUTLINE")
text:SetTextColor(1,1,0,1)
text:SetPoint("LEFT",btn,"LEFT",2,0)

btn.texture = texture
btn.text = text
btn.duration = abilities[ability].duration
btn.cd = cd

bar[ability] = btn

x = x + 30

end
end


My whole lua for interruptbar:

http://pastebin.com/QnG6TzTd

nerd
  • 1

#42 Pharaun

Pharaun
  • LocationSeattle, WA

Posted 17 April 2010 - 11:49 PM

Ah, thanks.

Do you know how to add spells to InterruptIcons lua too? Seems a little more complicated.


Sorry I've never looked at InteruptIcons' code.
  • 0
"Who, after all, is today speaking of the destruction of the Armenians?"

-Adolf Hitler, 1939

#43 Jens

Jens
  • Junkies
  • Posts: 149
  • LocationSweden, Stockholm.

Posted 16 September 2010 - 02:18 AM

someone make one without feral charge

and add that prot interuppt whatever its called.

ams, freedom, wind shear or however its spelled.


pls:(
  • 0
I'm bloated, holding water, and can look a little puffy. I can have slight gyno, some acne, and at times rage and mood swings. But If you cant handle me when im bulking, you sure as hell don't deserve me when I'm shredded.




Posted Image

#44 Ivanrah

Ivanrah
  • Junkies
  • Humanclass_name
  • EU-Outland
  • Misery
  • Posts: 407
  • Talents: Combat
  • RBG: 2327

Posted 16 September 2010 - 02:39 AM

someone make one without feral charge

and add that prot interuppt whatever its called.

ams, freedom, wind shear or however its spelled.


pls:(


Spoiler

  • 0

#45

  • Junkies
  • Night Elfclass_name
  • US-Zul'jin
  • Ruin
  • Talents: Balance 1/0/2/2/2/0
  • RBG: 1806

Posted 21 September 2010 - 08:44 PM

i can't fucking put hex on my bar. its been 1 month and cant seem to fix it. anyone knows?
  • 0

#46

  • Junkies
  • Night Elfclass_name
  • US-Zul'jin
  • Ruin
  • Talents: Balance 1/0/2/2/2/0
  • RBG: 1806

Posted 21 September 2010 - 10:10 PM

/Bump
  • 0

#47 Kairu

Kairu
  • Members
  • Blood Elfclass_name
  • US-Mal'Ganis
  • Stormstrike
  • Posts: 151
  • Talents: Protection

Posted 23 September 2010 - 02:04 AM

/Bump


This is changed directly from default, any others added won't work.

Replace this part at the start of your InterruptBar.lua

Spoiler





:D
  • 0
:paladin: WotLK!
Spoiler

#48 jkanevad

jkanevad
  • Members
  • Posts: 3

Posted 16 January 2011 - 10:13 AM

Hi, this thread seems to need a bump :P
I've edited my IB's lua to some extent but I cant get it to work...

here's my lua

pastebin.com/Hi2BvvDr
  • 0
I'll take you 'round the internet and all the other places too
You might find that the internet pretty much covers everything
Shut up woman get on my horse :mage:

#49 jkanevad

jkanevad
  • Members
  • Posts: 3

Posted 16 January 2011 - 11:01 AM

sorted it out! nvm
  • 0
I'll take you 'round the internet and all the other places too
You might find that the internet pretty much covers everything
Shut up woman get on my horse :mage:

#50 Dookey

Dookey
  • Members
  • Blood Elfclass_name
  • US-Malorne
  • Vengeance
  • Posts: 1
  • Talents: Discipline

Posted 18 January 2011 - 06:51 PM

anyone gettting interupt bar to work post cata. if so plz link lua
  • 0

#51 BaTRambo

BaTRambo
  • Junkies
  • Draeneiclass_name
  • EU-Neptulon
  • Rampage / Saccage
  • Posts: 73
  • Talents: Restoration

Posted 19 January 2011 - 09:48 PM

Can any1 give link for working/lua or just rar hes IB and upload it/share for us <3
ty
  • 0

#52 Kqpro

Kqpro
  • Junkies
  • Gnomeclass_name
  • US-Eonar
  • Vindication
  • Posts: 596
  • Talents: Frost

Posted 20 January 2011 - 05:12 AM

yeah pleasE!
  • 0

#53 Zaltan

Zaltan
  • Members
  • Orcclass_name
  • EU-Sargeras
  • Cataclysme / Cataclysm
  • Posts: 3
  • Talents: Affliction

Posted 20 January 2011 - 03:08 PM

/bump
  • 0

#54 PowZnt

PowZnt
  • Members
  • Dwarfclass_name
  • US-Bonechewer
  • Reckoning
  • Posts: 47
  • Talents: Affliction

Posted 02 February 2011 - 01:14 AM

/BUMP
  • 0

#55 shadowq

shadowq
  • Members
  • Night Elfclass_name
  • US-Warsong
  • Ruin
  • Posts: 27
  • Talents: Assassination

Posted 02 February 2011 - 01:38 AM

mediafire.com/?85lpart7xvd3vc9
  • 0

#56 PowZnt

PowZnt
  • Members
  • Dwarfclass_name
  • US-Bonechewer
  • Reckoning
  • Posts: 47
  • Talents: Affliction

Posted 02 February 2011 - 02:15 AM

mediafire.com/?85lpart7xvd3vc9


I love you
it works perfectly
  • 0

#57 Ramsig

Ramsig
  • Members
  • Night Elfclass_name
  • EU-Outland
  • Misery
  • Posts: 151
  • Talents: Windwalker 2/0/0/2/2/1
  • RBG: 1829

Posted 02 March 2011 - 11:54 AM

Is it possible to track something like Predators swiftness?
  • 0

#58 Marksofshame

Marksofshame
  • Members
  • Humanclass_name
  • US-Burning Blade
  • Vindication
  • Posts: 27
  • Talents: Unholy 2/0/2/0/0/2/2
  • 2v2: 1848
  • 3v3: 2309
  • RBG: 1667

Posted 03 March 2011 - 10:08 PM

----------------------------------------------------
-- Interrupt Bar by Kollektiv
----------------------------------------------------

InterruptBarDB = InterruptBarDB or { scale = 1, hidden = false, lock = false, }
local abilities = {}
local order
local band = bit.band

local spellids = {[6552] = 10, [2139] = 24, [19647] = 24, [16979] = 15, [1766] = 10, [408] = 20, [47528] = 10, [96231] = 10, [15487] = 45, [10890] = 30, [57994] = 6, [34490] = 25, [36554] = 20, [49576] = 25, [48707] = 45, [47481] = 60, [47476] = 120, [10308] = 40, [80965] = 10, [51514] = 35, [100] = 13, [85388] = 45}
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
-- 2139 Counterspell
-- 19647 Spell Lock
-- 16979 Feral Charge
-- 1766 Kick
-- 408 Kidney Shot
-- 47528 Mind Freeze
-- 96231 Rebuke
-- 15487 Silence
-- 10890 Psychic Scream
-- 57994 Wind Shear
-- 34490 Silencing Shot
-- 36554 Shadowstep
-- 49576 Death Grip
-- 48707 Anti-Magic Shell
-- 47481 Gnaw
-- 47476 Strangulate
-- 10308 Hammer of Justice
-- 80965 Skull Bash
-- 51514 Hex
-- 100 Charge
-- 85388 Throwdown
-----------------------------------------------------

local order = {6552, 2139, 19647, 16797, 1766, 96231, 408, 47528, 96231, 15487, 10890, 57994, 34490, 36554, 49576, 48707, 47481, 47476, 10308, 80965, 51514, 100, 85388}

-----------------------------------------------------
-----------------------------------------------------



doesn't work, can someone halp? Its for my noob friend who smells bad.
  • 0

#59 Stiggyla

Stiggyla
  • Members
  • Humanclass_name
  • US-Jubei'Thos
  • Vengeance
  • Posts: 10
  • Talents: Affliction
  • LocationAuckland ,New Zealand

Posted 11 March 2011 - 01:14 AM

shadowq said:

mediafire.com/?85lpart7xvd3vc9


^ workd for me but i cant edit the size or change bar length? can any1 help me out?
  • 0
Follower.

#60 Disiple34

Disiple34
  • Members
  • Goblinclass_name
  • EU-Stormscale
  • Cyclone / Wirbelsturm
  • Posts: 165
  • Talents: Subtlety 0/1/1/0/2/.

Posted 13 March 2011 - 11:12 AM

^ yeah, need help to make bar shorter
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

<