numSkills = 4; manaTimer = 35; manaPot = key.VK_F1; setStartKey(key.VK_DELETE); setStopKey(key.VK_END); function skillSpam() for i=1,numSkills,1 do keyboardPress( key["VK_" .. i] ); yrest(200); end end newTimer("QuaffMana"); function main() cprintf(cli.yellow,"Eligium skill trainer bot.\nPlease verify default setings.\n\n"); cprintf(cli.lightgreen,"Number of skills being trained is currently %d.\nIs this correct? (y/n) ",numSkills); while true do local uchoice = io.stdin:read(); if string.lower(uchoice) == "n" then cprintf(cli.lightgreen,"How many skills are being trained? (0-9)") while true do local uchoice = tonumber(io.stdin:read()); if uchoice and type(uchoice) == "number" and uchoice <= 10 and uchoice >= 0 then numSkills = uchoice; cprintf(cli.lightgreen,"Number of skills being trained changed to %d.\n",numSkills); break; else cprintf(cli.lightred,"Invalid input, try again (0-9): "); end end elseif string.lower(uchoice) == "y" then cprintf(cli.lightgreen,"Default accepted.\n"); break; else cprintf(cli.lightred,"Invalid input, try again (y/n): "); end end cprintf(cli.lightgreen,"\nThe mana pot timer is currently set to %d seconds.\nIs this correct? (y/n) ",manaTimer); while true do local uchoice = io.stdin:read(); if string.lower(uchoice) == "n" then cprintf(cli.lightgreen,"How long should the mana pot quaff interval be? (in seconds)") while true do local uchoice = tonumber(io.stdin:read()); if uchoice and type(uchoice) == "number" and uchoice <= 1000 and uchoice >= 6 then numSkills = uchoice; cprintf(cli.lightgreen,"Number of skills being trained changed to %d.\n",numSkills); break; else cprintf(cli.lightred,"Invalid input, try again (in seconds): "); end end elseif string.lower(uchoice) == "y" then cprintf(cli.lightgreen,"Default accepted.\n"); break; else cprintf(cli.lightred,"Invalid input, try again (y/n): "); end end attach( findWindow("Eligium*") ); startTimer("QuaffMana",manaTimer*1000); while true do skillSpam(); if isTriggered("QuaffMana") then yrest(1000); keyboardPress( manaPot ); startTimer("QuaffMana",manaTimer*1000); yrest(200) end end detach(); end startMacro(main,true);