TheScripter 0 Share Posted July 19, 2019 So i almost got my pump Furnace bot working just need some help tweaking the timer or walking method. Not sure which is causing the problem. i have the bot clicking the furnace and then clicking on emotes, however it doesn't doesn't reset after the timer has ended( moving away towards the area ). heres what I currently have, import org.dreambot.api.methods.emotes.Emote; import org.dreambot.api.methods.map.Area; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.utilities.Timer; @ScriptManifest(category = Category.COMBAT, name = "UltimateXp", author = "TheScripter", version = 0.01) public class Main extends AbstractScript { Timer timer = new Timer(10000); private long hour = 10000; Area resetArea = new Area(1951, 4962, 1953, 4959, 0); @Override public void onStart(String... strings) { timer.formatTime(10000); timer.setRunTime(hour); } @Override public int onLoop() { { if (timer.remaining() == 0) { getWalking().walk(resetArea.getCenter()); sleepUntil(() -> getLocalPlayer().isMoving(), 1000); timer.reset(); } else if (!getLocalPlayer().isAnimating() && timer.remaining() != 0) { getGameObjects().closest("Pump").interact("Operate"); } else if (getLocalPlayer().isAnimating() && timer.remaining() != 0) { getEmotes().doEmote(Emote.BECKON); sleepUntil(() -> timer.remaining() == 0, 2000); } } return 1000; } } Link to comment Share on other sites More sharing options...
TheScripter 0 Author Share Posted July 20, 2019 nvm i got it working! thank u to those who have all replied and helped. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.