Hi. Script is alright. I think magic needs to be worked on. Script does not recognize wielding a staff that uses said runes and the script tries withdrawing the runes from the bank. (Basically to cast fire strike with a smoke staff the script thinks the player needs air and fire runes). Also some random camera wiggles, and when safe spotting the script a lot of the time doesn't recognize when in combat. Otherwise, appreciate your work - the scripts alright.
Why isnt my script looking at items that are on the ground?
List<GroundItem> lootableItems = GroundItems.all(item -> item != null && goblinArea.contains(item) && item.exists() && item.distance(Players.getLocal()) < 5);
if (!lootableItems.isEmpty()) {
for (GroundItem item : lootableItems) {
// Check if the item is either coins or bones
if (item.getName().equals("Coins") || item.getName().equals("Bones")) {
// Attempt to loot coins or bones
if (item.interact("Take")) {
log("Looting " + item.getName() + "...");
sleep(Calculations.random(2000, 4000));
return Calculations.random(2000, 3000);
} else {
log("Failed to loot " + item.getName() + "!");
}
}
}
}
private final Area treeArea = new Area(X, x, X, X);
private final int WALK_DELAY = 3000; // Delay between walk check
private Timer timer;
etc etc
if (!treeArea.contains(Players.getLocal())) {
walkBackToTreeArea();
return WALK_DELAY;
I have coded my script fine, but my bot just continually walks finding trees, and I would like him to stay within a set boundary.
I see the constructor:
Area(XXXX,XXXX,XXXX,XXXX) but how do I implement that in my code?
How would I say something like
if bot is in Area(X,X,X,X) then stay;
else, go back to area
I was going good for ~4-5 hours averaging ~250k/hr then around 8th hour the bot lost 3m on amylase crystal, another 3m, and another 2m on bandos tassets so im down quite a bit..... does REALLY well on cannonballs though.....started with 30m. I have had similar experiences with this bot. be careful.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.