A RsBot script for the non botters. Lol.

Discussion in 'Archives' started by Burden, Jan 12, 2009.

Thread Status:
Not open for further replies.
A RsBot script for the non botters. Lol.
  1. Unread #1 - Jan 12, 2009 at 3:10 AM
  2. Burden
    Joined:
    Dec 30, 2008
    Posts:
    894
    Referrals:
    0
    Sythe Gold:
    0

    Burden Apprentice
    Banned

    A RsBot script for the non botters. Lol.

    Have you ever wanted to have a paint like bots do but don't want to risk a ban?
    Such as ice bursting rock lobsters, or barraging in pest control?

    Every wanted to know how much xp you get farcasting in BH?



    HERE'S YOUR SOLUTION!



    First off, TURN OFF ALL ANTI-BANS!

    [size=large]Just run the script, a black and gray paint will show up with:
    [​IMG]

    This is very useful while alching![/size]

    To do for v1.2:

    -Add options for alching
    -Add options for other skills
    -Add paint in different spots


    Code:
    import java.awt.*;
    
    import com.speljohan.rsbot.bot.Bot;
    import com.speljohan.rsbot.event.listeners.PaintListener;
    import com.speljohan.rsbot.script.Script;
    import com.speljohan.rsbot.script.wrappers.*;
    
    public class MageTable extends Script implements PaintListener {
    
        long startTime = System.currentTimeMillis();
    	int curLevel = skills.getCurrentSkillLevel(STAT_MAGIC);
        long hours = 0, minutes = 0, seconds = 0, time, xpGained, newLvl, startExp;
    {
    Bot.getEventManager().addListener(PaintListener.class, this);
    }
    public double getVersion()
    {
    return 1.0;
    }
    public String getScriptCategory()
    {
    return "Magic";
    }
    public String getName()
    {
    return "MageTable";
    }
    public String getAuthor()
    {
    return "CruzrV4";
    }
    
    public boolean onStart(String[] args)
    {
    Bot.getEventManager().addListener(PaintListener.class, this);
    Frame myframe = new Frame("Input");
    myframe.setVisible(true);
    return true;
    }
    
    public void onFinish() {
    
    }
    private static final Color rect = new Color(20, 20, 20, 120);
    public void onRepaint( Graphics g ) {
            int exp = 0;
            
            if (startTime == 0) {
                startTime = System.currentTimeMillis();
            }
            time = System.currentTimeMillis() - startTime;
            seconds = time / 1000;
            if (seconds >= 60) {
                minutes = seconds / 60;
                seconds -= minutes * 60;
            }
    
            if (minutes >= 60) {
                hours = minutes / 60;
                minutes -= hours * 60;
            }
            
            int x1 = 9;
            int y1= 245;
            
            if (startExp == 0) {
                startExp = skills.getCurrentSkillExp(STAT_MAGIC);
            }
            xpGained = skills.getCurrentSkillExp(STAT_MAGIC) - startExp;
            
            if (isLoggedIn()) {
                    g.setColor(rect);
                    g.fillRoundRect(9, 245, 140, 80, 15, 15) ;
                    g.setColor(Color.gray);
                    g.drawString("Time running: " + hours + "." + minutes + "." + seconds,x1 += 3, y1 += 15);
                    g.drawString("Exp Gained: " + xpGained, x1 , y1 += 15);
    				g.drawString("Exp to next level:" +skills.getXPToNextLevel(STAT_MAGIC), x1 , y1 += 15);
                    g.drawString("Level Gained: " + newLvl, x1 , y1 += 15);
                    g.drawString("Have fun maging!", x1 , y1 += 15);
            }
        }
    
    public int loop() {
    return 1000;
    }
    }
    
     
    
    


    Credits:
    I based the color scheme paint off of LesserMager.
    Rest me.



    Go easy, first script lol, and I was mainly wanting to make something I'd find useful.
     
< 40 usd to the first person who gets me a working auto willow and yew chopper | How do i add vouches to my profile? >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site