Jump to content

inventory.interact question


Recommended Posts

Posted

Sorry about all the spam lately, I'm just really wanting to learn. I'm trying my best to do this on my own, but its just the random shit that stumps me. 

 

Anyways, can anyone explain to me why my interacts aren't working? 

 

Example: http://imgur.com/UTTqY8u

 

The script clearly knows where the cursor is suppose to be, but why isn't it "interacting" with it?

 

Like I said in my second sentence I'm stumped.

 

Any help is appreciated. 

Posted

 

this, or:

inventory.interact(action, item);

 

 

inventory.getItem("Basket").interact("Fill");

 

This is where I went wrong:

 public boolean basket() throws InterruptedException {
        if (inventory.interact(this.basketsName, "Basket")) {
            if (inventory.interact(this.basketsName, "Fill"));

Did you try writing the interact options? ie Use,Fill,Drink,etc

 

There are usually scripters/people versed in scripting in the Chat Box during all times of the day you should go there

 

And thank you for that advice. I'll ask the chat box next time so I stop flooding the forum with simple questions. My apologies.

Posted

This is where I went wrong:

 public boolean basket() throws InterruptedException {
        if (inventory.interact(this.basketsName, "Basket")) {
            if (inventory.interact(this.basketsName, "Fill"));

And thank you for that advice. I'll ask the chat box next time so I stop flooding the forum with simple questions. My apologies.

if (inventory.interact(this.basketsName, "Basket")) {

There is no action option "Basket". That is why the mouse only hovers it. Also, do a null check before interacting with items.

Item item = inventory.get 
if item != null
item.interact("Fill")
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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