frostbitee Posted April 1, 2015 Posted April 1, 2015 (edited) can somebody help me with the tabs API? how can i open the magic tab? also when it opens the magic tab i want it to teleport to edgeville any code help would be appreciated Edited April 1, 2015 by frostbitee
Twin Posted April 1, 2015 Posted April 1, 2015 can somebody help me with the tabs API? how can i open the magic tab? also when it opens the magic tab i want it to teleport to edgeville any code help would be appreciated I do it by getting the interface id of the magic book on the tool bar, then the interface id of the spell I want it to click. 1
frostbitee Posted April 1, 2015 Author Posted April 1, 2015 I do it by getting the interface id of the magic book on the tool bar, then the interface id of the spell I want it to click. can you give me a small code snippet?
Twin Posted April 1, 2015 Posted April 1, 2015 can you give me a small code snippet? RS2Widget mage = widgets.get(548, 61);//this is the spell book if (mage != null && mage.isVisible())//checks to make sure its actually on your screen mage.interact("Magic");//clicks on the spell book sleep(random(500, 1000)); RS2Widget cast = widgets.get(218, 1);//this is teleport to lumbridge if (cast != null && cast.isVisible())//makes sure teleport to lumbridge is a visible option cast.interact("Cast");//cast teleport to lumbridge. sleep(15000); 1
frostbitee Posted April 1, 2015 Author Posted April 1, 2015 RS2Widget mage = widgets.get(548, 61);//this is the spell book if (mage != null && mage.isVisible())//checks to make sure its actually on your screen mage.interact("Magic");//clicks on the spell book sleep(random(500, 1000)); RS2Widget cast = widgets.get(218, 1);//this is teleport to lumbridge if (cast != null && cast.isVisible())//makes sure teleport to lumbridge is a visible option cast.interact("Cast");//cast teleport to lumbridge. sleep(15000); you're the best man ty
Twin Posted April 1, 2015 Posted April 1, 2015 you're the best man ty No problem if you need anything else let me know