
mrbankseed
Members-
Posts
10 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
mrbankseed's Achievements
-
This is as far as I got with ChatGPT: package Firemaking; import org.dreambot.api.methods.container.impl.Inventory; import org.dreambot.api.methods.container.impl.bank.Bank; import org.dreambot.api.methods.skills.Skill; 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.utilities.Timer; import java.awt.*; @ScriptManifest( name = "Fire making", description = "Burns logs at the Grand Exchange", author = "This could be you", version = 1.3, category = Category.FIREMAKING, image = "" ) public class Main extends AbstractScript { private final Timer timer = new Timer(); private static final String[] LOGS = {"Magic logs", "Yew logs", "Maple logs", "Willow logs", "Oak logs", "Logs"}; @Override public void onPaint(Graphics g) { g.setColor(Color.CYAN); g.setFont(new Font("Arial", Font.BOLD, 16)); g.drawString("Time Elapsed: " + timer.formatTime(), 20, 20); } @Override public int onLoop() { try { // Check if any logs are in the inventory and withdraw if needed boolean foundLogs = false; for (String log : LOGS) { if (Inventory.contains(log)) { foundLogs = true; break; } } if (!foundLogs) { Task.withdrawLogs(); } // Move to the fire-making area if not already there if (foundLogs && !Task.isInFireMakingArea()) { Walking.walk(Areas.FIRE_SPACE.getRandomTile()); sleep(1000, 2000); sleepUntil(() -> Walking.getDestinationDistance() < 3, 5000); } // Burn logs if in the fire-making area and not already on a fire if (foundLogs && Task.isInFireMakingArea()) { if (Task.isFireUnderPlayer()) { // Move to a new random tile within the fire-making area Walking.walk(Areas.FIRE_SPACE.getRandomTile()); } else { // Burn the first available log in the inventory for (String log : LOGS) { if (Inventory.contains(log)) { int firemakingLevel = getSkills().getRealLevel(Skill.FIREMAKING); if ((log.equals("Magic logs") && firemakingLevel < 75) || (log.equals("Yew logs") && firemakingLevel < 60) || (log.equals("Maple logs") && firemakingLevel < 45) || (log.equals("Willow logs") && firemakingLevel < 30) || (log.equals("Oak logs") && firemakingLevel < 15) || (log.equals("Logs") && firemakingLevel < 1)) { continue; // Skip burning the log if firemaking level is too low } if (Bank.isOpen()) { Bank.close(); } Task.burnLogs(log); break; } } } } } catch (Exception e) { // Handle any exceptions that occur during script execution log("Error occurred: " + e.getMessage()); e.printStackTrace(); } // Return the number of milliseconds to wait until the next loop iteration return 745; } }
-
BowStringer - Turns flax into bowstrings at Lumbridge Castle.
mrbankseed replied to xyz111's topic in Free
Thanks, homie. I appreciate you. Is there any chance you can develop a fire making in the grand exchange script? -
To a generous coder in this community, May you please develop a free script for progressive firemaking in the grand exchange? I think this would be very helpful for noobies like me. I would be happy to help you create accounts for testing. Thank you!
-
BowStringer - Turns flax into bowstrings at Lumbridge Castle.
mrbankseed replied to xyz111's topic in Free
I dont see this script on the SDN. Can someone link me please? Thank you. -
NEED HELP DEVELOPING & FINISHING THIS KARMAJA FISHING SCRIPT
mrbankseed replied to mrbankseed's topic in Script Requests
Here's another one for you guys to roast me about: import org.dreambot.api.methods.Calculations; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.Category; import org.dreambot.api.wrappers.interactive.GameObject; @ScriptManifest(author = "You", name = "Varrock Agility Course", version = 1.0, description = "Completes the Varrock Agility Course", category = Category.AGILITY) public class VarrockAgilityCourse extends AbstractScript { private static final int OBSTACLE_PIPE_ID = 14929; private static final int ZIP_LINE_ID = 14832; private static final int WALL_CLIMB_ID = 14898; private static final int BALANCING_LEDGE_ID = 14903; private static final int STEPPING_STONES_ID = 14897; private static final int ROPE_SWING_ID = 14897; private static final int LOG_BALANCE_ID = 14922; private static final int RUN_ENERGY_THRESHOLD = 20; private static final int REST_TIME_MS = 2000; private static final int COURSE_START_X = 3204; private static final int COURSE_START_Y = 3416; private static final int COURSE_START_Z = 0; private static final int[] OBSTACLE_ORDER = { WALL_CLIMB_ID, ROPE_SWING_ID, STEPPING_STONES_ID, LOG_BALANCE_ID, OBSTACLE_PIPE_ID, BALANCING_LEDGE_ID, ZIP_LINE_ID }; private int getNextObstacle() { for (int id : OBSTACLE_ORDER) { GameObject obstacle = getGameObjects().closest(id); if (obstacle != null && obstacle.isOnScreen()) { return id; } } return -1; } @Override public void onStart() { log("Starting Varrock Agility Course script..."); } @Override public int onLoop() { int energy = getWalking().getRunEnergy(); if (energy < RUN_ENERGY_THRESHOLD) { log("Energy is low, resting for " + REST_TIME_MS / 1000 + " seconds..."); sleep(REST_TIME_MS); } else { int nextObstacle = getNextObstacle(); if (nextObstacle == -1) { log("Unable to find any obstacles. Ending script."); stop(); return -1; } else { log("Next obstacle: " + nextObstacle); getGameObjects().closest(nextObstacle).interact(); } } return Calculations.random(500, 1000); } @Override public void onExit() { log("Stopping Varrock Agility Course script..."); } @Override public void onPaint(Graphics graphics) { // Optional: Add paint } } -
import org.dreambot.api.methods.Calculations; import org.dreambot.api.methods.input.Mouse; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.Category; import org.dreambot.api.utilities.Timer; import org.dreambot.api.wrappers.interactive.GameObject; @ScriptManifest(author = "You", name = "Improved Tea Thiever", version = 1.0, description = "Advanced Tea Thieving Script", category = Category.THIEVING) public class Main extends AbstractScript { private static final int MIN_WAIT = 300; private static final int MAX_WAIT = 800; private static final int MOUSE_MOVE_RANGE = 20; private static final int LOOT_THRESHOLD = 100; private Timer antiBanTimer = new Timer(); private boolean antiBanActive = false; public void onStart() { log("Welcome to Improved Tea Thiever by Apaec."); log("If you experience any issues while running this script please report them to me on the forums."); log("Enjoy the script, gain some thieving levels!."); } private enum State { STEAL, DROP, WAIT }; private State getState() { GameObject stall = getGameObjects().getClosest("Tea stall"); if (!getInventory().isEmpty()) return State.DROP; if (stall != null) return State.STEAL; return State.WAIT; } public void onExit() { } @Override public int onLoop() { switch (getState()) { case STEAL: GameObject stall = getGameObjects().getClosest("Tea stall"); if (stall != null) { if (antiBanActive) { if (antiBanTimer.elapsed() >= MIN_WAIT) { Mouse.moveRandomly(MOUSE_MOVE_RANGE); antiBanTimer.reset(); } } else { stall.interact("Steal-from"); antiBanTimer.reset(); antiBanActive = true; } } break; case DROP: getInventory().getItems(item -> item.getName().equals("Cup of tea") && item.getValue() <= LOOT_THRESHOLD).forEach(item -> item.interact("Drop")); break; case WAIT: sleep(Calculations.random(MIN_WAIT, MAX_WAIT)); antiBanActive = false; break; } return Calculations.random(500, 600); } }
-
import org.dreambot.api.methods.Calculations; import org.dreambot.api.methods.container.bank.Bank; import org.dreambot.api.methods.container.inventory.Inventory; import org.dreambot.api.methods.interactive.GameObjects; import org.dreambot.api.methods.map.Area; import org.dreambot.api.methods.map.Map; import org.dreambot.api.methods.skills.Skill; import org.dreambot.api.methods.skills.SkillTracker; import org.dreambot.api.methods.tabs.Tab; import org.dreambot.api.methods.walking.pathfinding.impl.web.WebPathFinder; import org.dreambot.api.methods.walking.web.node.impl.bank.WebBank; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.wrappers.interactive.GameObject; @ScriptManifest(author = "YourName", name = "FishingScript", version = 1.0) public class FishingScript extends AbstractScript { // Areas and objects needed for the script private Area karamjaFishingArea = new Area(2852, 3142, 2871, 3161); private Area portSarimBankArea = new Area(3044, 3234, 3048, 3242); private GameObject karamjaFishingSpot; private GameObject portSarimDepositBox; // Fish to be caught private String[] fishToCatch = {"Lobster", "Tuna", "Swordfish"}; @Override public int onLoop() { // Check if the player has the required fishing level if (getSkills().getRealLevel(Skill.FISHING) < 40) { log("You need a fishing level of 40 to fish in Karamja."); stop(); } // Check if the player has a lobster cage or harpoon if (!Inventory.contains("Lobster cage") && !Inventory.contains("Harpoon")) { log("You need a lobster cage or harpoon to fish in Karamja."); stop(); } // Check if the player is at the fishing spot if (!karamjaFishingArea.contains(getLocalPlayer())) { getWalking().walk(new WebBank().getNearestBankLocation().getWebPath()); sleepUntil(() -> Bank.isOpen(), Calculations.random(2000, 3000)); Bank.open(Tab.INVENTORY); Bank.withdraw("Lobster cage", 1); Bank.withdraw("Harpoon", 1); Bank.close(); getWalking().walk(karamjaFishingArea.getRandomTile()); } // Check if the fishing spot is available if (karamjaFishingSpot == null || !karamjaFishingSpot.exists()) { karamjaFishingSpot = GameObjects.closest("Fishing spot"); } // Fish at the fishing spot if it is available if (karamjaFishingSpot != null && karamjaFishingSpot.exists())