PQR v2.1 - If you downloaded the preview version for profile writers please re-download.
NOTE: If your rotation relies on an external Lua file your rotation will not work in this version and requires a very small tweak. See my notes below for more details. If you do not know how to update the rotations please wait for the profile developer to do it for you.
Download using PQRUpdater.exe or see main post for manual download instructions.
---
-New lua file editor. Access it using the Ability Editor.
-If you upgrade from an older version of PQR to a new version of PQR in the same session your WoW will auto ReloadUI when you try to run a rotation.
-New global: PQR_Version. You may check what version of PQR people are running by checking this variable. 2.1.0 is 210.
-New function: PQR_LoadLua(fileName, forceRun) - Loads the lua file specified. Returns true if the file was run/loaded/already ran, returns false otherwise. If forceRun is true then it will run the lua file again even if it has already been previously run.
-New function: PQR_StopRotation() - Stops the currently running rotation (automatic mode only)
-New function: PQR_SwapRotation(rotationName or rotationNumber[, setRotation]) - Switches the currently running rotation to another rotation. If changing by name use the full rotation name as seen in the PQR window (example:
PQR_SwapRotation("Ret PVE (Xelper)") .) If swapping by number you can figure out which are selected by checking the global variables: PQR_Rotation# (ex: PQR_Rotation1). Returns true if the swap was successful, false otherwise. You do NOT need to have the rotation selected in PQR when changing by name.
I decided to move from loading every Lua file into WoW to running only requested Lua files. This is because some profiles wont even use them, and it is inefficient and a drain on resources/memory to have all Lua files run.
Example usage, this should be in your initialize prior to using any custom functions:
Code:
if PQR_LoadLua("PQR_Bubba_Data.lua") == false then
PQR_WriteToChat("You are missing PQR_Bubba_Data.lua. Rotation has been stopped.", "Error")
PQR_StopRotation()
return true
end