Can someone tell me how to get the cool down of a spell.
Would
local crusaderStrikeCD = GetSpellInfo(35395)
if crusaderStrikeCD >= 1.5 then
return true
end
work?'
Figured it out I think.
local artOfWar = PQR_UnitBuffID("player", 8713
local crusaderStrikeCD = GetSpellCooldown(35395)
if artOfWar ~= nil and crusaderStrikeCD >= 1.5 then
return true
end
Last edited by averykey; 06-08-2012 at 02:00 PM.
Thanks, For some reason my inq keeps casting over and over, what did I mess up in this code?
local holyPower = UnitPower("player", 9)
local divinePurpose = PQR_UnitBuffID("player", 86172)
local inquisition, _, _, _, _, _, inquisitionEndTime = PQR_UnitBuffID("player", 84963)
local crusaderStrikeCD = GetSpellCooldown(35395)
local judgementCD = GetSpellCooldown(20271)
if inquisition ~= nil then
inquisitionEndTime = inquisitionEndTime - GetTime()
end
if crusaderStrikeCD or judgementCD >= 2 and inquisition == nil then
if holyPower > 0 or divinePurpose ~= nil then
return true
end
end
if inquisition == nil or inquisitionEndTime <= 3 then
if holyPower >= 3 or divinePurpose ~= nil then
return true
end
end
Would this work?
local aoeMode == 0
local shiftDown = IsLeftShiftKeyDown();
if shiftDown then
aoemode == 1
end
if aoeMode == 1 and shiftDown then
aoeMode == 0
end
Then I can add into a new spell
if aoeMode == 0 then
cast(crusaderStrike) - fake
else
cast(divineStorm) - fake
end
-- as opposed to being real
Last edited by averykey; 06-08-2012 at 02:27 PM.
crystal tech i confirmed that left shift for meta/pot/soulburn/felstorm does not work for demo profile everythign looks good.
Iam using the balance-druid profile called "moonkin (Boom)" idk who made it, but it works very well for me. However I want it to stop/freeze the rotation whenever I activate Wild Mushroom, and resume it when I've detonated them with starfall (for the aoe). I can upload the profile so you can have a look at it here. Iam new at balance, since my GM wanted me to spec for it as my dps OS. I know this can be done by just stopping the rotation by pressing alt+x but everything for convenience, right? ;D
There wouldnt be a shadow priest pvp profile out there would there? All i can find are PvE ones.
crusaderStrikeCD is not returning a nil or "false" value so the expression will be true every time. Also you need to subtract GetTime() for GetSpellCooldown() to return seconds.Code:if crusaderStrikeCD or judgementCD >= 2 and inquisition == nil then
There should be no reason to use a global or local to set an AE mode for a ret paladins, just check the seal for Crusader Strike and Divine Storm and use a seal swap ability to control the AE modes.
Do or Die
[PQR] Monk Mistweaver
I'm wondering if there's a warlock demonology leveling (1-85 or 10-85) rotation. If so, could someone link it here?
Edit: Found one for 3-85.
Last edited by Whatsmyname; 06-08-2012 at 06:53 PM.
Hi, give a profile for Rogues Subtlety pvp
Hi alans, did you try the forums search-function? Or have you looked at the pqrotation-wikipage? Because if you do either of those, Iam sure you will find what you are looking for.
GL with your rogue!
so like this?
local sealTruth = PQR_UnitBuffID("player", 31801)
local sealRight = PQR_UnitBuffID("player", 20154)
local shiftDown = IsLeftShiftKeyDown();
if shiftDown and sealTruth -= nil then
CastSpellByID(20154, "player")
--change rotation to aoe
--sendmessage somehow
else if shiftDown and sealRight -= nil then
CastSpellByID(31801, "player")
--change rotation to single
--sendmessage somehow
end
end
Can someone tell me how to send a message like aoe enabled/singletarget enabled and how to change the rotation via lua, isn't it something like swapRotation("")??
updated
local sealTruth = PQR_UnitBuffID("player", 31801)
local sealRight = PQR_UnitBuffID("player", 20154)
local shiftDown = IsLeftShiftKeyDown();
if shiftDown and sealTruth -= nil then
CastSpellByID(20154, "player")
PQR_SwapRotation("Ret Aoe (AveryRet)")
PQR_WriteToChat("Rotation mode: \124cFF3BB0FFArea of Effect")
else if shiftDown and sealRight -= nil then
CastSpellByID(31801, "player")
PQR_SwapRotation("Ret Single (AveryRet)")
PQR_WriteToChat("Rotation mode: \124cFFD4D4D4Single target")
end
end
Last edited by averykey; 06-09-2012 at 06:33 AM.
Can someone update the wiki for this or post a list of all PQR-custom functions?
For some reason, no matter what I do this will not work.
local shiftDown = IsLeftShiftKeyDown();
local ctrlDown = IsLeftCtrlKeyDown();
if IsLeftShiftKeyDown() then
PQR_SwapRotation("Ret Aoe (AveryRet)")
PQR_WriteToChat("Rotation mode: \124cFF3BB0FFArea of Effect")
end
if IsLeftCtrlKeyDown() then
PQR_SwapRotation("Ret Single (AveryRet)")
PQR_WriteToChat("Rotation mode: \124cFFD4D4D4Single target")
end
edit: trying to write a inquisition that refreshes with 3 hp the first time then afterwards it always checks.
local holyPower = UnitPower("player", 9)
local divinePurpose = PQR_UnitBuffID("player", 86172)
local inquisition, _, _, _, _, _, inquisitionEndTime = PQR_UnitBuffID("player", 84963)
local crusaderStrikeCD = GetSpellCooldown(35395)
local judgementCD = GetSpellCooldown(20271)
if inquisition ~= nil then
inquisitionEndTime = inquisitionEndTime - GetTime()
end
if inquisition == nil or inquisitionEndTime <= 2 then
if holyPower >= 3 or divinePurpose ~= nil then
return true
else if inquisitionEndTime <=2 and holyPower <=2 and crusaderStrikeCD >=2 and judgementCD >=2 then
return true
end
end
if crusaderStrikeCD >= 2 or judgementCD >= 2 and inquisition == nil then --what would I add here so the above condition has to be true first?
return true --A variable like firstInqDone maybe? I am not sure if that would work.
end
Would this work? My Goal is to have it never fall off after its up.
local holyPower = UnitPower("player", 9)
local divinePurpose = PQR_UnitBuffID("player", 86172)
local inquisition, _, _, _, _, _, inquisitionEndTime = PQR_UnitBuffID("player", 84963)
local crusaderStrikeCD = GetSpellCooldown(35395)
local judgementCD = GetSpellCooldown(20271)
if inquisition ~= nil then
inquisitionEndTime = inquisitionEndTime - GetTime()
end
if inquisition == nil or inquisitionEndTime <= 2 then
if holyPower >= 3 or divinePurpose ~= nil then
return true
else if inquisitionEndTime <=2 and holyPower <=2 and crusaderStrikeCD >=2 and judgementCD >=2 then
return true
end
end
if inquisition == nil or inquisitionEndTime <= 2 then
if holyPower >= 3 or divinePurpose ~= nil then
return true
else if inquisitionEndTime <=2 and holyPower > 0 and holyPower < 3 and crusaderStrikeCD >=2 and judgementCD >=2 then
return true
end
end
Last edited by averykey; 06-09-2012 at 07:52 AM.