PQR v2.1 -
Download Here
---
NOTE: This is the release version but it is for profile developers, if you have a profile that currently utilizes a Lua file in the Data directory your rotation will NOT work until it has been updated. Stay on 2.0.9 for the time being. This version will be on the updater in a day or two.
-New function: PQR_LoadLua(fileName, forceRun) - 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.
-New function: PQR_SwapRotation(#) - Switches the currently running rotation to another one of the selected rotations. You can figure out which are selected by checking the global variables: PQR_Rotation# (ex: PQR_Rotation1)
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
If you would like to get your profiles ready to go now so they work in 2.0.9 and 2.1 just do the following:
Code:
if PQR_LoadLua then
--Code above here
end
Note to developers:
I did a bunch of testing locally and nothing should be broken by this change. Let me know if you have issues.