Jump to content

Can't interact with inventory?


atoo

Recommended Posts

It worked fine until this morning, dont know whats wrong.

Did not change any code and script has been running for 8+hours before this happend.

Something in the api broken?

if(getInventory().contains("Maple logs") && getInventory().contains("Knife"))
    			{
    				if(getBank().isOpen())
    					getBank().close();
    				
    				if(!getBank().isOpen())
    				{
    					if(!getWidgets().isVisible(270, 16))
    					{
    						log("Did we get here?"); //this gets printed out 
    						
    						if(!getInventory().isItemSelected())
    							getInventory().interact("Use", "Knife");
    						
    						if(getInventory().isItemSelected())
    							getInventory().interact("Use", "Maple logs");
    						
    						sleep(1000);
    					}
    					else
    					{
    						getKeyboard().typeString("3");
    					}
    				}
    			}

Edit:

Webwalking doesn't seem to work either the fuck lol

 

seems like the api is outdated or smth (I guess)

[ERROR][Bot #1][11/10 10:40:30 AM]: Error executing event : org.osbot.rs07.event.WebWalkEvent@6a336838
java.lang.IllegalStateException: Could not identify minimap interface child! Please report to developers.
	at org.osbot.rs07.api.util.GraphicUtilities.IIiIIiiIIIiI(xl:613)
	at org.osbot.rs07.api.util.GraphicUtilities.getMinimapScreenCoordinate(xl:441)
	at org.osbot.rs07.api.map.Position.isOnMiniMap(mh:694)
	at org.osbot.rs07.event.WebWalkEvent.execute(yg:545)
	at org.osbot.rs07.event.EventExecutor$2.run(ij:60)
	at org.osbot.rs07.event.EventExecutor.execute(ij:176)
	at org.osbot.rs07.script.MethodProvider.execute(bn:715)
	at org.osbot.rs07.api.Walking.webWalk(qg:227)
	at mainScript.onLoop(mainScript.java:99)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ro:134)
	at java.lang.Thread.run(Unknown Source)

 

Edited by atoo
Link to comment
Share on other sites

20 minutes ago, RandomInc said:

For the maple logs and knife problem, try using conditional sleeps. 

After each interaction, you check for animations, or inventory items. 

After opening and closing the bank, you check for that etc. 

 

For the webwalking, I haven't working with that yet. Can't help you

 

Link to comment
Share on other sites

48 minutes ago, RandomInc said:

For the maple logs and knife problem, try using conditional sleeps. 

After each interaction, you check for animations, or inventory items. 

After opening and closing the bank, you check for that etc. 

 

For the webwalking, I haven't working with that yet. Can't help you

I already check for animation in another part of My code, as for the code it was working B4.

osbot client is obv outdated or something.

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