This is the new function I made to the max skill level without using that glitchy in-game function they give us to level up skills. Add this to your manual addon:
Code: Select all
function LevelSkills(_tab,_skill)
SkillLevelUpFrame_Open(_tab,_skill);
SkillLevelUpFrameMax_OnClick();
SkillLevelUpFrameOkay_OnClick();
end
Code: Select all
local tpSkills = {"ROGUE_WOUND_ATTACK", "ROGUE_LOW_BLOW", "ROGUE_SHADOWSTAB", "ROGUE_DAGGER_MASTERY"}
function SendLvlSkills()
local tpIndex = 1;
while tpSkills[tpIndex] do
for i,v in pairs(settings.profile.skills) do
if( v.Name == tpSkills[tpIndex] ) then
RoMScript("LevelSkills("..tostring(v.skilltab)..","..tostring(v.skillnum)..");");
cprintf(cli.yellow, "Maxing %s in the order the user specified.\n", tpSkills[tpIndex]);
yrest(1000);
end
end
tpIndex = tpIndex + 1;
end
end
Under OnLevelup of your profile add this:
Code: Select all
SendLvlSkills();
Edit: There is an issue with detecting levelups when character cycling so I added the levelup check toonloeave combat as follows:
Code: Select all
player:update();
if(player.Level > player.level_detect_levelup) then
player.level_detect_levelup = player.Level;
SendLvlSkills();
end