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
    • Best Sellers

    • Latest Products

    • Featured

    • Topics

    • Posts

      • The issue is that it does not fully comprehend how conditional sleeping should be used in this particular case. You could spent 10s of hours talking with it about it but won't magically understand how it should work since you don't know yourself since you personally don't know how to code. So in general this is unsolvable for you. If you could tell exactly how to do it programaticlly then sure it might solve it for you, but if you can't do it yourself then no.
      • Whats the problem? Im the one who guided it and told it specifically how everything should work. And if u know how to talk to chatgpt and spend alot of time guiding it the whole way with every little detail. You get a good script, ur reasoning is it has never played the game. Ive played the game ? Im telling it what to code for hours.
      • Nope, I can still see that the problem is still here. It didn't changed the problematic part.
      • Explanation with Code Snippets Order Placement: The script places an order using the buyItem method. Here’s the relevant part of the code:   java CopyEdit private void buyItem(String itemName, int price, int quantity) { GrandExchange.open(); if (GrandExchange.isOpen()) { GrandExchange.offer(OfferType.BUY, itemName, quantity, price); log("Buying " + quantity + " " + itemName + " at " + price + " each."); randomMouseClick(); sleepUntil(() -> { Offer offer = GrandExchange.getOffer(itemName); return offer != null && offer.getState() == OfferState.FULFILLED; }, maxOrderTime); if (GrandExchange.isReadyToCollect()) { GrandExchange.collect(); log("Collected full order of " + itemName); } else { log("Order for " + itemName + " was not fulfilled in time."); } } else { log("Failed to open Grand Exchange for buying."); } } Key Points: The script opens the Grand Exchange and places a buy order. It waits for the order to be fulfilled or until the maxOrderTime expires. Waiting for Fulfillment: The sleepUntil method is used to monitor the order status:   java CopyEdit sleepUntil(() -> { Offer offer = GrandExchange.getOffer(itemName); return offer != null && offer.getState() == OfferState.FULFILLED; }, maxOrderTime); Key Points: This code checks if the order is fulfilled within the specified time frame. If another player undercuts the price, the order may not be fulfilled. Cooldown Period: The cooldown period for buying an item starts only after the order is fulfilled. The following code manages the cooldown:   java CopyEdit if (remainingLimit > 0) { buyItem(itemName, data.buy, Math.min(buyQuantity, remainingLimit)); // Buy up to the remaining limit orderPlacedTime = System.currentTimeMillis(); lastBuyPrices.put(itemName, data.buy); // Set cooldown for the item itemCooldowns.put(itemName, System.currentTimeMillis() + 4 * 60 * 60 * 1000); // 4-hour cooldown } else { log("Item limit reached for " + itemName + ". Cannot buy more."); } Key Points: The cooldown starts after a successful buy order. If the item cannot be purchased due to undercutting or reaching the item limit, it will not enter cooldown until a successful purchase occurs. Conclusion The script effectively places buy orders, waits for fulfillment, and manages cooldown periods based on item limits. If another player undercuts the price and the order is not fulfilled, the script will continue to check for other opportunities instead of remaining idle. This combination of logic ensures that the script remains functional and responsive to the dynamic nature of the Grand Exchange market. If there are any further questions or concerns, we’re happy to clarify!
      • no your just wrong  , the script is incorrect  and unusable . GPT  is wrong about so much of what is said in those messages NOTHING was proven to be correct . Just because gpt SAID something doesn't make it true  . we arent being rude , your just not listening to us and instead are running to GPT for answers. here are your answers https://dreambot.org/javadocs/ https://dreambot.org/guides/ please take some time out of your day to look at them .
    • Popular Contributors

    • Feedback Statistics

      • Positive
        11511
      • Neutral
        22
      • Negative
        156
      • Total Positive
        99%
    ×
    ×
    • 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.