Search the Community
Showing results for tags 'script'.
-
I'm using IntelliJ and using Oracle OpenJDK version 1.8.0_202 ( Java 8 ). I believe I've followed the official starting guides and set up my development environment correctly. Added the client as a library to my project (as shown in the attachment under external libraries). I have also added the artifact correctly. But my imports do not seem to resolve with the error (attached). How am I able to correct this, assuming I'm doing something wrong.
-
TakeMeGarry is an automated RuneScape bot (UNDER DEVELOPPEMENT) designed to collect specific items and deposit them into the Lumbridge bank. This bot offers an efficient money-making method while navigating areas like cow pastures and handling multiple items based on the user's selections. It only support 3 items at the moment (Bones, cow hide and Raw beef) with specific action you want to perform such as Banking for each of the 3 items, Bury for the bone to farm Prayers XP and *Cook for the Raw beef* (CURRENTLY UNDER DEVELOPEMENT) The UI let you know for how long the script is currently running, how many items you've taken during the script execution, and how many item you will take for 1h. <---- Need a quick fix to adjust and stay on the chatbox A nice and little drop down menu let you choose which item you want to pick up, and if the case, which action you want to perform, suck as bury bones and Cook raw beef (for now). More location will be added inn the future. So basicly, I'm working on my core and have splited every logic to made it easier to work with Everything work but my logic stop working when trying to cook the raw beef. Is anyone could help, could be nice
-
Looking for a private account builder script.
flava sava30 posted a topic in Private Scripting Shops
Need a private script that can build an account to certain parameters. Dm please. haven't had good luck with public builders, looking for a well made private account building script. -
Im currently having to use EpicBot to run a g.e looting script (high risk worlds) im making about 1.1m/1.4m an hour, please release a paid for looting script.. i love dreambot and feel like a traitor for using another client.
-
Hello, I've been making a script for the past few months and now that I'm more or less done with most features I'm trying to publish it as a public script. When I attempt to publish the script I get met with a site that gives the text "Forbidden". I've previously requested and received a repository with Git URL & password. I found it a bit confusing submitting @ https://sdn.dreambot.org/scripters/scripts/new. Questions: - What's meant by thread URL? - What's meant by script parameters? - For Script Repo I've written "TheStormer" & for the Script Module I've written "AIO" (Name of my project), this project in its turn is underneath Working Tree in my repository. Thanks for the help. Edit: Solved, this post can be closed.
-
hi, I need help, I've been going crazy for hours, I used AI and everything that could help me but I can't figure it out.....I made this simple script to mine and I wanted to implement delivery to the mule with the socket .....the problem that does not change state after 5 minutes does not activate the DELIVER _TO_GE state I don't understand why! import org.dreambot.api.methods.container.impl.Inventory; import org.dreambot.api.methods.container.impl.bank.Bank; import org.dreambot.api.methods.interactive.GameObjects; 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.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.wrappers.interactive.GameObject; import org.dreambot.api.utilities.Sleep; import org.dreambot.api.methods.map.Tile; import java.io.*; import java.net.Socket; import java.io.OutputStream; import java.io.Serializable; import org.dreambot.api.methods.container.impl.bank.BankMode; import org.dreambot.api.methods.trade.Trade; import org.dreambot.api.wrappers.interactive.Player; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.List; import java.util.stream.Collectors; @ScriptManifest(author = "KhalDrogonerr", name = "Iron", version = 1.0, description = "Simple Iron Miner", category = Category.MINING) public class Worker extends AbstractScript { private static final String MULE_IP = "localhost"; private static final int MULE_PORT = 55555; private long lastDeliveryTime=0; public static class DeliveryData implements Serializable { private int ironOreCount; private String playerName; private String muleName; public DeliveryData(int ironOreCount, String playerName, String muleName) { this.ironOreCount = ironOreCount; this.playerName = playerName; this.muleName = muleName; } public int getIronOreCount() { return ironOreCount; } public String getPlayerName() { return playerName; } public String getMuleName() { return muleName; } } State state; Area bankArea = new Area(3009, 3355, 3018, 3354); Area ironOre = new Area(2977, 3231, 2967, 3243); Area GE = new Area(3155, 3499, 3174, 3480); public enum State { WALKING_TO_BANK, USE_BANK, BANKING, TAKE_PICKAXE, FINDING_ORE, MINING_ORE, DELIVER_TO_GE, DELIVER_TO_MULE } public void onStart() { log("Welcome to Simple Mining Script."); log("If you experience any issues while running this script please report them to me on the forums."); log("Enjoy the script!."); } @Override public int onLoop() { switch (getState()) { case WALKING_TO_BANK: if (bankArea.distance(Players.getLocal().getTile()) > 1) Walking.walk(bankArea.getCenter().getRandomized()); break; case USE_BANK: if (!Bank.isOpen() || !Players.getLocal().isMoving()) { GameObject bankBooth = GameObjects.closest("Bank booth"); bankBooth.interact("Bank"); Sleep.sleepUntil(Bank::isOpen, 1000); return 1000; } break; case BANKING: if (Bank.isOpen()) { if (Inventory.isFull()) { Sleep.sleep(2000, 5000); Bank.depositAllExcept(item -> item.getName().equals("Bronze pickaxe")); if (!Inventory.contains("Iron ore")) { Bank.close(); } } } break; case TAKE_PICKAXE: if (!Inventory.contains("Bronze pickaxe")) { if (Bank.open()) { if (Bank.contains("Bronze pickaxe")) { Bank.withdraw("Bronze pickaxe", 1); Sleep.sleepUntil(() -> Inventory.contains("Bronze pickaxe"), 6000); } else { log("Bronze pickaxe not found in bank!"); } Bank.close(); } } break; case FINDING_ORE: if (ironOre.distance(Players.getLocal().getTile()) > 1) Walking.walk(ironOre.getCenter().getRandomized()); break; case MINING_ORE: if (!Players.getLocal().isAnimating() && !Players.getLocal().isMoving()) { GameObject ironRocks = GameObjects.closest(t -> t.getName().equalsIgnoreCase("iron rocks") && ironOre.contains(t.getTile())); if (ironRocks != null && ironRocks.interact("Mine")) { Sleep.sleepUntil(() -> Players.getLocal().isAnimating(), 4000); } } break; case DELIVER_TO_GE: log("Sto entrando nello stato DELIVER_TO_GE"); // Verifica se il bot è già arrivato al Grand Exchange if (!GE.contains(Players.getLocal().getTile())) { // Se il bot non è al GE, muovilo verso il GE Walking.walk(GE.getCenter().getRandomized()); break; // Esce dallo switch e attende il prossimo ciclo onLoop } // Se il bot è arrivato al GE, controlla se il mulo è presente if (muleIsAtGE()) { // Se il mulo è presente, passa allo stato di consegna al mulo state = State.DELIVER_TO_MULE; } else { // Se il mulo non è presente, rimane nello stato di consegna al GE log("Mulo non trovato al GE, rimango in attesa..."); } break; case DELIVER_TO_MULE: long currentTime = System.currentTimeMillis(); if (lastDeliveryTime == 0 ||currentTime - lastDeliveryTime >= 300000) { try (Socket socket = new Socket(MULE_IP, MULE_PORT)) { OutputStream outputStream = socket.getOutputStream(); ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream); Bank.setWithdrawMode(BankMode.NOTE); Bank.withdrawAll("Iron ore"); int ironOreCount = getIronOreCount(); Player mule = getMuleName(); if (mule != null) { DeliveryData deliveryData = new DeliveryData(ironOreCount, Players.getLocal().getName(), mule.getName()); objectOutputStream.writeObject(deliveryData); objectOutputStream.close(); outputStream.close(); lastDeliveryTime = currentTime; mule.interact("Trade with"); Sleep.sleepUntil(() -> Trade.isOpen(), 5000); Trade.acceptTrade(); } else { state = State.DELIVER_TO_GE; } } catch (IOException e) { e.printStackTrace(); } } break; } return 500; } private State getState() { long currentTime = System.currentTimeMillis(); if (Inventory.isFull() && !bankArea.contains(Players.getLocal().getTile())) { return State.WALKING_TO_BANK; } else if (Inventory.isFull() && bankArea.contains(Players.getLocal().getTile()) && !Bank.isOpen()) { return State.USE_BANK; } else if (Bank.isOpen() && Inventory.isFull()) { return State.BANKING; } else if (!Inventory.contains("Bronze pickaxe")) { return State.TAKE_PICKAXE; } else if (!Inventory.isFull() && !ironOre.contains(Players.getLocal().getTile())) { return State.FINDING_ORE; } else if (!Inventory.isFull() && ironOre.contains(Players.getLocal().getTile())) { return State.MINING_ORE; } else if (lastDeliveryTime == 0 ||currentTime - lastDeliveryTime >= 300000) { if (muleIsAtGE()) { return State.DELIVER_TO_MULE; } else { return State.DELIVER_TO_GE; } } return state; } private int getIronOreCount() { return Inventory.count("Iron ore") + Bank.count("Iron ore"); } private boolean muleIsAtGE() { Tile botPosition = Players.getLocal().getTile(); return GE.contains(botPosition); } private String getLocalHostIPAddress() { try { InetAddress localHost = InetAddress.getLocalHost(); return localHost.getHostAddress(); } catch (UnknownHostException e) { log("Errore durante la ricerca dell'indirizzo IP locale: " + e.getMessage()); return null; } } private List<Player> getPlayers() { return Players.all().stream() .filter(p -> p != null && p.exists() && p.isOnScreen() && p.getTile().distance(Players.getLocal().getTile()) < 20) .collect(Collectors.toList()); } private Player getMuleName() { List<Player> players = getPlayers(); if (players != null) { for (Player player : players) { if (player.getName() != null && !player.getName().equals(Players.getLocal().getName())) { return player; } } } return null; } }
-
Hi, I wonder if someone is able to make a script that is able to trade noted Marrentil in Rimmington to get them unnoted and light the Incense Burner in the Player Owned House. And ofcourse keep doing this. This is very handy for making double xp by offering bones to the Gilded Altar! I am also willing to pay for it