mattpew Posted October 4, 2018 Share Posted October 4, 2018 Is it possible to move the camera while my script is running to bank? if (getBank().open()){ getCamera().movePitch(22); getCamera().moveYaw(303); } currently it runs to the bank and then turns the camera. How can i make it run to the bank and while running turn? 2nd question, i want to log my profits in a file onExit() how can i log to a .txt file and make the name of the file dynamic using the accounts name? thx in advance for any help. Quote Link to comment Share on other sites More sharing options...
Chris Posted October 4, 2018 Share Posted October 4, 2018 1) Make your own interaction 2) https://www.javatpoint.com/java-filewriter-class 1 Quote Link to comment Share on other sites More sharing options...
Explv Posted October 4, 2018 Share Posted October 4, 2018 (edited) 13 minutes ago, mattpew said: Is it possible to move the camera while my script is running to bank? if (getBank().open()){ getCamera().movePitch(22); getCamera().moveYaw(303); } currently it runs to the bank and then turns the camera. How can i make it run to the bank and while running turn? 2nd question, i want to log my profits in a file onExit() how can i log to a .txt file and make the name of the file dynamic using the accounts name? thx in advance for any help. 1. Maybe just stop walking when the bank booth is nearby and then call getBank().open(); It will walk there & probably move the camera at the same time: if (getObjects().closest("Bank booth or whatever its called") == null) { WebWalkEvent webWalkEvent = new WebWalkEvent(Banks.VARROCK_WEST); webWalkEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return getObjects().closest("Bank booth or whatever its called") != null; } }); execute(webWalkEvent); } else { getBank().open(); } 2. Create a file in the data directory getDirectoryData() with the Player's name myPlayer().getName(), and then write to it. 100s of tutorials online on how to write files with Java. Edited October 4, 2018 by Explv 1 Quote Link to comment Share on other sites More sharing options...