Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • ginahana1

    Members
    • Posts

      11
    • Joined

    • Last visited

    Recent Profile Visitors

    133 profile views

    ginahana1's Achievements

    1. I already tried something like you posted. I will try anyway again later this day to check if it works diffrently this time. If it will not work i will post a snippet of the code. Thanks for your help
    2. First of all there is nothing like just .buy And second of all - for some people that doesn't work what you had in mind - i tried many solutions including yours and they didint work for some reason 😕
    3. I suggest (if possible) adding something that will check daily traiding volume (buy and sell) of item. It is hard to implement anything related to auto buying / selling based only on LivePrices, because the value of an item can massively be influenced by trading volume. This causes a need to implement methods, that will tweak the prices, cancel and place offers, lots of Sleep.sleep() and checking if the method is still profitable in terms of money making. This example is based on my expirience with trying to make efficient High alch bot, or flipping bot.
    4. Okay, I had the same issue and it hasn't been resolved yet so I came up with solution like that: if(GrandExchange.openBuyScreen(1)) { // opens buy screen if(Sleep.sleepUntil(() -> GrandExchange.isBuyOpen(), 4000)) { // waits until open if(Widgets.getWidgetChild(465, 25, 0) != null && Widgets.getWidgetChild(465, 25, 0).isVisible()) { // checks if the icon that is placeholder for the item in the buy screen is visible and even exists Widgets.getWidgetChild(465, 25, 0).interact("Choose item"); // iteracts with this button Sleep.sleep(1000, 2500); GrandExchange.buyItem(properItemID, buyItemLive, properItemIDPrice); //now this works Sleep.sleep(1500, 2500); } } } This solution works, but of course if anything changes with the client and the ID of the widget child changes - you will need to change it too manually. But if it works - leave it Remember to delete comments // 😜
    5. When you open your console there is no error, exception, or anything suspicious?
    6. There was a minor client update recently if I remember correctly. Did you try downloading the dreabot client once again?
    7. In simple terms, a stack trace is a list of the method calls that the application was in the middle of when an Exception was thrown. Do you have an idea in what part of your code the exception is thrown? If so please post it so I can look at it.
    8. Here are few snippets I made to try diffrent solutions. There was more attempts yesterday - I wrote these snippets for the answer right now. Just like i said - nothing works except selling (buy, search etc. doesnt work all the way). Thats why i asked for some ready to use snippets to understand what am I doing wrong, or what conception I dont understand (This is my first Dreambot script and actually first Java code). GrandExchange.open(); //works Sleep.sleep(1000, 1500); //works GrandExchange.openBuyScreen(0); //works Sleep.sleep(500, 1000); //works if(GrandExchange.isSearchOpen()) { log("Grand exchange search open!"); //works GrandExchange.searchItem("Cosmic rune"); // does not work - no search log("Should search cosmic rune!"); //works } GrandExchange.close(); //////////////////////////////////////////////////////////////////////////// GrandExchange.open(); //works Sleep.sleep(1000, 1500); //works GrandExchange.openBuyScreen(0); //works Sleep.sleep(500, 1000); //works if(GrandExchange.isBuyOpen()) { log("Buy window is open"); //works GrandExchange.buyItem("Cosmic rune", 10, 92); // does not work - only if the last searched item is cosmic rune it will buy it. log("Should buy cosmic rune using .buyitem"); // works } GrandExchange.close(); //////////////////////////////////////////////////////////////////////////// GrandExchange.open(); //works Sleep.sleep(1000, 1500); //works GrandExchange.buyItem("Cosmic rune", 2, 93); //opens buy screen, but still doesn't buy the item. If the last searched item is cosmic rune it will buy, buy only after that. GrandExchange.close(); //works
    9. Hey, I need some help with my scripting journey using DreamBot. My script and most of my scripts will probably use GE at some point, but the problem is I can't buy anything from GE! It is possible to sell, but not buy! I am 100% sure that I am not restricted or something. I looked up docs ( Yes, i know that this exist, but it does not work... 😕 -> GrandExchange.buyItem("Cosmic rune", 100, 95)), tried everything (even typing in searchbar using Keyboard to serach for an item - because GrandExchange.searchItem("Cosmic rune") does not work either) and nothing worked - except the fact that that I can buy something only if the item that I want to buy is the last bought item. Can you please provide me some snippets that contain buying items from GE? If you have some snippets that contain selling I would be happy too, but the point is buying. Thanks in advance for repsonse! And sorry for my english
    ×
    ×
    • Create New...

    Important Information

    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.