anyone know how to make command demon work for the interrupt because i can only use the interrupt when the pet is out.
nvm found out how.
anyone know how to make command demon work for the interrupt because i can only use the interrupt when the pet is out.
nvm found out how.
Last edited by rightous; 02-02-2013 at 08:35 PM.
Alright as payment for the request im about to make.... can anyone help me figure out how to find the ActionSlotID of a modded action bar? (IE ActionButton_GetPagedID, doesn't work with the ElvUI style action bar because.... it doesn't)
I'm going to be using it in something like this
PHP Code:
-----------------------
-- Init
-----------------------
if CombatLog == nil then
Nova_CombatLog = CreateFrame('Frame')
Nova_CombatLog:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
QueuedSpells = { }
function OnSuccessfulCast(self, event, ...)
local type, _, sourceGUID, sourceNAME, _, _, destGUID, destNAME = select(2, ...)
if (event=="COMBAT_LOG_EVENT_UNFILTERED") then
if (type=="SPELL_CAST_SUCCESS")
or (type=="SPELL_CAST_START") then
if sourceGUID == Nova_GUID("player") then
if #QueuedSpells > 0 then
for i=1, #QueuedSpells do
if select(12, ...) == QueuedSpells[i].Spell then
table.remove(QueuedSpells, i)
end
end
end
end
end
end
end
Nova_CombatLog:SetScript('OnEvent', OnSuccessfulCast)
CombatLog = true
end
------------------------
-- Ability
------------------------
if IsMouseButtonDown()
and GetMouseFocus():GetName()
and string.find(string.lower(GetMouseFocus():GetName()), "action.")
and string.find(string.lower(GetMouseFocus():GetName()), ".button") then
local EAB = ActionButton_GetPagedID(_G[GetMouseFocus():GetName()])
local AlreadyQueued = false
if GetActionInfo(EAB)
and GetActionInfo(EAB) == 'spell' then
if #QueuedSpells > 0 then
for i=1, #QueuedSpells do
if QueuedSpells[i].Spell == select(2, GetActionInfo(EAB)) then
AlreadyQueued = true
end
end
end
if not AlreadyQueued then
local _, spellid, _ = GetActionInfo(EAB)
table.insert(QueuedSpells, { Spell = spellid, Location = EAB} )
end
end
end
if #QueuedSpells > 0 then
for i=1, #QueuedSpells do
if (select(2, GetSpellCooldown(QueuedSpells[i].Spell)) + GetSpellCooldown(QueuedSpells[i].Spell)) - GetTime() < 1 then
UseAction(QueuedSpells[i].Location, 'target')
end
end
end
Hey everyone, is there code available for Huddle in Terror @ Sha of Fear Heroic Phase2 ? Throw the light ball on Role "Healer" firstly. Thanks in advance!
@nerder
need help in the rotation where i click a target and stealth, where is it located so i can add the sap then pickpocket them the opener. i try manually and it strikes before i can hit pickpocket after i sap them. any help is appreciated.
WTB PTR OFFSETS. XD Paying 200 copper.
ActionButton_GetPagedID(_G['EvilUI_Bar1Button1']) does not return the action slot id as does ActioButton_GetPagedID(_G['ActionButton1']) does. So my method of calling for the information inside of the SlotID using the name of the button isn't working....
And i haven't found a way to reliably find the slot id of the button without recreating the logic used in the creation of the buttons themselves.....
trying to make a queue table of spells we want to cast that will have priority over anything in the rotation.
lets say we click spell X during GCD, as well as Y and Z....
The rotation will try to cast X, Y and Z before moving on to the rest of the rotation...
So if X and Y are on 4 seconds of CD remaining, but Z is not, it will cast Z, continue on with the rotation, but as soon as X and Y are available, it will cast them
but how im finding what spell is being clicked, is by taking the name of the button being clicked by the Mouse, finding the slot id of the button, then finding the Spell ID of the spell inside that button, then sending all of the information into a table.
then when the Combat Log sees a Start or Success from one of the spells inside the table, it removed that table entry to avoid spamming
*edit*
my code i posted above works for what I've said with Default UI and Dominoes, but no with Bartender or ElvUI...
that's why im trying to find another easy way to determine the Slot ID using their name, without resorting to something like...
not to mention all of the special circumstances like stance bars and such like that, that would need to be coded... thats what i mean by recreatingPHP Code:
if IsAddOnLoaded('ElvUI') then
local i = 1
for y=1, 10 do
for z=1, 12 do
table.insert(Example, { Slot = i, Name = 'ElvUI_Bar'..tostring(y)..'Button'..tostring(z) }
i = i + 1
end
end
end
if there is an easier way that i have overlooked...... im all ears![]()