RSBOT SCRIPT REQUEST: Bone bank buryer?

Discussion in 'Archives' started by Dj_Haxor, Dec 4, 2008.

Thread Status:
Not open for further replies.
RSBOT SCRIPT REQUEST: Bone bank buryer?
  1. Unread #1 - Dec 4, 2008 at 5:15 AM
  2. Dj_Haxor
    Referrals:
    0

    Dj_Haxor Guest

    RSBOT SCRIPT REQUEST: Bone bank buryer?

    hey guys i need a bone buryer.. that opens the bank and takes out the bones and buries them , please any1 got?
     
  3. Unread #2 - Dec 4, 2008 at 9:04 AM
  4. -Sheep-
    Joined:
    Oct 22, 2008
    Posts:
    605
    Referrals:
    1
    Sythe Gold:
    0

    -Sheep- Forum Addict
    Banned

    RSBOT SCRIPT REQUEST: Bone bank buryer?

    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)
     
  5. Unread #3 - Dec 4, 2008 at 9:38 AM
  6. ISell2You
    Joined:
    Nov 29, 2008
    Posts:
    141
    Referrals:
    0
    Sythe Gold:
    0

    ISell2You Active Member
    Banned

    RSBOT SCRIPT REQUEST: Bone bank buryer?

    Thanks sheep
     
  7. Unread #4 - Dec 4, 2008 at 10:07 AM
  8. -Sheep-
    Joined:
    Oct 22, 2008
    Posts:
    605
    Referrals:
    1
    Sythe Gold:
    0

    -Sheep- Forum Addict
    Banned

    RSBOT SCRIPT REQUEST: Bone bank buryer?

    Np! is it working correctly?
     
  9. Unread #5 - Dec 4, 2008 at 11:12 AM
  10. Pureness
    Joined:
    Nov 18, 2008
    Posts:
    1,061
    Referrals:
    0
    Sythe Gold:
    0

    Pureness Guru
    Banned

    RSBOT SCRIPT REQUEST: Bone bank buryer?

    you can check rsbot website and see if they got one.
     
  11. Unread #6 - Dec 4, 2008 at 11:15 AM
  12. ISell2You
    Joined:
    Nov 29, 2008
    Posts:
    141
    Referrals:
    0
    Sythe Gold:
    0

    ISell2You Active Member
    Banned

    RSBOT SCRIPT REQUEST: Bone bank buryer?

    Dont know if that one you posted works sheep i will test later on today.
     
< RSCA Bot | tradin ruin d shard for ruin d lump >

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


 
 
Adblock breaks this site