Phoenix Posted August 13, 2019 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
zwaffel Posted August 13, 2019 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
FuryShark Posted August 13, 2019 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