Jump to content

Tbfletching: Option Responding


TheBrohman

Recommended Posts

Hello!

So I am stuck while making my own fletching script. I need help on how I would make it make the item I have defined. (In this ocasion I want it to make arrowshafts. This is my code so far.

 if (bank.isOpen()) {
            sleep(random(700, 800));
            if (!inventory.contains("Knife")) {
                bank.withdraw("Knife", 1);
                bank.withdrawAll(1511);
            }
            bank.depositAllExcept("Knife");
            sleep(random(800, 1000));
            bank.withdrawAll(1511);
            sleep(random(600, 900));
            bank.close();

        } else {
            objects.closest(BANK_BOOTH_ID).interact("Bank");
        }

        if (inventory.contains("Knife") && inventory.contains(1511)) {
            inventory.interact("Knife", 1511);
           
  }

And on here ^^ Idk how to make it respond to the actions coming up.

Edited by TheBrohman
Link to comment
Share on other sites

You will need to grab the parent/child ID's of the interface and then interact with it using the following:
 

interfaces.get(PARENT_ID).getChild(CHILD_ID).interact("Interaction String");

Make sure you check for the interface being visible before interacting with it happy.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...