Jump to content

IronMan Grounditem pickup


Vogelbekdier

Recommended Posts

Making a Hillgiant script for my F2P HCIM that loots and buries Big Bones. Is there any way I can have the Script only loot my own drops as currently my loot method will spam click other players their bones and keeps toggling the message I can't pick up other players drops.

current method I'm using:

```

private void loot() throws InterruptedException{
GroundItem bigBones = getGroundItems().closest("Big bones");
if (bigBones != null && !myPlayer().isAnimating() && !getInventory().isFull()) {
    bigBones.interact("Take");
    log("Got some bones.");
    new ConditionalSleep(2500) {
        @Override
        public boolean condition() {
            return getInventory().contains(;
        ;

 

Also if my inventory already contains Big Bones and I want to loot more big bones what conditional sleep can I use to prevent my player from spam-clicking the Bones?

The current method only works for the first bone it picks up:

new ConditionalSleep(2500) { @Override public boolean condition() { return getInventory().contains("Big bones");

Link to comment
Share on other sites

A combination of:

On 5/27/2019 at 11:52 PM, Neanel said:

Get the position of the monster you are interacting with & loot items only on that position, this won't always be correct but it's a start.

For a fail safe use the onMessage method to check if the loot isn't yours I guess.

 

And a looting API that remembers which items it couldn't pick up so as to avoid them completely.

Edited by liverare
Link to comment
Share on other sites

  • 3 months later...

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