Jump to content

Local Script not starting


Beefsteak

Recommended Posts

Hey folks, working on my first OSBot script by translating one of my poopbot scripts... Finally ironed out all the errors, but now when I run the script in OSBot, nothing happens, doesn't start the script. I read on the forums that it might have to do with where I declare my variables, so I moved them all up to the top, but still not working.

Please check out my pastebin here: https://pastebin.com/PmmApEB7   and let me know what I can do to fix it! Thanks

Link to comment
Share on other sites

5 hours ago, Beefsteak said:

Hey folks, working on my first OSBot script by translating one of my poopbot scripts... Finally ironed out all the errors, but now when I run the script in OSBot, nothing happens, doesn't start the script. I read on the forums that it might have to do with where I declare my variables, so I moved them all up to the top, but still not working.

Please check out my pastebin here: https://pastebin.com/PmmApEB7   and let me know what I can do to fix it! Thanks

Don't do this globally, most likely the cause for it not starting

GroundItem loot = groundItems.closest("Bones");
	Area near = myPlayer().getArea(3);
	Object pool = objects.closest("Pool of Refreshment");
	Object ditch = objects.closest("Wilderness Ditch");
Link to comment
Share on other sites

I've tried a few diff things with those declarations but still wont start. How/where would you write it? Thanks for the response.

1 hour ago, Gunman said:

Don't do this globally, most likely the cause for it not starting

GroundItem loot = groundItems.closest("Bones");
	Area near = myPlayer().getArea(3);
	Object pool = objects.closest("Pool of Refreshment");
	Object ditch = objects.closest("Wilderness Ditch");

 

Link to comment
Share on other sites

8 hours ago, Beefsteak said:

Tried removing all the variables and still not starting. Any other ideas? Thanks

Start commenting out blocks of code until it starts, then once it starts leave the last block of code commented out and start uncommenting the other blocks of code step by step and see if there's any other code causing issues

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