Please do some searching before making posts.![]()
Please do some searching before making posts.![]()
quick question about writing a rotation with toggles. Ripping off Sheuron's code, there is:
So, if I wanted to do a similar thing in another profile, do i just have to define "modswitch(isleftaltkeydown(),"AOE")" and then add "if AOE..." to aoe abilities?Code:GroupInfo() CastClick() ModSwitch(IsLeftAltKeyDown(),"canAOE","\124cFFD4D4D4Single target","\124cFF3BB0FFArea of Effect") ModSwitch(IsRightShiftKeyDown(),"dontSB","\124cFF4FF763Shield Block enabled","\124cFFF74F4FShield Block disabled") ModSwitch(IsRightAltKeyDown(),"dontCD","\124cFF4FF763Cooldowns enabled","\124cFFF74F4FCooldowns disabled")
R\L Alt, Ctrl, Shift, mousebutton(x), how to use other buttons like F1-12 and abc...?
Personally I'm using in-game macros that I bind to a key in the keybinds in-game. To achieve this, you will need a Nova Data and Init if i could say.
There's my AoE Toggle macro script. As I said, it will not work alone. You will need some functions to make it work but for exemple, most of the actual Nova profiles would support this.
Credits goes to Team Nova for this code.
I hope this will give you ideas. A thing is sure, binding any key is actually possible.SLASH_AOE1 = "/aoe"
function SlashCmdList.AOE(msg, editbox)
if not GetCVarBool("Nova_AoE") then
if not GetCVarBool("Nova_Recording") then
PQR_WriteToChat("|cffFF78A0Area of Effect.")
PQR_Event("PQR_Text", "CodeMyLife AoE", nil, "CC3399")
end
SetCVar("Nova_AoE", 1)
else
if not GetCVarBool("Nova_Recording") then
PQR_WriteToChat("|cffFF78A0Single Target.")
PQR_Event("PQR_Text", "CodeMyLife Single", nil, "CC3399")
end
SetCVar("Nova_AoE", 0)
end
end
Last edited by CodeMyLife; 04-16-2013 at 03:55 PM.
Sheuron's profiles use a frame to display text such as "Rotation paused" instead of just printing to chat. Modswitch is the function for said frames. For a simpler solution you can just use something similar to what Team Nova does in some of their profiles. Credit to them for this code.
Then you just add this line to any abilities that you want to be used for AOE only.PHP Code:
if modtime == nil then
modtime = 0
end
if IsLeftAltKeyDown() and GetTime() - modtime > 1 then
modtime = GetTime()
if UseAOE then
UseAOE = nil
PQR_WriteToChat("AoE: \124cFFE61515Disabled")
else
UseAOE = true
PQR_WriteToChat("AoE: \124cFF15E615Enabled")
end
end
The other way to do it is to use PQR_SwapRotation which means you can have completely separate rotations for single target and AOE though I find keeping them to a single profile to be preferable. It's a little harder to set up overall but it's cleaner.PHP Code:
if UseAOE then
If you want to use Sheuron's code to display a frame rather than write to chat you'd want to use this with Sheuron's modswitch function.
So it'd look like:PHP Code:
Modswitch(Key, Variable, Message1, Message2)
Message1 and Message2 are the messages displayed on the frame when activating or deactivating the switch. Then it's just a simple case of checking for the variable which in this case you'd do.PHP Code:
Modswitch(IsLeftAltKeyDown(), "ThisIsMyVariable", "Variable activated", "Variable deactivated")
But if you don't want to use the frame you're better off just using something like the Nova code as it works in pretty much the same way.PHP Code:
if ThisIsMyVariable then
blabbla
end
Last edited by DiabloFan; 04-16-2013 at 04:53 PM.
When I start my PQR everything is fine, i can load profiles and whatever, iam running wow in 32bit mode and i see my character name but when i start the rotation (with alt+x) both Wow and PQR crash, anyone has the same prblem?
Edit: i use a 50 SV hunter with a SV Hunter rotation
Someone get the new offsets! lol
can anyone tell me why i cant check if immolate is in range ?
IsSpellInRange(tostring(GetSpellInfo(34), "focus") returns Empty Result, so does every other SpellID for immolate
IsSpellInRange(tostring(GetSpellInfo(???)), "focus") for other spells works just fine
I've found some spells don't return range info, I usually use a spell with the same or close to the same range in those events.
Sent from my Nexus 4 using Tapatalk 2
BadRotationsDeveloper