• Log in or sign up for an account here: https://www.sythe.org/login

RSBOT SCRIPT REQUEST: Bone bank buryer?

  • Thread starter Thread starter Dj_Haxor
  • Start date Start date
Status
Not open for further replies.
D

Dj_Haxor

Guest
hey guys i need a bone buryer.. that opens the bank and takes out the bones and buries them , please any1 got?
 
Code:
import java.util.Map;
import java.awt.*;

import com.speljohan.rsbot.script.Script;
import com.speljohan.rsbot.script.wrappers.RSInterface;
import com.speljohan.rsbot.script.wrappers.RSObject;
import com.speljohan.rsbot.bot.*;
import com.speljohan.rsbot.event.listeners.*;
import com.speljohan.rsbot.event.events.*;


public class AnyBoneBurier extends Script implements ServerMessageListener, PaintListener {

    private int bankID, boneID;
    int bonesburied;

    public String getAuthor() {
        return "Made by Fusion89k, maintained by magic pajamas";
    }

    public double getVersion() {
        return 3.3;
    }

    public String getName(){
        return "Any Bone Burier";
    }
    
    public String getScriptCategory() {
        return "Burying";
    }

    public String getScriptDescription() {
        return "<html>\n"
                + "<head></head>\n"
                + "<body>\n"
                + "<center>"
                + "<h2>"
                + getName()
                + "</h2>"
                + "</center>\n"
                + "<b>Author:</b> "
                + getAuthor()
                + "<br />"
                + "<b>Version:</b> "
                + getVersion()
                + "<br />"
                + "<form>"
                +"Bank ID: <input type=\"text\" name=\"bank\" size=\"8\"><BR>"
                +"Bone ID: <input type=\"text\" name=\"bone\" size=\"8\"><br>"
                + "</form></body>\n" + "</html>";
    }


    public boolean onStart(Map<String, String> args) {
        String bankS = args.get("bank"), boneS = args.get("bone");
        Bot.getEventManager().addListener(PaintListener.class, this);
        Bot.getEventManager().addListener(ServerMessageListener.class, this);
        try {
            bankID = Integer.parseInt(bankS);
            boneID = Integer.parseInt(boneS);
        } catch (NumberFormatException e) {
            log("Invalid numbers");
            return false;
        }
        return true;
    }
    public void onRepaint(Graphics g) {
        g.setColor(Color.YELLOW);
        g.drawString("Any Bone Burier", 260, 20); 
        g.drawString("Bones Buried: " + bonesburied, 260, 38); 
    }
    public int loop()    {
        if (getInventoryCount(boneID) > 0) {
            atInventoryItem(boneID, "Bury");
            wait (random(400,700)); 
            return 0;
        } else {
            if(!RSInterface.getInterface(INTERFACE_BANK).isValid()){
                RSObject booth = findObject(bankID);
                if(booth==null) return 100;
                if(distanceTo(booth)>=5){
                    walkTileMM(booth.getLocation());
                    wait(random(700,900));
                }
                atObject(booth,"Use-Quickly");
                if(RSInterface.getInterface(INTERFACE_BANK).isValid()){
                clickMouse(random(38,73),random(92,123),false);
                wait(random(700,900));
                atMenu("All but one");
                bank.close();

                    }
                }
            }
            return 0;
        }
            
    
                public void onFinish( ) 
        {      
            log("stopping...");
            Bot.getEventManager().removeListener(ServerMessageListener.class, this);
            Bot.getEventManager().removeListener(PaintListener.class, this);
        }
    public void serverMessageRecieved(ServerMessageEvent e){
            String message = e.getMessage(); 
            if(message.contains("bury the bones")) {
            bonesburied++;
            }            
            if (message.contains("only have one"))
            {
                logout();
                stopAllScripts();
            }         
    }


}

Bones is first slot of bank! I did not make this in any way!!! You need to try it .. (me hates prayer)
 
Thanks sheep
 
you can check rsbot website and see if they got one.
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top