Jump to content
×
×
  • Create New...

Cant get onStart() to run


klumel8
 Share

Recommended Posts

Hey guys,

So I got my setup running but the weird part is that I cant get onStart() to work. onStop() and poll() work fine. The only hint I have as to why this is is an error stating that org.powbot.api.script.AbstractScript is not found while it clearly is in the client-sdk folder... I added screenshot of the error + proof of AbstractScript being there  + my code. Any Idea whats going wrong?

EDIT: the onStart() function does get called when the account is logged out and the script has to log in first, if its already playing onStart() is not called.

image.thumb.png.92128ad93ca6ba4590236849f775aaab.png

Edited by klumel8
made new discovery
Link to post
Share on other sites

  • Moderators

sometimes onstart activates before it attaches to the intelij log or something like that.

if you add Condition.sleep(1000); as the first line in onstart, you'll probably see the print out.

Also, join the discord for almost instant answers 🙂

Link to post
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.

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.

 Share