Originally Posted by
xpknightx
Is there any way to put Zen Sphere in the rotation? Not to detonate it, but to have the orb up whenever possible? Zen Sphere heals 8 times for 23% of Monk AP over 16 seconds, total healing of 184%. That is a decent amount of healing over time and takes just a little bit more pressure off of healers.
I tried using this code, but as soon as I added it into the rotation, none of the other skills would work.
if not HaveBuff("player",124081)
then return true end
I liked your idea, so implimented it. I don't really know how to program in .lua but am learning by looking at other peoples code. The code you are trying to make work is also in Sheurons profile, which made it easy to figure out. The "HaveBuff("player",124081)" is actually a function that he also uses in his code. What I did was created a new file in the data directory called "PQR_PV_Data.lua" and the code in the file is...
Code:
-------------------------------------------------------------------------------
-- Functions & Variables
-------------------------------------------------------------------------------
if not PQR_LoadedDataFile then
PQR_LoadedDateFile = 1
print("|cffFFBE69PV Data File v0.1 - October 12, 2012|cffffffff")
end
function HaveBuff(UnitID,SpellID,TimeLeft,Filter)
if not TimeLeft then TimeLeft = 0 end
if type(SpellID) == "number" then SpellID = { SpellID } end
for i=1,#SpellID do
local spell, rank = GetSpellInfo(SpellID[i])
if spell then
local buff = select(7,UnitBuff(UnitID,spell,rank,Filter))
if buff and ( buff == 0 or buff - GetTime() > TimeLeft ) then return true end
end
end
end
After doing this, I created a new spell in the ability editor called "initialize" (without the quotes). The code for the ability is...
Code:
if PQR_RotationStarted then
----------------------------------
-- Load Data File(s)
----------------------------------
if not PQR_LoadLua("PQR_PV_Data.lua") then
PQR_WriteToChat("You are missing a key file: PQR_PV_Data.lua. Please put this file in the Data folder and reload PQR. Thank You!", "Error")
PQR_RotationStop()
return true
end
end
I then did the same thing you did, created an ability called "Zen Sphere" and put in the same code you did. Tested and works like a charm.
Let me know if this worked for you or not.
On a side note, if KuuKuu comes out with his own datafile, and doesn't impliment the zen sphere, you would need to load both data files.
Also, KuuKuu, please forgive me if I've offended you in any way by hacking your code, same with Sheuron (if you're reading this). I think KuuKuu's brewmaster profile is the best out there at this time, at least for me, because it's easiest for me (beings a newb programmer) to work with, and I'm just trying to make it work in a way that I would like it to.