March 21, 20178 yr So i've created many scripts before and even some released as well, i stopped making scripts for a bit now i'm back to do some more. Not really sure what's going on but even when I retry to debug a log info on onstart method no response is taken at all. Simple af fix. Edited March 21, 20178 yr by Booleans YAY
March 21, 20178 yr 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.
March 21, 20178 yr 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
March 21, 20178 yr 15 minutes ago, Booleans YAY said: private final RS2Object bankBooth = objects.closest("booth"); private final RS2Object fountainObject = objects.closest("Fountain"); Those should be in the onloop().
March 21, 20178 yr Author I figured it out myself, I thought maybe moving them would give a better appealing format to reading the script. Anyways thanks for inputs.
Create an account or sign in to comment