August 13, 20196 yr 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, 20196 yr by Phoenix
August 13, 20196 yr 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, 20196 yr by zwaffel
August 13, 20196 yr 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);
Create an account or sign in to comment