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
  • DreamBot Account Rotater


    Aeglen
     Share

    Recommended Posts

    Posted (edited)

    This Python program will allow those with access to QuickStart to effortlessly rotate a list of their accounts :) 

    Tutorial (assumes Python is installed, YT messed up the audio):

    NOTE: If you get stuck on "Client is ready to launch" you're using the wrong .jar file!

    The license for this code:

    MIT License
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.

    The code:

    #this program takes your accounts.csv file and rotates Master AIO F2P on them
    
    #implemented accounts.csv file formats
    #username:password
    #username:password:world
    #username:password:world:proxy_ip:proxy_port:proxy_username:proxy_password
    #you can modify the code to support other arguments including proxies etc
    
    path_to_accounts_file = "accounts.csv"
    mean_hours_per_account = 6
    sd_hours_per_account = 1
    dreambot_username = "USERNAME"
    dreambot_password = "PASSWORD"
    dreambot_path = r"C:\Users\Aeglen\DreamBot\BotData\client.jar"
    
    ###CODE###
    
    import csv
    import time
    from subprocess import Popen
    import random
    
    accounts = []
    with open(path_to_accounts_file) as f:
        reader = csv.reader(f, delimiter=':')
        for line in reader:
            accounts.append(line)
    
    def generateCommand(account):
        user = account[0]
        pwd = account[1]
        world = None
        proxy_ip = None
        proxy_port = None
        proxy_username = None
        proxy_password = None
        if len(account) > 2:
            world = account[2]
        if len(account) > 3:
            proxy_ip = account[3]
            proxy_port = account[4]
            proxy_username = account[5]
            proxy_password = account[6]
        if proxy_ip != None:
            return "java -Xmx255M -jar " + dreambot_path + " -script \"Master AIO F2P\" -username " + dreambot_username + " -password " + dreambot_password + " -accountUsername " + user + " -accountPassword " + pwd + " -world " + world + " -proxyHost " + proxy_ip + " -proxyPort " + proxy_port  + " -proxyUser " + proxy_username + " -proxyPass " + proxy_password + " -params nogui"
        elif world != None:
            return "java -Xmx255M -jar " + dreambot_path + " -script \"Master AIO F2P\" -username " + dreambot_username + " -password " + dreambot_password + " -accountUsername " + user + " -accountPassword " + pwd + " -world " + world + " -params nogui"
        else:
            return "java -Xmx255M -jar " + dreambot_path + " -script \"Master AIO F2P\" -username " + dreambot_username + " -password " + dreambot_password + " -accountUsername " + user + " -accountPassword " + pwd + " -params nogui"
    
    def individualizeTime(time, name):
        mult = 1
        sum = 0
        for char in name:
            sum += ord(char) * mult
            mult += 2
        random.seed(sum)
        time *= random.uniform(0.8,1.2)
        return time
    
    while True:
        for account in accounts:
            print(generateCommand(account))
            p = Popen(generateCommand(account))
            runetime = random.gauss(mean_hours_per_account*3600,sd_hours_per_account*3600)
            time.sleep(individualizeTime(runetime, account[0]))
            p.terminate()

    Example accounts.csv:

    [email protected]:password:301:proxy_ip:proxy_port:proxy_username:proxy_password
    [email protected]:password:330
    [email protected]:password

     

    Edited by Aeglen
    Link to comment
    Share on other sites

    3 hours ago, ChaosKilla said:

    Anyway to add proxies?

    Might add it later, but for now you'll need to code it in yourself

    Link to comment
    Share on other sites

    Posted (edited)
    3 minutes ago, xokonik891 said:

    tried this but your dreambot client looks different to mine. something i'm missing? mine just gets stuck here

     

    image.png.1646efd7dc3548ce6e6a179a5869e9f7.png 

    this is not the correct .jar file

    Edited by Aeglen
    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.