Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users

    Recommended Posts

    Posted (edited)

    This script was made with IntelliJ with AI. This script will run to the lumbridge swamp and grab a small fishing net and will fish shrimp and will drop them. No anti ban.

     

    Quote

    import org.dreambot.api.methods.dialogues.Dialogues;
    import org.dreambot.api.methods.interactive.GameObjects;
    import org.dreambot.api.script.AbstractScript;
    import org.dreambot.api.script.Category;
    import org.dreambot.api.script.ScriptManifest;
    import org.dreambot.api.methods.map.Area;
    import org.dreambot.api.Client;
    import org.dreambot.api.methods.map.Tile;
    import org.dreambot.api.methods.container.impl.Inventory;
    import org.dreambot.api.methods.interactive.NPCs;
    import org.dreambot.api.methods.walking.impl.Walking;

    import java.awt.*;
    import java.util.function.BooleanSupplier;
    import org.dreambot.api.methods.skills.Skill;
    import org.dreambot.api.utilities.Sleep;
    import org.dreambot.api.wrappers.interactive.NPC;

    import static org.dreambot.api.methods.interactive.Players.getLocal;

    @ScriptManifest(name = "Basic Fishing Bot",
            author = "YourName",
            version = 1.0,
            description = "A simple fishing bot for DreamBot",
            category = Category.FISHING)
    public class FishingBot extends AbstractScript {

        // Define the area where the fishing spot is located
        private final Area FISHING_AREA = new Area(3235, 3161, 3300, 3142); // Example coordinates, adjust as needed
        private final String FISHING_SPOT_NAME = "Fishing spot"; // Name of the fishing spot NPC

        @Override
        public void onStart() {
            log("Fishing bot started!");
        }


        @Override
        public int onLoop() {
            // If the player is not in the fishing area, walk to the fishing area's specific tile
            if (!FISHING_AREA.contains(getLocal().getTile())) {
                log("Walking to specific tile in fishing area...");
                Tile specificFishingTile = new Tile(3244, 3154); // Specify the desired tile to walk to
                Walking.walk(specificFishingTile);
                Sleep.sleepUntil(() -> specificFishingTile.equals(getLocal().getTile()), 1000);
                return 1000;
            }

            // If the inventory is full, drop all fish
            if (Inventory.isFull()) {
                log("Inventory full, dropping fish...");
                Inventory.dropAllExcept(item -> item.getName().contains("Small fishing net"));
                sleep(1000);
                return 1000;
            }

            // If in fishing area and inventory does not contain small fishing net, interact with object ID 674 to take it
            if (FISHING_AREA.contains(getLocal().getTile()) && !Inventory.contains("Small fishing net")) {
                log("Missing small fishing net, interacting with object 674 to take it...");
                if (GameObjects.closest(674).interact("Take")) { // Assuming "Take" is the correct action
                    Sleep.sleepUntil(() -> !getLocal().isAnimating() && Inventory.contains("Small fishing net"), 5000);
                }
                return 1000;
            }

            // Attempt to fish if in fishing area, not already fishing, and we have small fishing net in inventory
            if (FISHING_AREA.contains(getLocal().getTile()) && !getLocal().isAnimating() && Inventory.contains("Small fishing net")) {
                NPC fishingSpot = NPCs.closest(FISHING_SPOT_NAME);
                if (fishingSpot != null && fishingSpot.interact("Net")) { // Change "Net" to the appropriate action
                    log("Interacting with fishing spot...");
                    Sleep.sleepUntil(() -> !getLocal().isAnimating(), 5000);
                }
            }

            return 1000; // Adjust loop delay as needed
        }

        @Override
        public void onExit() {
            log("Fishing bot stopped.");
        }
    }
     

     

    FishingBot.java

    FishingBot.jar

    Edited by elite sage1
    • 2 months later...
    Posted

    Are you looking?

    Unlimited Smtp Server - Send Unlimited Emails - Inbox All Domain

    Office365 Inbox sending method 2025 - Office 365 %100 Inbox Full Setup

    Spamming Updates 2025 | Office365 Scampage 2FA OTP & Cookies Grabber

    Monthly Bulletproof Link Office 365 Scampage Auto grabber Cookies

    Spam Office Box Logs, Business & Companies good Invoice All country

    -----------------------

    Availability of Complete Spam Courses and all Spam Tools you will need

    We will deliver all reuqired spamming stuff and provide a full free support for setup and configuration

    How Spammers Target Victims | Tutorial on spamming Email & Scams

    How to Create Online Banking Bank Scampage | Build a Responsive React True Login Page

    How to Spoof Emails & SMS + Bulk Sending | How to Spoof Any Email or SMS | Email & SMS Spoofing Tricks

    How to Cracking Smtp , Webmail, cPanels - Cracking Japan Smtp Server

    Step-by-step guidance on setting up Cracking Japan Smtp & Webmail | Checking Smtp Hit Inbox All Domain

    Office365 valid email checker | Email Validator Tools | Unlimited Email Checking

    Questions? DM us 

    Visit Website: http://d4rk.cc/
    Channel: t.me/D4rk_TSN
    Telegram: t.me/D4rkTsn
    WhatsApp: +16204608397

    All the best

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.