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

(REQUEST) Rock Crab Killer Script

Status
Not open for further replies.

deadlywario0

Active Member
Joined
Nov 29, 2008
Sythe Gold
0
Messages
129
Location
Wisconsin
hi, i was wondering if anyone has a rock crab fighting/ killing script for xp and training. If any1 does please post it here or post a download link.


Thanks,
deadlywario0
 
lol dude just go search rsbot.org theres tons of them.
 
i have most are nexus and wont work? it dont come with .class file so it doesnt load it? it just dont work.
 
Woofdawg23's Rock Crab Crusher

Information:

- attack's other peoples crabs (lol)
- eats food
- no deathwalk
- fast and efficient
- anti-ban

Code:
import com.speljohan.rsbot.script.Script;
import com.speljohan.rsbot.script.wrappers.*;

public class RockCrabCrusher extends Script {

    // misc
    public int state = 1;
    public int equipThis;
    int GambleInteger;

    @Override
    public String getScriptCategory() {
        return "Woofdawg23's fighter series";
    }
    
    public String getName() {
        return "RockCrabCrusher";
    }

    public double getVersion() {
        return 1.0;
    }

    public String getAuthor() {
        return "Woofdawg23";
    }
    // Miscellaneous:
    long        startTime;
    long        waitTime = random(120000, 180000);
    int            foodID = 361;
    int            foodCheck = random(10, 20);
    int         randomRunValue = 45;
    

    public boolean onStart( String[ ] args ) {
        if ( args.length >= 1 ) {
            try {
                foodID = Integer.parseInt( args[args.length - 1] );
                log("Eating food that has the ID " + foodID);
            }
            catch ( Exception e ) {
            }
        }
        // Return true (success).
        return( true );
    }

    public int loop() {
        // Check if the player needs food.
        checkHealthEat( );
        if (getMyPlayer().isInCombat() || getMyPlayer().isMoving()) {
            return random(500, 1000);

        }
        switch (state) {
            case 1:
                wieldItems();
            case 2:
                fightCrabs();
        }
        return random(1000, 2000);
    }

    public void wieldItems() {
        if (inventoryContains(equipThis)) {
            atInventoryItem(equipThis, "Wield");
        }
    }
    public void checkHealthEat( ) {
        int health;

        health = skills.getCurrentSkillLevel( STAT_HITPOINTS );
        if (health <= foodCheck ) {
            log("Health is " + health + ", eating.");
            foodCheck = random(10, 20);
            atInventoryItem(foodID, "Eat");
        }
    }

    private int antiBan() {
        GambleInteger = random(1, 3);
        if (GambleInteger == 1) {
            wait(random(2000, 2000));
        }
        if (GambleInteger == 2) {
            int intx = random(0, 750);
            int inty = random(0, 500);
            moveMouse(0, 0, intx, inty);
        }
        return random(1000, 1500);
    }

    public int fightCrabs() {
        RSNPC npc = getNearestFreeNPCByName("Rock Crab");

        if (npc != null && !npc.isInCombat()) {
            atNPC(npc, "attack");
            wait(random(1000, 2000));
            return random(1000, 2000);
        } else {
            return random(100, 500);
        }
    }

    public int letsWait() {
        return random(1000, 2000);
    }

}
 
thanks for the script is there a .class or identification file for it? cause it wont let me use it it doesnt show up.
 
hi, i was wondering if anyone has a rock crab fighting/ killing script for xp and training. If any1 does please post it here or post a download link.


Thanks,
deadlywario0

Request this on the RsBot Sticky that says rs bot requests please
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top