Booleans YAY Posted March 21, 2017 Share Posted March 21, 2017 (edited) 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, 2017 by Booleans YAY Quote Link to comment Share on other sites More sharing options...
Vilius Posted March 21, 2017 Share Posted March 21, 2017 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. Quote Link to comment Share on other sites More sharing options...
Explv Posted March 21, 2017 Share Posted March 21, 2017 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 Quote Link to comment Share on other sites More sharing options...
progamerz Posted March 21, 2017 Share Posted March 21, 2017 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(). Quote Link to comment Share on other sites More sharing options...
Booleans YAY Posted March 21, 2017 Author Share Posted March 21, 2017 I figured it out myself, I thought maybe moving them would give a better appealing format to reading the script. Anyways thanks for inputs. Quote Link to comment Share on other sites More sharing options...