ugpjosh Posted September 28, 2014 Share Posted September 28, 2014 I have this code: "private state getState() { if (DANGER_AREA.contains(myPlayer())) return state.STEAL_POS; Entity stall = objects.closest("Tea Stall"); if (!inventory.isEmpty()) return state.DROP; if (stall != null) return state.STEAL; return state.WAIT; }" But in the second line where it says 'contains', what would I change that to to make it recognize if my player is in that area? Link to comment Share on other sites More sharing options...
pitoluwa Posted September 29, 2014 Share Posted September 29, 2014 look at the API http://osbot.org/api/org/osbot/rs07/utility/Area.html#contains(org.osbot.rs07.api.model.Entity) Link to comment Share on other sites More sharing options...
Alek Posted September 29, 2014 Share Posted September 29, 2014 He had the area defined as a position. I showed him last night the difference between the two. 1 Link to comment Share on other sites More sharing options...