-
Posts
55 -
Joined
-
Last visited
Posts posted by Tweeboy
-
-
The snippets you've shared are a bit scattered, would need you to share a larger snippet to confirm issue
You could condense that down to something like:
if (!Inventory.contains("Grain")){ if (!wheatArea.contains(Players.getLocal())){ if (Walking.shouldWalk(5)){ Walking.walk(wheatArea.getRandomTile()); } } else { GameObject wheat = GameObjects.closest("Wheat"); if (wheat != null && wheat.interact()){ Sleep.sleepUntil(() -> Inventory.contains("Grain"), 2000); } } }
-
13 hours ago, 40 Cubic 2 said:
Something is wrong with this script when i do alcing and teleing to varrock at the same time. It misclicks on the teleport quite a bit and i tihnk it got one of my accounts banned but please fix the script when u get a chance, thanks.
It like exits out of the inventory then clicks on the ground instead of the varrock tele idk what the hells goin on.
I am running it now (Tele-Alching in Varrock) and am unable to reproduce this issue. I will leave it running for the next few hours through my work calls.
Can you please share your DreamBot client settings? And it shouldn't matter but - what were you trying to alch? I would like to try to reproduce your exact run conditions.
Please ensure you enter everything in the GUI properly (alch item is case sensitive - type it EXACTLY as it appears in game)
-
Keep in mind there's a Prime Event going on at the moment (ends in ~1 month from today), ban rates are typically higher during this time as a lot of prime accounts flood the game
Regardless just Trial & Error, just keep mixing it up and see what works for you
-
sent him to barb village with over 200k feathers... sick script
-
Loving the script so far
How is it calculating profit? Below is for Mithril Bars at Blast Furnace. I'm using this page to estimate ~200k/hr profit for 1800 bars/hr. Script is saying I'm making close to 700k/hr profit? That can't be with the current price of coal/ores
-
5 hours ago, Vinny143 said:
Didn't work.
The steps I did were:
- Login
- Manually open bank
- Close bank
- Run script
Still gave me false for every test.
To my knowledge, the script itself will need to access the bank to know what's inside. You manually opening and closing bank before running the script = the script does not know what's in the bank and will just return false. To verify this you can move that snippet from your onStart() to the onLoop(). Once you've started the script enable user input and open & close your bank. Your test should now return true.
What are you trying to achieve with this code? It may be easier to check if the Bank contains those items within your bank node instead of the onStart method.
So your bank node could have something like:
if (Bank.open()){ if (Bank.contains(cookingItem)){ Bank.withdrawAll(cookingItem.getName()); } else { log("No more raw fish, ending script"); return -1; } }
-
thanks Hashtag
-
On 4/17/2023 at 5:10 AM, Tovenaar said:
it gets stuck in draynor
Did you have Menu Manipulation enabled?
Seems to get stuck at Draynor Village with Menu Manipulation enabled. No issues when disabled though!
Specifically over the below obstacle
When Menu Manipulation is enabled, the script will attempt to interact with the NEXT obstacle (Jump Gap) while still in the middle of climbing up the above wall. That eventually times out and the script attempts to interact again, only it tries to interact with the same Wall as before
I've been able to recreate this every lap with Menu Manipulation enabled
-
7 hours ago, blackbandan said:
So i've made edits to the MiningTask in order to try and debugg, this is what I now have:
The log is spamming "No available rocks found. Waiting...", meaning getClosestRock is returning Null even though I'm standing right near Copper rocks. Any ideas?
package main.tasks;
import org.dreambot.api.methods.Calculations;
import org.dreambot.api.methods.container.impl.Inventory;
import org.dreambot.api.methods.interactive.GameObjects;
import org.dreambot.api.methods.interactive.Players;
import org.dreambot.api.script.TaskNode;
import org.dreambot.api.utilities.Sleep;
import org.dreambot.api.wrappers.interactive.GameObject;
public class MiningTask extends TaskNode {
@Override
public boolean accept() {
boolean accept = !Inventory.isFull() && !isMining();
log("MiningTask accept called, returned: " + accept);
return accept;
}
@Override
public int execute() {
log("MiningTask execute called");
GameObject rock = getClosestRock();
// If there aren't any available rocks near us, we should just wait until one's available
if (rock == null) {
log("No available rocks found. Waiting...");
return Calculations.random(500, 1000);
}
if (rock.interact("Mine")) { // If we successfully click on the rock
log("Started mining a rock.");
Sleep.sleepUntil(this::isMining, 2500); // Wait until we're mining, with a max wait time of 2,500ms (2.5 seconds)
} else {
log("Failed to interact with the rock.");
}
return Calculations.random(500, 1000);
}
/**
* Finds the closest acceptable rock that we can mine
*
* @return The closest GameObject that has the name 'Rocks', with the action 'Mine', and non-null model colors
*/
private GameObject getClosestRock() {
GameObject rock = GameObjects.closest(object -> object.getName().equalsIgnoreCase("Rocks") && object.hasAction("Mine") && object.getModelColors() != null);
log("getClosestRock called, returned: " + (rock != null ? rock.getName() : "null"));
return rock;
}
/**
* For part 1, we'll consider our player doing any animation as mining
* This will be improved/changed in a future part
*
* @return true if the player is mining, otherwise false
*/
private boolean isMining() {
return Players.getLocal().isAnimating();
}
}Mining rocks were renamed since this guide was written - you're code is looking for an object named "Rocks", but all that's nearby are "Copper rocks"
- Doxial and blackbandan
- 2
-
6 hours ago, GreenAgent500 said:
Got stuck after filling first inventory with shrimp. Waited over 2 mins just kept spinning camera around and around.
This will be fixed in next Version pushing update now. Going to test it some more now
Seems script only worked with Menu Manipulation enabled
This is from the SDN version (paint bugged out for some reason so cleaning that up as well)
-
I needed to get some early cooking levels on several accounts and wanted to do so without needing to trade anything over. This was my solution.
This script will Fish and Cook Shrimp/Anchovies in Al Kharid.
Requires small fishing net in Inventory to start
STRONGLY RECOMMENDED to be 29 combat to avoid the wandering Scorpion from sending you to Lumbridge. Script does NOT support avoiding this scorpion...
Progress Reports
Spoiler -
Simple script that will cast Teleports, Curse, or Alch (high/low). Supports any combination of the three!
I had written this originally with the intentions to do all 3 at once, but modified the script a bit to support doing any combination of the 3.
Script will stop when out of runes.
NOTE: While the script is free to use it is STRONGLY recommended to have Menu Manipulation enabled if you're doing a combination of spells. This is a VIP feature.
Instructions:
Spoiler- Check the boxes to select which spells the script will use to train with
- (If Tele selected) select the teleport spell you wish to use. Currently only supports F2P teleports.
- (If Curse selected) enter the name of the NPC you wish to cast curse on. CASE SENSITIVE, type this EXACTLY as it appears in game. NOTE: For best results, try to start the script with the NPC already attacking you.
- (If Alch selected) enter the name of the item you wish to alch. CASE SENSITIVE, type this EXACTLY as it appears in game. Script will High or Low ZAlch depending on your magic level.
Progress Reports
SpoilerTele/Alch/Curse (need menu manipulation to hit full xp rate, not recommended to run for long periods of time)
Tele/Alch (recommended)
-
-
2 hours ago, archfiend said:
Walking.walk(wizardsTower); if(wizardsTower.contains(player)){ GameObject ladder = getGameObjects().closest("Ladder"); // Interact with the ladder if (ladder != null) { ladder.interact("Climb-up"); } }
The getGameObjects isnt supported. How would I climb up a ladder? This is the hard part for part of the script.. After this is pretty much smooth sailing.
So I just realize.... Im not climbing up ladders im climb up stair cases....
but if I would to climb up a ladder it would look like something like this ?
if(!wizardsTower.contains(player) ){ Walking.walk(wizardsTower); } if(wizardsTower.contains(player)){ GameObject ladder = closest("ladder"); // Interact with the ladder if (ladder != null) { ladder.interact("Climb-up"); } }
So i think i gotta switch "ladder" with "staircase"....
---------------------------------------------------------------------------------------------------------------------------------------
Since the post of this project there seems to be a pandemic of bots at wizards tower.... sad... cat is out of the bag.... some one beat me to it... Hmmm.https://dreambot.org/javadocs/org/dreambot/api/methods/interactive/GameObjects.html
Recommend looking through the docs, lots of useful information in there
GameObject ladder = GameObjects.closest("Staircase");
-
Bulk Import is a paid feature; you will need to purchase VIP/Sponsor to use it
-
I've been using this to get 10QP on my accounts, overall great script! Usually this is able to complete all 3 quests for me without any issues.
I have the most success running this on accounts that already have some stats & playtime.
Some issues I've come across:
- Cooks Assistant - same issue as above . Sometimes it works just fine, but other times it gets stuck repeatedly pulling the hopper lever. If I pause the script, go down, and collect the flour manually it'll continue just fine
- Romeo & Juliet - Occasionally gets stuck continuing through dialogues. Happens less often than Cooks Assistant issue. Seems to be more common when delivering love letter to Romeo & talking to Apothecary.
-
-
Enjoy. No changes have been made yet. I'd like to know what should be changed.
I think the widgets changed cause of the new interface?
getWidgets().getWidget(270).getChild(13) gets me pastry dough
getWidgets().getWidget(270).getChild(15) gets me pie shells
Idk what else changed
Unless this doesn't use widgets
-
Is this updated for the recent changes to make all interface?
And could I get a trial?
DB Won't load past certain point
in Client Support
Posted
you know what else just happened today?
a game update
coincidence? surely not