ProBotterIamN 11 Share Posted November 7, 2017 Any help with walking and opening + buying items? package test; import org.dreambot.api.methods.Calculations; import org.dreambot.api.methods.map.Tile; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.Category; @ScriptManifest(author = "ProBotterIamN", name = "Random Name" , version = 1.0, description = "soon to be added", category = Category.RANDOMCATEGORY) public class main extends AbstractScript { public void onStart() { log("Starting Script!"); log("More features will be added soon!"); log("Leave feedback!"); } private enum State { BANK, WALK, BUY, WAIT }; private State getState() { getNpcs().closest("Banker"); if (!getInventory().isFull()) return State.BANK; getNpcs().closest("Gem trader"); if (!getInventory().isEmpty()) return State.BUY; return State.WAIT; } public void onExit() { log("Thanks for running Gem Buyer!"); } Tile gemsellertile = new Tile(3288, 3212); // Gem Seller Tile Tile banktile = new Tile(3271, 3167); //Bank Tile @Override public int onLoop() { switch (getState()) { case BUY: if(gemsellertile.distance(getLocalPlayer()) <= 4) { if(!getInventory().isEmpty()) { log("Buying dat Bling!"); gem.interact("Gem trader"); }else{ log("Walking to Gem Trader!"); getWalking().walk(gemsellertile.getRandomizedTile()); sleep(Calculations.random(1827,2482)); } } case BANK: banker.interact("Bank Banker"); break; case WAIT: sleep(300); break; default: break; } return Calculations.random(500, 600); } } Link to comment Share on other sites More sharing options...
Ahmet82 62 Share Posted November 7, 2017 pm a scripter on discord Link to comment Share on other sites More sharing options...
ProBotterIamN 11 Author Share Posted November 7, 2017 pm a scripter on discord will do Link to comment Share on other sites More sharing options...
ozeki6 32 Share Posted November 7, 2017 There are so many things wrong . You need to watch a tutorial first , dude . https://dreambot.org/forums/index.php/topic/2555-video-tutorial-series-dreambot-scripting-request-scripting-tutorials-here/ Link to comment Share on other sites More sharing options...
ProBotterIamN 11 Author Share Posted November 8, 2017 There are so many things wrong . You need to watch a tutorial first , dude . https://dreambot.org/forums/index.php/topic/2555-video-tutorial-series-dreambot-scripting-request-scripting-tutorials-here/ boii there are no tutorials about what i want to achieve Link to comment Share on other sites More sharing options...
ozeki6 32 Share Posted November 8, 2017 boii there are no tutorials about what i want to achieve It's the same logic except you dont chop trees , you buy items . Link to comment Share on other sites More sharing options...
Koschei 147 Share Posted November 9, 2017 Just read the API. Watch DreamLickers Tutorial about navigating through it.https://dreambot.org/javadocs/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.