March 30, 201510 yr 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 March 30, 201510 yr by Crazed
March 30, 201510 yr 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? You should either get an error/wrong location/no manifest
March 30, 201510 yr Author 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 March 30, 201510 yr by Crazed
March 30, 201510 yr Interfaces are outdated! Try RS2Widget w = widgets.get(parentID, childID); if (w != null && w.isVisible()) { w.interact("blah"); } Apa also, try deleting all scripts in your local scripts folder and then re-export the jar then refresh your osbot scripts.
Create an account or sign in to comment