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
  • Try asking for help in the chatbox
  • Muler Thing?


    qbots
     Share

    Recommended Posts

    Someone asked for this so I wrote it real quick cus i had a minute...

     

    Enter the name of the person you want to accept items from and then it will bank items when received. then walk back

    dl: http://uppit.com/6z2bniq5bnj5

    package com.qbots.muler;
    
    import org.dreambot.api.methods.Calculations;
    import org.dreambot.api.methods.map.Tile;
    import org.dreambot.api.script.AbstractScript;
    import org.dreambot.api.script.Category;
    import org.dreambot.api.script.ScriptManifest;
    import org.dreambot.api.script.listener.MessageListener;
    import org.dreambot.api.wrappers.widgets.message.Message;
    
    import javax.swing.*;
    import java.awt.*;
    
    @ScriptManifest(category = Category.MISC, name = "Mulr Thing", author = "QBots", version = 0.01, description = "Start logged in on spot u want ppl to trade u")
    public class Muler extends AbstractScript implements MessageListener {
        String nameToTrade; //doesnt do anything for reasons
        Tile walkTile;
        String status = "N/A"; //unused kek u can make paint if u want
    
        public void onStart() {
            nameToTrade = JOptionPane.showInputDialog("Enter name of person trading you");
            walkTile = getLocalPlayer().getTile();
        }
    
        @Override
        public int onLoop() {
            if(!getInventory().isEmpty()) {
                status = "Walking to nearest bank and depositing items";
                if(!getBank().isOpen()) {
                    getBank().openClosest();
                    return Calculations.random(500,1000);
                } else {
                    getBank().depositAllItems();
                    return Calculations.random(500,1000);
                }
            } else {
                if(!walkTile.equals(getLocalPlayer().getTile())) {
                    getWalking().walk(walkTile);
                    status = "Walking to " + walkTile.toString();
                    return Calculations.random(100,1000);
                } else {
                    if(getTrade().isOpen()) {
                        getTrade().acceptTrade();
                        return Calculations.random(500,1000);
                    }
                    status = "Waiting for trade...";
                }
            }
            return 100;
        }
    
        @Override
        public void onGameMessage(Message message) {
    
        }
    
        @Override
        public void onPlayerMessage(Message message) {
    
        }
    
        @Override
        public void onTradeMessage(Message message) {
            getMouse().click(new Rectangle(27,446,50,10));
        }
    
        @Override
        public void onPrivateInMessage(Message message) {
    
        }
    
        @Override
        public void onPrivateOutMessage(Message message) {
    
        }
    }
    
    
    Link to comment
    Share on other sites

    Should probably mention that this won't work if

    1. someone talks after someone trades you (I'm assuming that hard coded rectangle is the latest message in chatbox)

    2. someone you don't want to trade you trades you

    3. multiple people trade you at once

     

    and you don't verify who is trading you.

    and it'll spam click accept trade. (well, every 500-1000ms) until the items are put there.

    It'll also repeatedly click to open the bank instead of sleep until it's open, and could potentially click deposit items twice.

    Link to comment
    Share on other sites

    Should probably mention that this won't work if

    1. someone talks after someone trades you (I'm assuming that hard coded rectangle is the latest message in chatbox)

    2. someone you don't want to trade you trades you

    3. multiple people trade you at once

     

    and you don't verify who is trading you.

    and it'll spam click accept trade. (well, every 500-1000ms) until the items are put there.

    It'll also repeatedly click to open the bank instead of sleep until it's open, and could potentially click deposit items twice.

    It was written in 60 seconds. It functions.

    Link to comment
    Share on other sites

    • 11 months later...

    I know I'm a n00b to these forums but I just use the dance for money script and it does the job for muleing, plus brings in a little extra $$ from random people.  :P

    Link to comment
    Share on other sites

    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
     Share

    ×
    ×
    • 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.