deadlywario0
Active Member
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
Thanks,
deadlywario0
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);
}
}
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
try runescape cheating asylum

