Jump to content

OSB2 using inventory item on entity


Swizzbeat

Recommended Posts

jk, .interact(null);

Wouldn't that throw an NPE? :p

 

My issue involves both clicking on the inventory item (which it doesn't do for some reason even though it will move the mouse over the item) and clicking on the object itself.

why you no use custom interact methods?

I'm not wasting my time making custom things for this shit bot anymore.

Link to comment
Share on other sites

Wouldn't that throw an NPE? tongue.png

 

My issue involves both clicking on the inventory item (which it doesn't do for some reason even though it will move the mouse over the item) and clicking on the object itself.

I'm not wasting my time making custom things for this shit bot anymore.

No NPE's here. Osbot has it built so if string is null it picks the first one. It's in their doc's somewhere

see http://osbot.org/osbot2_api/org/osbot/rs07/api/util/ItemContainer.html#interactWithNameThatContains(java.lang.String, java.lang.String...)

Edited by dreamliner
Link to comment
Share on other sites

No NPE's here. Osbot has it built so if string is null it picks the first one. It's in their doc's somewhere

see http://osbot.org/osbot2_api/org/osbot/rs07/api/util/ItemContainer.html#interactWithNameThatContains(java.lang.String, java.lang.String...)

This was the first thing I tried when 2.14 came our and since 2.14 .interact(null) throws an NPE.

  • Like 1
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...