Vogelbekdier Posted May 27, 2019 Share Posted May 27, 2019 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"); Quote Link to comment Share on other sites More sharing options...
Neanel Posted May 27, 2019 Share Posted May 27, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...
Juggles Posted May 27, 2019 Share Posted May 27, 2019 Yes as stated above store the position of the NPC and only grab items of that monster once you kill it. Now if someone else drops an item on your NPC position it will screw it up but you can do onMessage to then skip that item. Quote Link to comment Share on other sites More sharing options...
liverare Posted May 29, 2019 Share Posted May 29, 2019 (edited) 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 May 29, 2019 by liverare Quote Link to comment Share on other sites More sharing options...
shinjincai Posted September 8, 2019 Share Posted September 8, 2019 Did you have a jar you need us to test? Looking to try this one out! Quote Link to comment Share on other sites More sharing options...