Crystal, if this is the wrong place for this discussion I apologize, I'm happy to take it elsewhere... I have some pretty basic things going on in my rotation test, I'd really like to develop my own and contribute here but I can't get something as simple as this to work, even though as far as I can tell everything is FUNCTIONING
I have an --Init block, part of which I stole from nova resto druid that looks like so... (and seems to work as it's writing to my chat window)
If I can get a rotation to work without spamming ability not ready, I'd be much more prone to write a nice clean rotation and ability set.
Also is there anyway to append a VARIABLE to the chat window, or how can I look at variable values/debug messages - I'd liek to know what it's actually setting as the "lag" value.
Code:
if PQR_RotationStarted == true then
-- Should be reloaded every time you reload Profile (No more needing to /rl)
PQR_RotationStarted = false
--PQR_WriteToChat("|cff0088FFHoly Paladin Profile Version - |cff33CC002.0")
Nova_SpellAvailableTime = nil
function Nova_SpellAvailableTime()
local lag = ((select(3,GetNetStats()) + select(4,GetNetStats())) / 1000)
if lag < .05 then
lag = .05
elseif lag > .4 then
lag = .4
end
return lag
end
PQR_WriteToChat("Testes, testes 123","lag")
PQR_SpellAvailableTime = Nova_SpellAvailableTime()
end
Then I have two very simple abilities, one for glaive toss and one for arcane shot... and in just those two abilities it ends up spamming enough that I get loads of ability not ready alerts...
Code:
-- Arcane Shot usage code.
if PQR_SpellAvailable(3044)
and UnitPower("player") > 30
then return true end
--GlaiveToss Code
if not IsPlayerSpell(117050) then return false end
if PQR_SpellAvailable(117050)
and UnitPower("player") > 15
--and select(2,GetSpellCooldown(61304)) == 0
then return true end
obviously those are in two separate abilities, but for brevity i put them in the same block.