subpars Posted December 15, 2022 Share Posted December 15, 2022 Hi, I was wondering if somebody could potentially make a script skeleton for me - so I can add to and finish? There's some tasks I'm having a hard time with and wondered if someone could help? Walk to nearest Bank Opens Bank Check for array of items Withdraws Items Walk to specific area From there I can hopefully learn the functions of the API and start building my ideas - I'd really appreciate any support. Quote Link to comment Share on other sites More sharing options...
Gunman Posted December 15, 2022 Share Posted December 15, 2022 21 minutes ago, subpars said: Walk to nearest Bank Here ya go Spoiler private Area[] banks; @Override public void onStart() { setBanks(); } private void setBanks() { final List<Area> banksList = new ArrayList<>(); for (final Field bank : Banks.class.getDeclaredFields()) { try { banksList.add((Area) bank.get(Banks.class)); } catch (IllegalAccessException e) { e.printStackTrace(); } } banks = banksList.toArray(new Area[0]); } And can be used like this to walk to nearest bank getWalking().webWalk(banks); 1 1 Quote Link to comment Share on other sites More sharing options...