06-29-2017, 01:59 PM
Hey Chunky, if you'd like to post this in your OP you can if that will help users find it better:
Code:
local profile = {
triggers = {
{ detect_function = "PitchPerfect()" }
}
}
PitchPerfect = function()
local CurrentSong = 0
local Repertoire = 0
local g = Player.gauge
if (table.valid(g)) then
for i,k in pairs (g) do
if i == 1 and k == 12 then
CurrentSong = 0
elseif i == 1 and k == 5 then
CurrentSong = 1
elseif i == 1 and k == 10 then
CurrentSong = 2
elseif i == 1 and k == 15 then
CurrentSong = 3
end
if i == 2 then Repertoire = k end
end
end
if CurrentSong == 3 and Repertoire > 1 then
SkillMgr.GetAction(7404):Cast(Player:GetTarget().id)
end
end
return profile