nerdzalot Posted March 29, 2014 Share Posted March 29, 2014 So I am currently in the middle of creating my own script and don't get me wrong it is running bloody great considering its my first time. the only problem i have is that it is an experiment killing script, and where the grave is that you use to down into the cave, the grave also has a duplicate a few squares away with the same id, only it doesnt take you down..what ive tried:: I made an area around the grave i want to go down but as soon as its in that area it tries to use the other regardless of the fact that the one i want is closer the only way i can get it to do it is to walk past the grave and then walk back the other way and it will class it as the closest and use the right one.. now this wouldnt be so bad but to me that seems insanely detectable anyideas would be fantastic, im assuming there is something that will let me use the object id at a certain position im just uncertain of how to thanks Link to comment Share on other sites More sharing options...
alowaniak Posted March 31, 2014 Share Posted March 31, 2014 (edited) http://osbot.org/api/org/osbot/script/MethodProvider.html#closestObject(org.osbot.script.rs2.utility.Area, int...) ? Edited March 31, 2014 by alowaniak Link to comment Share on other sites More sharing options...
Fay Posted March 31, 2014 Share Posted March 31, 2014 http://osbot.org/api/org/osbot/script/MethodProvider.html#closestObject(org.osbot.script.rs2.utility.Area, int...) ? To expand on this, you define an Area and then search that area for the object. To my point, I don't understand why you would need this functionality because you would never need to bank for anything at experiments in the first place lol because food lasts forever. Link to comment Share on other sites More sharing options...
Joseph Posted March 31, 2014 Share Posted March 31, 2014 client.getCurrentRegion.getObjectAtLocal(int id, int localX, int localY, int height): 1 Link to comment Share on other sites More sharing options...