December 14, 201510 yr Hey guys i'm making a flax spinning bot as my first script. I am having a problem creating an entity == to the spinning wheel. import org.osbot.rs07.api.model.Entity; . . . . . Entity wheel = closest("Spinning wheel"); I keep getting "closest(STRING) is undefined for the type class <FlaxPicker>" error. Any ideas? Edited December 14, 201510 yr by ni562
December 14, 201510 yr final RS2Object wheel = getObjects().closest("Spinning wheel"); The final modifier is optional. Edited December 14, 201510 yr by KEVzilla
December 14, 201510 yr Author final RS2Object wheel = getObjects().closest("Spinning wheel"); The final modifier is optional. thanks mate, fixed it with this RS2Object wheel = objects.closest(SPIN_WHEEL);
December 14, 201510 yr thanks mate, fixed it with this RS2Object wheel = objects.closest(SPIN_WHEEL); Entity wheel = entities.closest("Spin Wheel"); would work too but RS2Object is better anyway.
Create an account or sign in to comment