Jump to content

Welcome to DreamBot!

Download for Free

Supercharge Your Bots

Run unlimited bots today using DreamBot's Covert Mode and
stay more protected.

Upgrade Now
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!
Sign in to follow this  

Redeem a bond

Recommended Posts

    public Boolean redeemBond() {
        if (getGrandExchange().isOpen()) {
            sleepUntil(() -> getGrandExchange().close(), delay(4000));
        sleepUntil(() -> getInventory().interact(BOND,"Redeem"), delay(3000));
        WidgetChild single = getWidgets().getWidgetChild(66,7);
        sleepUntil(() -> single.interact("1 Bond"), delay(3000));
        WidgetChild confirm = getWidgets().getWidgetChild(66,24);
        sleepUntil(() -> confirm.interact("Confirm"), delay(3000));
        return Boolean.TRUE;

Assumes the bond is in the inventory.

Tested once, but don't see why it wouldn't work unless the buttons are extra laggy. A better way of doing this might be to sleepUntil (66,24) has "Confirm" as text, but I didn't think of this before testing it on the single bond I had at the time (gotta save gpz for annoying weekly-fluctuating resource prices).

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...