Nazz Posted April 11, 2014 Posted April 11, 2014 I couldnt figure out how to get players in my area. Then to interact with them and click follow. If anyone could help, that'd be nice
Joseph Posted April 11, 2014 Posted April 11, 2014 (edited) public List<Player> getPlayer(Area area) { List<Player> list = new ArrayList<Player>(); for(Player p: client.getLocalPlayers()){ if (p!=null){ if (area.contains(p)){ if (!p.getName().contains(client.getMyPlayer().getName())) list.add(p); } } } return list; } im not going to spoon feed you everything. But this method return a list of players that are within the area, not counting you of course. Now what you could do is, whoever you want to follow someone. You could loop through the new method, until you find the person you want, maybe by name, or however you want. Then you could use the MethodProvider#selectEntityOption method. Edited April 11, 2014 by josedpay
Nazz Posted April 11, 2014 Author Posted April 11, 2014 public List<Player> getPlayer(Area area) { List<Player> list = new ArrayList<Player>(); for(Player p: client.getLocalPlayers()){ if (p!=null){ if (area.contains(p)){ if (!p.getName().contains(client.getMyPlayer().getName())) list.add(p); } } } return list; } im not going to spoon feed you everything. But this method return a list of players that are within the area, not counting you of course. Now what you could do is, whoever you want to follow someone. You could loop through the new method, until you find the person you want, maybe by name, or however you want. Then you could use the MethodProvider#selectEntityOption method. Thanks man! just what i was looking for 1