MrJooj   7 Share Posted August 17, 2020 (edited) Walks to GE and stops. Simple as that 😃  Just a simple script that i've been using for a while, and since there isn't a script that just walks to GE i'm releasing mine, and also the few lines of code.  Source code: Spoiler package scripts.walkToGe; import org.dreambot.api.methods.Calculations; 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 java.awt.*; @ScriptManifest(author = "MrJooj", name = "Walk to GE", description = "Walks straight to GE", version = 1.0, category = Category.MISC) public class GEWalker extends AbstractScript { private final Area GE = new Area(3162, 3487, 3167, 3485); @Override public int onLoop() { if (!GE.contains(getLocalPlayer())) { if (getWalking().shouldWalk()){ getWalking().walk(GE.getRandomTile()); } } else { stop(); } return Calculations.random(20, 70); } @Override public void onPaint(Graphics g) { g.drawString("Walking to Grand Exchange", 10, 35); } }  Edited August 24, 2020 by MrJooj lily, josemiguelcal and LordJashin32 2 1 Link to comment Share on other sites More sharing options...
Xtra   31 Share Posted August 17, 2020 (edited) This would be helpful for those wanting to learn and/or those wanting a simple script to go to the GE I would recommend adding your own passable obstacles so this can truly be started from almost anywhere! Example: Walking.getAStarPathFinder().addObstacle(new PassableObstacle("Large door", "Open", null, null, null));  Edited August 17, 2020 by Xtra MrJooj 1 Link to comment Share on other sites More sharing options...
Eclipseop   194 Share Posted August 17, 2020 thank :L) MrJooj 1 Link to comment Share on other sites More sharing options...
LordJashin32 Â Â 54 Share Posted August 31, 2020 been using this a lot. Link to comment Share on other sites More sharing options...
Aka_Curtis   1 Share Posted January 2, 2021 Doesn't show up in my scripts? Link to comment Share on other sites More sharing options...
mrPeanut   1 Share Posted December 13, 2021 fun little scipt that let's me go to GE while i go get a coffee Link to comment Share on other sites More sharing options...
makeitez   4 Share Posted November 1, 2022 Any fix? Link to comment Share on other sites More sharing options...
romanaka3 Â Â 13 Share Posted November 1, 2022 I hope it will fix most used by me Link to comment Share on other sites More sharing options...
Sand Bee37   0 Share Posted November 3, 2022 When this script will get fixed? cant wait  Link to comment Share on other sites More sharing options...
coldzero24   0 Share Posted December 10, 2022 Here's a script that works for me. It's my first script but it should work. Make a new class called main in your project and paste this: import org.dreambot.api.methods.container.impl.Inventory; import org.dreambot.api.methods.container.impl.bank.BankLocation; import org.dreambot.api.methods.grandexchange.GrandExchange; import org.dreambot.api.methods.interactive.Players; import org.dreambot.api.methods.map.Area; import org.dreambot.api.methods.skills.Skill; import org.dreambot.api.methods.skills.SkillTracker; import org.dreambot.api.methods.walking.impl.Walking; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.impl.TaskScript; import org.dreambot.api.methods.grandexchange.GrandExchange; import org.dreambot.api.wrappers.interactive.Locatable; import java.awt.*; // Every script needs a ScriptManifest so it can be seen in the script manager @ScriptManifest(category = Category.QUEST, name = "Walk to GE", description = "Walks to the grand exchange", author = "coldzero24", version = 0.1) public class Main extends TaskScript { @Override public void onStart() { addNodes(new GrandExchangeTask()); } @Override public void onPaint(Graphics g) { } } Next, make a new class called GrandExchangeTask and copy this code into it: import org.dreambot.api.methods.interactive.Players; import org.dreambot.api.methods.map.Area; import org.dreambot.api.methods.walking.impl.Walking; import org.dreambot.api.script.TaskNode; import java.awt.*; public class GrandExchangeTask extends TaskNode { private boolean shouldWalk = true; private final Area GE = new Area(3162, 3487, 3167, 3485); @Override public boolean accept() { while(shouldWalk){ if(!GE.contains(Players.getLocal())){ if(Walking.shouldWalk()){ Walking.walk(GE.getRandomTile()); } }else{ shouldWalk = false; } } return true; } @Override public int execute() { return 0; } } Most of the imports are probably not necessary but I was testing around other things and too lazy to delete so yeah. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now