Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
BottingHub.com Advertisment
Download the DreamBot client today!


  • Content Count

  • Joined

  • Last visited

About ThatGuyLo

  • Rank

Recent Profile Visitors

81 profile views
  1. Oh, also, while this isn't always required, I sometimes like verifying that my bot didn't do something crazy somehow before trying to do things like your function bank(); I would have written: Bank() { if (lumbridgeBank.contains(getLocalPlayer.getTile()) { //NOW banking is done } else { WalkToBank(); //or something of the sort } }
  2. I see this is your first script, so I'd like to give some pointers for a beginner. First, I highly recommend dividing your process into states. For example, you might have an enum called State which contains Bank, Collect, Attack, and maybe Walk. Then have a function simply called GetState() which returns the state you want to be in based on the logic you have above. So GetState would run the conditionals like: State playerState; if (getInventory().isFull()) { playerState = State::Bank; } //(I mainly code in C++ so forgive me if im mixing languages, but the idea is here) elseif (!lumbridgeCows.contains(getLocalPlayer().getTile()) { playerState = State::Walk; } and so on. Then have functions that are run based on which state you are in using a switch or conditional chain: switch(GetState()) case State::Bank: Bank(); Another tip would be to (personal preference) log your states/functions (that you find necessary) at the beginning of the function, rather than the end. The reason I say this is because in your code: getWalking().walk(lumbridgeBank.getRandomTile()); bank(); log("Seeing full Inventory"); You are going to see "Seeing full inventory" after you watch your bot walk to the bank, which may be confusing (and useless) to know afterwards. Last tip (for beginners): rather than setting hard sleep times (return 1000;//or sleep(1000); Use Calculations.random(int a, int b) where a is the minimum sleep time desired, and b is the max. This helps to ensure that your bot isn't always acting exactly at the same times on the clock, helping lower ban rate.
  3. Still haven't figured this one out, if anyone cal help
  4. Quick question. Is there any way I can manage to get this work? Spell testSpell = Normal.LEVEL_1_ENCHANT; getMagic().castSpell(testSpell); This would be preferable over hard coding which spells to cast witha bunch of if statements
  5. *SOLVED* It seems I had 2 copies of DreamBot (and containing folders) in seperate locations, and I assume DBLauncher was reading from the file that I was not sending scripts to. Odd, though, that the local scripts screen stopped showing that there were no scripts to load rather and just became an empty box instead.
  6. I should also add that the Local Scripts screen, upon clicking refresh, goes blank shortly after displaying "Loading..." which I believe implies that it is recognizing that there is a script in the folder, but that there must be some sort of error with it. It is also the only script in the folder currently, although I added a free script to my account in order to check if everything was working properly. I noticed in my first script, when there was an issue, it not only made the local scripts box empty, but the free scripts showed as empty as well. In my current case, though, my free script is still showing, so I assume it must be a different error. My first error was being on the wrong JDK (11), and it worked out once I switched it to 1.8.
  7. I've written one script before and it worked as intended. I am currently working on another script and I want to start testing it now, but I cant seem to get it to show up in the local scripts in the launcher. I've checked: - JDK is 1.8 - Artifacts are building to scripts file -Script Manifest is there, with no errors -No compiler errors in code -Deleted artifact built in scripts file and rebuilt to replace it in there I'm pretty new so I dont know what else to check
  8. Im just having one issue. How do I get the bot to confirm crossing the wilderness ditch if/when the box pops up?
  9. Yeah, I want to use states in my next rendition. I was just using this approach for my first attempt at a working script. And yeah, it wasn't meant to be actual code, just an outline. Was just checking to see if it will work properly, but I'm almost done writing it now, so hopefully I'll be able to see soon
  10. Hello, I am making my first script. I'm not a total scrub at scripting, and am a programming student in college now. I just wrote a layout for the script I want to make, and want to make sure that it will work as intended (given I fill in the functions with the correct instructions). I attached a small .txt file if you dont mind looking at it :) Here is the intended use: Go to my desired location (im leaving this unnamed) to loot runes. Once the bot has looted enough runes (as specified) it will go to bank them, and return. if it dies, it will simply return to the location The slight catch is that there are enemies there and the bot has to get tolerance first by being in the area in a safespot for x amount of time That's pretty much the jist of it. Rather Simple. Thanks so much in advance! RuneLooterLayout.txt
  • Create New...