July 23, 20205 yr I script for fun when I have time. I was thinking about scripting a magic bot for fun. I'm trying to get my bot to open the magic tab and cast a spell, and I was looking around and saw: getMagic() CastSpell () Am I in the right direction? I couldn't figure out how to make it select a spell at all. Any thoughts are appreciated. Thanks
July 23, 20205 yr if (!getMagic().isSpellSelected()) { getMagic().castSpell(NormalSpells.HIGH_LEVEL_ALCHEMY); } else { getInventory().interact("", "Rune scimitar"); } Check if spells are selected first, then proceed to the next line of code ^^
Create an account or sign in to comment