Jump to content

Can't interact with inventory?


Recommended Posts

Posted (edited)

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

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