Code:
if PQR_RotationStarted == true then
PQR_RotationStarted = false
-- Tables
Nova_ValueCheck = {
[1] = { Var1 = nil, Text = "Survival Settings", Var2 = nil },
[2] = { Var1 = nil, Text = "Auto Healthstone", Var2 = 1 },
[3] = { Var1 = 30, Text = "Healthstone Health", Var2 = nil },
[4] = { Var1 = nil, Text = "Desperate Prayer Check", Var2 = 1 },
[5] = { Var1 = 30, Text = "Desperate Prayer Health", Var2 = nil },
[6] = { Var1 = nil, Text = "Cooldown Settings", Var2 = nil, },
[7] = { Var1 = nil, Text = "Auto Power Infusion", Var2 = 1 },
[8] = { Var1 = nil, Text = "Auto Shadowfiend", Var2 = 1 },
[9] = { Var1 = nil, Text = "Auto Racial Use", Var2 = 1 },
[10] = { Var1 = nil, Text = "Auto Potion (Hero)", Var2 = 1 },
[11] = { Var1 = nil, Text = "CD on Boss Only", Var2 = 1 }
}
Nova_CooldownCheck = {
[1] = { Mod = 32, Text = "Dispersion", Var1 = 1},
[2] = { Mod = 16, Text = "Level 90 Talent", Var1 = 1},
[3] = { Mod = 8, Text = "Mass Dispel", Var1 = 1},
[4] = { Mod = 4, Text = "Pause Rotation", Var1 = 1},
[5] = { Mod = 1, Text = "Toggle CD Mode", Var1 = 1}
}
-- CVar Registration
for i=1,#Nova_ValueCheck do
if GetCVar("Nova_"..string.gsub(Nova_ValueCheck[i].Text,"%s","_")) == nil then
RegisterCVar("Nova_"..string.gsub(Nova_ValueCheck[i].Text,"%s","_"), Nova_ValueCheck[i].Var1)
end
if GetCVar("Nova_"..string.gsub(Nova_ValueCheck[i].Text,"%s","_").."_Enabled") == nil then
RegisterCVar("Nova_"..string.gsub(Nova_ValueCheck[i].Text,"%s","_").."_Enabled", Nova_ValueCheck[i].Var2)
end
end
for i=1,#Nova_CooldownCheck do
if GetCVar("Nova_"..string.gsub(Nova_CooldownCheck[i].Text,"%s","_")) == nil then
RegisterCVar("Nova_"..string.gsub(Nova_CooldownCheck[i].Text,"%s","_"), Nova_CooldownCheck[i].Mod)
end
if GetCVar("Nova_"..string.gsub(Nova_CooldownCheck[i].Text,"%s","_").."_Enabled") == nil then
RegisterCVar("Nova_"..string.gsub(Nova_CooldownCheck[i].Text,"%s","_").."_Enabled", Nova_CooldownCheck[i].Var1)
end
end
-- Load LUA files
if PQR_LoadLua ~= nil then
if PQR_LoadLua("PQR_Nova_Frame.lua") == true then
MiniMapCreation()
-- Slash Commands
SLASH_NOVAFRAME1 = "/novaframe"
SLASH_NOVAFRAME2 = "/nova"
function SlashCmdList.NOVAFRAME(msg, editbox)
if Setup == nil then
Setup = true
FrameCreation(Nova_ValueCheck, Nova_CooldownCheck, "Shadow Priest Options", "Shadow Cooldown Settings")
end
if not Nova_Frame:IsShown() then Nova_Frame:Show() else Nova_Frame:Hide() end
end
end
end
end
Once in-game, you can simply execute the rotation and click the minimap button or type /nova or /novaframe to get the frame up.