Jump to content

tabs help?


frostbitee

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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