| Go to Page... |
| Compatibility: | Mists of Pandaria (5.0.4) |
| Updated: | 09-01-12 01:15 PM |
| Created: | 10-12-09 06:05 AM |
| Downloads: | 112,812 |
| Favorites: | 366 |
| MD5: | |
| Categories: | Casting Bars, Cooldowns, Mists of Pandaria Beta |



config.width = 375 -- Width of a single bar....
config.width = 200 -- Width of a single bar....


local EHN,ns = ...
local config = EventHorizon.config
local c = EventHorizon.colors
local _,class = UnitClass('player') -- These locals make in-line conditions a little easier. See the color section for a few examples.
local DK = class == "DEATHKNIGHT"
local Druid = class == "DRUID"
local Hunter = class == "HUNTER"
local Mage = class == "MAGE"
local Paladin = class == "PALADIN"
local Priest = class == "PRIEST"
local Rogue = class == "ROGUE"
local Shaman = class == "SHAMAN"
local Warlock = class == "WARLOCK"
local Warrior = class == "WARRIOR"
--[[ EDIT BELOW THIS LINE ]]--

-- Vampiric Touch/swd cd
self:newSpell({
debuff = {34914,3},
cast = 34914,
cooldown = 32379,
refreshable = true,
hasted = true,
requiredTree = 3,
requiredLevel = 28,
stance = 1,
})

self:newSpell({
itemID = 1543
})
self:newSpell({
itemID = { 1543, 1544, ... , 1243 },
})
self:newSpell({
slotID = 13,
})
self:newSpell({
cast = 1543
})
self:newSpell({
cast = { 1543, 1544, ... , 1243 },
})
self:newSpell({
channel = {1543,3},
})
self:newSpell({
channeled = { {1543,2}, {1544,4}, ... , {1254, 6} },
})
self:newSpell({
cooldown = 1543,
})
self:newSpell({
cooldown = {1543, 1642, ... , 1274},
})
self:newSpell({
debuff = {1543, 3},
})
self:newSpell({
playerbuff = {1543, 3},
})
self:newSpell({
playerbuff = 1543,
})
self:newSpell({
debuff = {1543, 3},
hasted = true,
})
self:newSpell({
debuff = {1543, 3},
recast = true,
})
self:newSpell({
playerbuff = {1543, 3},
minstacks = 2,
})
self:newSpell({
slotID = 14,
internalcooldown = 45,
})
self:newSpell({
debuff = {1543, 3},
unique = true,
})
self:newSpell({
debuff = {1543, 3},
keepIcon = true,
})
self:newSpell({
debuff = {1543, 3},
icon = 1544,
})
self:newSpell({
cooldown = 1543,
smallCooldown = true,
})
self:newSpell({
cooldown = 1543,
smallCooldown = true,
requiredGlyph = 12456,
})
self:newSpell({
cooldown = 1543,
smallCooldown = true,
requiredTree = 3,
})
self:newSpell({
cooldown = 1543,
smallCooldown = true,
requiredTree = {0,1,3},
})
self:newSpell({
cooldown = 1543,
smallCooldown = true,
requiredLevel = 84,
})
self:newSpell({
cooldown = 1543,
smallCooldown = true,
stance = 1,
})
self:newspell({
cooldown = 1543,
smallCooldown = true,
stance = {0, 1, 4},
})

File Name |
Version |
Size |
Author |
Date |
Type |
v1.9.3 |
71kB |
11-05-10 07:02 AM |
Patch |
||
2.3 |
10kB |
11-04-10 10:01 PM |
Addon |
File Name |
Version |
Size |
Author |
Date |
1.9.5-9 |
84kB |
Brusalk |
08-31-12 10:58 PM |
|
1.9.5-8 |
84kB |
Brusalk |
08-31-12 06:14 PM |
|
1.9.5-7 |
83kB |
Brusalk |
08-31-12 04:37 PM |
|
1.9.5-6 |
83kB |
Brusalk |
08-30-12 06:44 PM |
|
1.9.5-5 |
83kB |
Brusalk |
08-30-12 03:34 AM |
|
1.9.5-4 |
83kB |
Brusalk |
08-30-12 02:06 AM |
|
1.9.5-4 |
83kB |
Brusalk |
08-30-12 01:51 AM |
|
1.9.5-3 |
83kB |
Brusalk |
08-29-12 10:01 PM |
|
1.9.5-2 |
82kB |
Brusalk |
08-29-12 06:52 PM |
|
1.9.5-1 |
76kB |
Brusalk |
08-28-12 08:17 PM |
|
1.9.5 |
77kB |
Brusalk |
08-28-12 02:35 AM |
|
1.9.4-4 |
74kB |
Brusalk |
07-25-12 09:13 PM |
|
1.9.4-3 |
73kB |
Brusalk |
07-21-12 04:15 PM |
|
1.9.4-2 |
61kB |
Brusalk |
07-07-12 01:31 AM |
|
1.9.4-1 |
61kB |
Brusalk |
07-06-12 05:30 PM |
|
1.9.4-1 |
70kB |
Brusalk |
05-02-11 12:36 PM |
|
1.9.3-3 |
72kB |
Taroven |
04-03-11 10:02 AM |
|
1.9.3-3 |
67kB |
Taroven |
02-09-11 03:01 PM |
|
1.9.2a |
69kB |
Taroven |
11-09-10 05:11 PM |
|
1.9.2 |
69kB |
Taroven |
10-27-10 10:52 PM |
|
1.9 r378 |
65kB |
Taroven |
10-24-10 11:24 PM |
|
1.9 r377 |
65kB |
Taroven |
10-22-10 08:37 AM |
|
1.9 r376 |
65kB |
Taroven |
10-21-10 10:35 PM |
|
1.9 r370 |
65kB |
Taroven |
10-20-10 05:33 PM |
|
1.9 r362 |
65kB |
Taroven |
10-16-10 06:04 PM |
|
1.9 (r274) |
57kB |
Taroven |
07-21-10 06:14 PM |
|
1.9 (r272) |
57kB |
Taroven |
07-20-10 10:56 PM |
|
1.9 (r249) |
55kB |
Taroven |
06-14-10 09:35 AM |
|
1.9 (r241) |
55kB |
Taroven |
06-09-10 01:24 PM |
|
1.9 (r233) |
55kB |
Taroven |
06-05-10 02:22 PM |
|
1.9 (r232) |
55kB |
Taroven |
06-03-10 03:21 PM |
|
1.8 |
49kB |
Taroven |
04-21-10 01:41 AM |
|
1.7c |
45kB |
Taroven |
04-19-10 03:00 PM |
|
1.7b |
45kB |
Taroven |
03-23-10 05:28 PM |
|
1.7a |
45kB |
Taroven |
03-19-10 04:42 PM |
|
1.7 |
45kB |
Taroven |
03-18-10 04:33 PM |
|
1.6 |
43kB |
Taroven |
03-13-10 05:02 AM |
|
1.5c |
38kB |
Taroven |
01-10-10 05:31 PM |
|
1.5b |
38kB |
Taroven |
01-03-10 01:11 PM |
|
1.5a |
38kB |
Taroven |
12-24-09 11:41 AM |
|
1.5 |
37kB |
Taroven |
12-16-09 01:44 AM |
|
1.4 |
37kB |
Taroven |
12-09-09 04:30 AM |
|
1.3c |
36kB |
Taroven |
11-29-09 04:38 AM |
|
1.3b |
36kB |
Taroven |
11-20-09 04:05 PM |
|
1.3a |
36kB |
Taroven |
11-19-09 11:37 PM |
|
1.3 |
36kB |
Taroven |
11-18-09 09:10 PM |
|
1.2.4c |
35kB |
Taroven |
11-12-09 08:54 PM |
|
1.2.4b |
35kB |
Taroven |
11-05-09 11:44 PM |
|
1.2.4a |
35kB |
Taroven |
11-03-09 11:58 PM |
|
1.2.4 |
35kB |
Taroven |
11-03-09 04:48 AM |
|
1.2.3 |
34kB |
Taroven |
10-28-09 06:01 AM |
|
1.2.2 |
34kB |
Taroven |
10-23-09 04:42 AM |
|
1.2.1a |
34kB |
Taroven |
10-14-09 12:09 AM |
|
1.2.1 |
34kB |
Taroven |
10-13-09 11:49 PM |
|
1.2 |
34kB |
Taroven |
10-12-09 06:05 AM |
![]() |
Comment Options |
| the_mort |
| View Public Profile |
| Send a private message to the_mort |
| Find More Posts by the_mort |
| Add the_mort to Your Buddy List |
| Everdreamer |
| View Public Profile |
| Send a private message to Everdreamer |
| Find More Posts by Everdreamer |
| Add Everdreamer to Your Buddy List |
|
|
|||
|
A Kobold Labourer
Forum posts: 0
File comments: 25
Uploads: 0
|
Suggestion for code clean-up
In EventHorizon.lua line 1961 and 1962
Just a code cleanup suggestion, personally I was configuring my addons and felt very confused to see these 2 lines. |
||
|
|
| Everdreamer |
| View Public Profile |
| Send a private message to Everdreamer |
| Find More Posts by Everdreamer |
| Add Everdreamer to Your Buddy List |
|
|
||
|
A Kobold Labourer
Forum posts: 0
File comments: 4
Uploads: 0
|
config.width = 100 in myconfig.lua and it didn't narrow it down. I see in my config.lua Code:
width = {
default = 150,
number = true,
name = 'Bar Width',
desc = 'Set the width of shown bars. Icons add to the actual width of the window.'
},
Last edited by Angaroth : 10-19-12 at 05:51 PM.
|
|
|
|
| Angaroth |
| View Public Profile |
| Send a private message to Angaroth |
| Find More Posts by Angaroth |
| Add Angaroth to Your Buddy List |
|
|
||
|
|
(wow that was a bad last sentence) |
|
|
|
| Brusalk |
| View Public Profile |
| Send a private message to Brusalk |
| Find More Posts by Brusalk |
| Add Brusalk to Your Buddy List |
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
I've been running into an issue with my Engineering gloves and 5.0:
I added the line self:NewSpell({slotID = 10}) in the config.lua for priests, and the gloves show properly on the EventHorizon bar. When I zone into an instance (or take a port across the world), my gloves are removed from EventHorizon and no longer show on the spell list. If I manually take my gloves off and put them back on, it re-appears. Same if I reloadui. From what I can tell, PLAYER_EQUIPMENT_CHANGED fires off everytime I zone, just as I am leaving the current zone. When this occurs, it's returning a nil from FindItemInfo. It's as though it can't get your equipment properly as you're zoning and so the gloves are turned off. |
|
|
| Quil |
| View Public Profile |
| Send a private message to Quil |
| Find More Posts by Quil |
| Add Quil to Your Buddy List |
|
|
|||||
|
|
Re: Re: Re: Re: Redshift auto hide not working?
|
||||
|
|
| Brusalk |
| View Public Profile |
| Send a private message to Brusalk |
| Find More Posts by Brusalk |
| Add Brusalk to Your Buddy List |
|
|
||||
|
|
Re: Re: Re: Redshift auto hide not working?
I've noticed that the redshift stuff is working just fine... ...on my Warrior, Mage, and Paladin.. It's just the priest that seems to refuse to hide when not in combat and not targeting anything. I've spent some time looking at the priest config, but I can't find anything that should be affecting redshift. I even took out my "myconfig" file and used your default file, and it's still refusing to hide for my priest. Perhaps I'll have to debug how it handles hiding it and trace it. |
|||
|
|
| Trimble Epic |
| View Public Profile |
| Send a private message to Trimble Epic |
| Find More Posts by Trimble Epic |
| Add Trimble Epic to Your Buddy List |
|
|
||
|
|
Or remove the line entirely. |
|
|
|
| Brusalk |
| View Public Profile |
| Send a private message to Brusalk |
| Find More Posts by Brusalk |
| Add Brusalk to Your Buddy List |
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 19
Uploads: 0
|
How do I disable the spellid insert into tooltips?
__________________
Totemspot - The Shaman Community Site |
|
|
| binkenstein |
| View Public Profile |
| Send a private message to binkenstein |
| Find More Posts by binkenstein |
| Add binkenstein to Your Buddy List |
|
|
||
|
|
As for the other requirements and stuff, I'm planning on not only easily exposing a lot of the framework of EH but also I plan on making it easier for other people to make modules for EH with the intent of people being able to add functionality to the bars, such as adding more requiredBlah. I'm also in the process of fleshing out the API for the module system to make it easy. ![]() |
|
|
|
| Brusalk |
| View Public Profile |
| Send a private message to Brusalk |
| Find More Posts by Brusalk |
| Add Brusalk to Your Buddy List |
|
|
|
|
A Murloc Raider
Forum posts: 5
File comments: 4
Uploads: 0
|
I'm not sure how you're predicting ticks at the moment, but I've found out the AURA_APPLIED/AURA_REFRESHED timestamp and the initial instant tick of SW:P (PERIODIC_DAMAGE) are always identical, so it seems like that should be an easy to filter out issue.
Sorry for all the spam. :P I've become so dependent on EventHorizon that anything that can improve it for myself and others, excites me, lol. Been thinking of dropping my personal version for the Continued release for awhile, but I'm not sure if you support some of the stuff I do (pet requirement bars mostly >> that change/hide depending on specific UnitCreatureFamily, suppose I could just edit your's to add if not.) |
|
|
| Juanito |
| View Public Profile |
| Send a private message to Juanito |
| Find More Posts by Juanito |
| Add Juanito to Your Buddy List |
|
|
|||
|
|
Re: Re: Re: Re: Re: Re: Re: Re: Shadow Priest suggestions
That's simple to fix though as I just only update the aura when the duration increases. |
||
|
|
| Brusalk |
| View Public Profile |
| Send a private message to Brusalk |
| Find More Posts by Brusalk |
| Add Brusalk to Your Buddy List |
|
|
||
|
|
Re: Re: Re: Re: Re: Re: Re: Shadow Priest suggestions
Here's the code I'm using at the moment: Code:
addEvent(function(self, event, unit)
for _, spellbar in ipairs(ns.spellbars.active) do
if spellbar.spellConfig.debuff[1] > 0 then -- We have a debuff to look at
for i=1, 40 do
if unit == (type(spellbar.spellConfig.debuff[2]) == "string" and spellbar.spellConfig.debuff[2] or "target") then
local name, rank, icon, count, dispelType, duration, expires, caster, isStealable, shouldConsolidate, spellID, canApplyAura, isBossDebuff, value1, value2, value3 = UnitDebuff(unit, i)
if caster == "player" then
if spellbar.spellConfig.debuff[1] == spellID then -- Ooh, we found it on this spellbar.
ns.tooltip:SetUnitDebuff(unit, i)
local scanText = _G["EventHorizonScanTooltipTextLeft2"]:GetText()
local tickSpeed = tonumber(scanText:match(L["every"] .. "([0-9]+%.?[0-9]*)"))
--tonumber returns nil if it can't be converted to a number
local totalTicks = duration/tickSpeed
local tickError = math.abs((totalTicks / round(totalTicks,0))-1)
print("Got: ", tickError)
if tickError < 0.1 then
local debuffDuration = expires - GetTime()
ns:addDebuff(spellbar, debuffDuration, tickSpeed)
else
print("Error in tick calc. Got: ", tickError)
end
end
end
end
end
end
end
end,
"UNIT_AURA")
Last edited by Brusalk : 09-10-12 at 03:29 PM.
|
|
|
|
| Brusalk |
| View Public Profile |
| Send a private message to Brusalk |
| Find More Posts by Brusalk |
| Add Brusalk to Your Buddy List |
|
|
|
|
A Murloc Raider
Forum posts: 5
File comments: 4
Uploads: 0
|
Re: Re: Re: Re: Re: Re: Shadow Priest suggestions
Are you positive? The last time I inspected this during Cataclysm beta I was watching the tooltip of my applied dot change as I gained and lost dynamic haste, and we know that doesn't happen.
What would you do? Cycle through the aura's destination unit debuff buttons? How are you going to deal with non unitID'd applications such as a Death Knight using Pestilence? You have no way to query anything but a valid unitID with UnitAura(Buff/Debuff)? Sure you can get the tooltip from your current target, would you just delay building the set of ticks until the first occurrence of SPELL_PERIODIC_XXX and then build from there? This would be a lot easier than keeping track of all applied debuffs -if- they changed the way the tooltips update. Edit: derp, yeah. I guess if you were only asking for a snap shot on application (you might want to watch AURA_APPLIED as well, the non-unitID applications that won't fire UNIT_AURA), the real question would be: would it be easier (read: faster) to parse it out of the tooltip (after finding the correct one? i'd have to look into how they're set, have no idea, using the chat link (spell/item/etc) stuff?) or using the api call and calculating the haste by hand.
Last edited by Juanito : 09-10-12 at 03:19 PM.
|
|
|
| Juanito |
| View Public Profile |
| Send a private message to Juanito |
| Find More Posts by Juanito |
| Add Juanito to Your Buddy List |
![]() |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.



