/trunk/KHunterTimers
KHT_NUM_TIMERS = { |
[1] = 24, -- Specializations |
[2] = 28, -- Talents |
[2] = 25, -- Talents |
[3] = 14, -- Common |
[4] = 9, -- Pets |
[5] = 1, -- Misc |
[10] = KHT_CAREFUL_AIM, |
[11] = KHT_DIRE_FRENZY, |
[12] = KHT_DRAGON_GRENADE, |
[13] = KHT_INSTINCT_CHEETAH, |
[14] = KHT_INSTINCT_MONGOOSE, |
[15] = KHT_INSTINCT_RAPTOR, |
[16] = KHT_INTIM, |
[17] = KHT_LOCK_LOAD, |
[18] = KHT_MOKNATHAL, |
[19] = KHT_POSTHASTE, |
[20] = KHT_RANGERS_NET, |
[21] = KHT_SERPENT_STING, |
[22] = KHT_SPITTING_COBRA, |
[23] = KHT_STAMPEDE, |
[24] = KHT_STEADY_FOCUS, |
[25] = KHT_STEEL_TRAP, |
[26] = KHT_STICKY_BOMB, |
[27] = KHT_TRUE_AIM, |
[28] = KHT_WYVERN, |
[13] = KHT_INTIM, |
[14] = KHT_LOCK_LOAD, |
[15] = KHT_MOKNATHAL, |
[16] = KHT_POSTHASTE, |
[17] = KHT_RANGERS_NET, |
[18] = KHT_SERPENT_STING, |
[19] = KHT_SPITTING_COBRA, |
[20] = KHT_STAMPEDE, |
[21] = KHT_STEADY_FOCUS, |
[22] = KHT_STEEL_TRAP, |
[23] = KHT_STICKY_BOMB, |
[24] = KHT_TRUE_AIM, |
[25] = KHT_WYVERN, |
[26] = KHT_OFF, |
[27] = KHT_OFF, |
[28] = KHT_OFF, |
[29] = KHT_OFF, |
[30] = KHT_OFF, |
[31] = KHT_OFF, |
KHTvars["sticky"] = true; |
end |
if( KHTvars["cheetahtimeadd"] == nil ) then |
KHTvars["cheetahtimeadd"] = 0; |
end |
if( KHTvars["serpentsting"] == nil ) then |
KHTvars["serpentsting"] = false; |
end |
KHunterTimersFrame_add( 6000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_CAMO] and spellName == KHT_CAMO ) then |
KHunterTimersFrame_add( 60000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_INSTINCT_CHEETAH] and spellName == KHT_INSTINCT_CHEETAH ) then |
KHunterTimersFrame_add( 7000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_INSTINCT_MONGOOSE] and spellName == KHT_INSTINCT_MONGOOSE ) then |
KHunterTimersFrame_add( 7000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_INSTINCT_RAPTOR] and spellName == KHT_INSTINCT_RAPTOR ) then |
KHunterTimersFrame_add( 7000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_POSTHASTE] and spellName == KHT_POSTHASTE ) then |
KHunterTimersFrame_add( 8000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_SPITTING_COBRA] and spellName == KHT_SPITTING_COBRA ) then |
end |
if( KHTvars["skills"][KHT_COMMON] ) then |
if( KHTvars["skills"][KHT_ASPECT_CHEETAH] and spellName == KHT_ASPECT_CHEETAH and spellId == 186257 ) then |
KHunterTimersFrame_add( 3000+KHTvars["cheetahtimeadd"], spellName, spellId ) |
KHunterTimersFrame_add( 3000, spellName, spellId ) |
elseif( KHTvars["skills"][KHT_ASPECT_CHEETAH] and spellName == KHT_ASPECT_CHEETAH and spellId == 186258 ) then |
KHunterTimersFrame_add( 9000+KHTvars["cheetahtimeadd"], spellName, spellId ) |
KHunterTimersFrame_add( 9000, spellName, spellId ) |
elseif( KHTvars["skills"][KHT_ASPECT_TURTLE] and spellName == KHT_ASPECT_TURTLE ) then |
KHunterTimersFrame_add( 8000, spellName, spellId ) |
elseif( KHTvars["skills"][KHT_BERSERKING] and spellName == KHT_BERSERKING ) then |
end |
end |
if( KHTvars["skills"][KHT_TALENT] ) then |
if( KHTvars["skills"][KHT_INSTINCT_CHEETAH] and spellName == KHT_INSTINCT_CHEETAH ) then |
KHunterTimersFrame_add( 7000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_INSTINCT_MONGOOSE] and spellName == KHT_INSTINCT_MONGOOSE ) then |
KHunterTimersFrame_add( 7000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_INSTINCT_RAPTOR] and spellName == KHT_INSTINCT_RAPTOR ) then |
KHunterTimersFrame_add( 7000, spellName, spellId ); |
elseif( KHTvars["skills"][KHT_STEADY_FOCUS] and spellName == KHT_STEADY_FOCUS ) then |
if( KHTvars["skills"][KHT_STEADY_FOCUS] and spellName == KHT_STEADY_FOCUS ) then |
KHunterTimersFrame_add( 12000, spellName, spellId ); |
end |
end |
function KHunterTimers_UpdateTalents() |
local _, _, _, talentActive = GetTalentInfoByID(22318,1) --Dash |
if talentActive then |
KHTvars["cheetahtimeadd"] = 3000; |
else |
KHTvars["cheetahtimeadd"] = 0; |
end |
local _, _, _, talentActive = GetTalentInfoByID(22271,1) --Serpent Sting |
if talentActive then |
KHTvars["serpentsting"] = true; |
Version History |
v4.1.0 |
- Updated for 7.1 patch |
v4.0.1 |
- Update localizations |
v4.0.0 |
## Interface: 70000 |
## Interface: 70100 |
## Title: Kharthus's Hunter Timers |
## Notes: Times hunter buffs/debuffs |
## Version: 4.0.1 |
## Version: 4.1.0 |
## DefaultState: Enabled |
## LoadOnDemand: 0 |
## SavedVariables: KHTvars |
KHT_CARVE = GetSpellInfo(187708) -- Carve |
KHT_DIRE_FRENZY = GetSpellInfo(217200) -- Dire Frenzy |
KHT_DRAGON_GRENADE = GetSpellInfo(194855) -- Dragonsfire Grenade |
KHT_INSTINCT_CHEETAH = GetSpellInfo(204324) -- Instincts of the Cheetah |
KHT_INSTINCT_MONGOOSE = GetSpellInfo(204333) -- Instincts of the Mongoose |
KHT_INSTINCT_RAPTOR = GetSpellInfo(204321) -- Instincts of the Raptor |
KHT_INTIM = GetSpellInfo(24394) -- Intimidation |
KHT_LOCK_LOAD = GetSpellInfo(194595) -- Lock and Load |
KHT_MOKNATHAL = GetSpellInfo(201081) -- Mok'Nathal Tactics |