Jump to content

How do I run my own script?


Crazed

Recommended Posts

I exported it as a jar file to the scripts folder for OSBot and when I load it up the script is not on the list. How do I load my script? 

 

Also, when i try to add a sleep to one of my methods, eclipse tells me i have to add the following code:

throws InterruptedException

next to my onLoop()

 

Is this necessary? I get errors if I don't do so.

 

And one last thing. For interacting with interfaces I'm doing this:

    if (interfaces.get(548).isVisible()) {
     interfaces.get(548).getChild(17).interact("Make-All");
     }

I know 548 is correct because that is the ID I found for the teleport tablet making interface when I used the interface debugger. I'm assuming getChild() is for the actual button on the interface? I got this code from an open-source flax spinning script and couldn't find the ID he used for his getChild() when using the interface debugger at the spinning wheel. The only numbers I saw were like 1 off of what he used.

Edited by Crazed
Link to comment
Share on other sites

You should either get an error/wrong location/no manifest

 

 

[iNFO][03/30 02:43:05 AM]: Welcome to OSBot 2.3.56!
[iNFO][03/30 02:43:06 AM]: Loaded 1 RS accounts!
[DEBUG][03/30 02:43:06 AM]: You last logged in as : Crazed
[iNFO][03/30 02:43:07 AM]: Loaded 0 local scripts and 0 custom random solvers!
[iNFO][03/30 02:43:07 AM]: You have 6 SDN scripts loaded.
[iNFO][03/30 02:43:07 AM]: Updated injection hooks for client revision : 75!
[iNFO][03/30 02:43:08 AM]: There are 132 scripts on the SDN.
[DEBUG][03/30 02:43:08 AM]: OSBot is now ready!
No errors it just isn't recognizing the script.
Edited by Crazed
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...