Jump to content

tabs help?


Recommended Posts

Posted

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.

  • Like 1
Posted

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);
  • Like 1
Posted
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 <3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...