Jump to content

Script wont start


Recommended Posts

Posted
private final RS2Object bankBooth = objects.closest("booth");
private final RS2Object fountainObject = objects.closest("Fountain");

Thats where your problem is. You need to set those objects in your code which executes in onLoop. Say the bank method you have, youd need to put the objects.closest("booth") there.

Posted

I'm on my phone so the formatting is a bit weird.

But it looks like at the bottom of your script you have two global variables bankBooth and fountainObject that store the results of calls to objects.closest

If that is the case, that is what is breaking your script. The objects variable will not be initialised before onStart is called, so your script will break.

You should move those variables to onStart or onLoop

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...