Jump to content

How do I run my own script?


Recommended Posts

Posted (edited)

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
Posted (edited)

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

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...