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
  • MacroSuite sample Paint Plugin


    Dashboard
     Share

    Recommended Posts


    package org.dreambot.macrosuite;

    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Graphics;

    import org.dreambot.api.methods.skills.Skill;
    import org.dreambot.macrosuite.Developer;
    import org.dreambot.macrosuite.paint.Paint;
    import org.dreambot.macrosuite.paint.PaintManifest;


    /**
    * SimplePaint plugin for MacroSuite Dreambot Edition
    * Displays a simple paint with experience rates for every skill.
    *
    * @author Ryan Augustynowicz
    *
    */
    @PaintManifest(author = "Ryan Augustynowicz",
    description = "Simply displays lots of information",
    name = "Simple",
    uniqueId = 4441,
    version = 1.0)
    public class SimplePaint extends Paint {

    private long startTime;

    /**
    * Initializes the paint's variables.
    */
    @Override
    public void init() {
    this.startTime = System.currentTimeMillis();
    for(Skill skill : Skill.values())
    getLauncher().getSkillTracker().start(skill);
    }

    /**
    * Paints to the game screen.
    *
    * @param graphics The graphics used to paint to the game screen.
    */
    @Override
    public void paint(Graphics graphics) {
    // Set how our text will look
    graphics.setFont(new Font("Arial", 0, 14));
    graphics.setColor(Color.WHITE);

    // Draw MacroSuite's version to the screen
    graphics.drawString(getLauncher().getManifest().name() + " " + getLauncher().getManifest().version(), 5, 35);
    // Draw the script's running time to the screen
    graphics.drawString("Running time: " + Developer.buildTime(startTime), 5, 50);

    // Set a variable for where the text's vertical position is, 75 pixels is our default.
    int y = 75;
    // Loop through every skill available.
    for(Skill skill : Skill.values()) {
    // Get the experience gained and the experience per hour
    long xpGained = getLauncher().getSkillTracker().getGainedExperience(skill);
    int xpPerHour = getLauncher().getSkillTracker().getGainedExperiencePerHour(skill);
    // Check to see if the user is training the skill.
    if(xpGained != 0) {
    // If the user is training the skill, display "skill_name: xp (xp / hr)"
    graphics.drawString(skill.getName() + ": " + xpGained + "xp (" + xpPerHour + " / hr)", 5, y);
    // Lower the text's verical position by 15 pixels.
    y += 15;
    }
    }
    }

    }

    Edited by Dashboard
    Link to comment
    Share on other sites

    Question.

    This is just a wrapper for the dreambot client.

    If someone was going to write scripts like this, why not just write them with the actual client? :x

     

    Because MacroSuite has its own community of users.

     

    Screenshot of the result:

     

    glhmV.jpg

    Link to comment
    Share on other sites

    Because MacroSuite has its own community of users.

     

    Screenshot of the result:

     

    glhmV.jpg

    I don't get why that would mean they would use macrosuite (in dreambot) instead of just dreambot. :x

    It looks the same other than extra typing to get access to dreambot methods rip

    Link to comment
    Share on other sites

    I like a design that is unique and represents the script as something of quality. One way to do this is to maybe split things up and break apart from the traditional paint.

     

    I was thinking this: 

    Top left is a stat, it could be total xp gained using xyz script, or total xp gained using MacroSuite. Top center is the time. Top right is the script information. 

    Bottom left have the various xp gains.

    Each different part would have a transparent black box with black outline. This allows for the information to not take up a vital part of the screen, and the user can still see whats going on behind the paint. I just threw something together for fun. Ignore the fonts and colors.

     

    d42d6b5c13.png

    Link to comment
    Share on other sites

    I don't get why that would mean they would use macrosuite (in dreambot) instead of just dreambot. :x

    It looks the same other than extra typing to get access to dreambot methods rip

     

    People will use MacroSuite for the same reason they used SSF.

    Link to comment
    Share on other sites

    Why the fuck are these SSF scripts still being designed? I would have thought by now simple biometric data collection would go on instead of having to select predefined actions....

    Link to comment
    Share on other sites

    Why the fuck are these SSF scripts still being designed? I would have thought by now simple biometric data collection would go on instead of having to select predefined actions....

     

    I've been researching this for a while, and there are quite a few holes in such a system. Maybe once I come up with some solutions we'll remove the menus.

    Link to comment
    Share on other sites

    Why the fuck are these SSF scripts still being designed? I would have thought by now simple biometric data collection would go on instead of having to select predefined actions....

    That would be at least somewhat difficult. SSF scripts = simple, hence why people make them :3

    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.