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...
PHP 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
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 recreating
if there is an easier way that i have overlooked...... im all ears
