Jump to content

inventory.interact question


Malii

Recommended Posts

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. 

Link to comment
Share on other sites

 

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.

Link to comment
Share on other sites

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
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

  • Recently Browsing   0 members

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