JPHamlett Posted August 3, 2018 Share Posted August 3, 2018 I am creating a tutorial island bot The source code is here: https://github.com/JPHamlett1993/OSBot/tree/master/src When I start the script I get the error message [INFO][08/03 05:13:51 PM]: Started bot #1 Failed to start script [Tutorial Island] Quote Link to comment Share on other sites More sharing options...
Dab in a Lab Posted August 3, 2018 Share Posted August 3, 2018 You need an onStart and onExit. You only have onLoop at the moment Quote Link to comment Share on other sites More sharing options...
Explv Posted August 3, 2018 Share Posted August 3, 2018 27 minutes ago, Dab in a Lab said: You need an onStart and onExit. You only have onLoop at the moment no, you don't. 39 minutes ago, JPHamlett said: I am creating a tutorial island bot The source code is here: https://github.com/JPHamlett1993/OSBot/tree/master/src When I start the script I get the error message [INFO][08/03 05:13:51 PM]: Started bot #1 Failed to start script [Tutorial Island] Probably because: a) RunescapeGuideState extends TutorialIsland, which extends Script. So you have two classes extending Script. Only one class should extend Script (your main class) b) You don't exchange context with the RunescapeGuideState class. The RunescapeGuideState class should extend MethodProvider, and then after creating an instance, you should call exchangeContext(bot) I have a complete open source tutorial island script here https://github.com/Explv/Tutorial-Island Not sure why you would bother starting from scratch 2 Quote Link to comment Share on other sites More sharing options...