fer 0 Share Posted October 15, 2019 Hello good afternoon. I started trying to learn java so i am trying to make a script for osrs. I did it but it looks like it is just in one place cutting the trees it doesn't move to other areas to cut trees faster code private Area TreeArea = new Area(3126, 3508, 3117, 3499, 0); if (mygui.setScript().equals("Tree")) { if (mygui.getTreeType().equals("Tree")) { if (getInventory().isFull()) { RandomBankAreaTree(); randomSleepMenor(); } else { if (getLocalPlayer().isAnimating()) { } else { GameObject TreeCorte = getGameObjects().closest(gameObject -> gameObject != null && gameObject.getName().equals(mygui.getTreeType())); if (!getInventory().isFull()) { if (!TreeArea.contains(getLocalPlayer())) { randomSleep(); if (!getLocalPlayer().isAnimating() && !getWalking().walk(TreeArea.getRandomTile())) { randomSleep(); } } else { if (TreeArea.contains(getLocalPlayer()) && TreeArea.contains(TreeCorte)) { sleep(1000); if (getLocalPlayer().isAnimating()) { //no } else { if (getLocalPlayer().isMoving()) { } else { TreeCorte.interact(mygui.getTreeClick()); } } } } } } } } } Link to comment Share on other sites More sharing options...
fer 0 Author Share Posted October 15, 2019 he is in a place cutting the trees and not cutting all the trees in the area Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.