Jump to content

Error stating my script


JPHamlett

Recommended Posts

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

  • Like 2
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...