Phoenix Posted August 13, 2019 Share Posted August 13, 2019 (edited) Im trying to do a check if another player is inside an area and return boolean. More specifically:  if ((getInventory().getAmount("item") > int) && (player is in Area)) Do this I simply dont understand how to check if an area contains any of a specific list of players other than myself. Yes i've checked the api. Edited August 13, 2019 by Phoenix Quote Link to comment Share on other sites More sharing options...
zwaffel Posted August 13, 2019 Share Posted August 13, 2019 (edited) Make an area and than check if the area contains the player. Area bankArea = new Area(3180, 3447, 3190, 3433); if (bankArea.contains(otherPlayer)) { // other player is in the area } https://osbot.org/api/org/osbot/rs07/api/map/Area.html  Edited August 13, 2019 by zwaffel Quote Link to comment Share on other sites More sharing options...
FuryShark Posted August 13, 2019 Share Posted August 13, 2019 1 hour ago, Phoenix said: Im trying to do a check if another player is inside an area and return boolean. More specifically:  if ((getInventory().getAmount("item") > int) && (player is in Area)) Do this I simply dont understand how to check if an area contains any of a specific list of players other than myself. Yes i've checked the api. getPlayers().closest(area, player name); 1 1 Quote Link to comment Share on other sites More sharing options...
GaetanoH Posted August 13, 2019 Share Posted August 13, 2019 You didn't check good enough Quote Link to comment Share on other sites More sharing options...