Jump to content

[Dev Build] OSBot 2.4.122/23 - InteractionEvent, WebWalking, Antiban


Alek

Recommended Posts

Update @Alek

Compiled in .122 & script ran in .122

Interaction fails when it is a GroundItem

using .interact("Take");.

Issue: it will simply hover over the GroundItem

Confirmed working in .121!

Code:

private Predicate<GroundItem> suitableLoot = g ->
            Constants.lootList.contains(g.getName()) &&
                    context.getMap().realDistance(g) <= 8;
                                                          
final Optional<GroundItem> lootable = context.getGroundItemStream().filter(suitableLoot).findAny();
if (lootable.isPresent()){
    if (lootable.get().interact("Take")){
      //stuff
    }
}

 

  • Like 1
Link to comment
11 minutes ago, Chris said:

Update @Alek

Compiled in .122 & script ran in .122

Interaction fails when it is a GroundItem

using .interact("Take");.

Issue: it will simply hover over the GroundItem

Confirmed working in .121!

Code:


private Predicate<GroundItem> suitableLoot = g ->
            Constants.lootList.contains(g.getName()) &&
                    context.getMap().realDistance(g) <= 8;
                                                          
final Optional<GroundItem> lootable = context.getGroundItemStream().filter(suitableLoot).findAny();
if (lootable.isPresent()){
    if (lootable.get().interact("Take")){
      //stuff
    }
}

 

Yep I'm aware of this already (I had updated the OP with this bug a few hours ago). I'm working on a fix, which is actually pretty difficult because there's a lot of back-end API missing for it. 

Edit: It effects RS2Object as well, not sure if that bug is more prevalent because stacks aren't common.

  • Like 4
Link to comment
6 hours ago, Alek said:

Yep I'm aware of this already (I had updated the OP with this bug a few hours ago). I'm working on a fix, which is actually pretty difficult because there's a lot of back-end API missing for it. 

Edit: It effects RS2Object as well, not sure if that bug is more prevalent because stacks aren't common.

Umm i don't think so it effects RS2Objects cause i am using them and working much better than before, can i ask how it does effect RS2Objects?

Link to comment
  • Alek locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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