July 11, 201510 yr hey idk what causes this issue but once a while my script fails to drop the log and instead clicks use, and then it just stops droping the logs and moves onto different task, the method im using to drop the logs is inventory.dropAll(treeType);
July 11, 201510 yr It's an API problem. I believe it's fixed in the upcoming stable versions. The bounding boxes for the Drop and Use options intersect (just by 1px), so it will sometimes accidentally use it instead of dropping it.
July 11, 201510 yr alright thanks for the heads up You could fix this simply: if (getInventory().isItemSelected()) getMouse().click(false); //continue loop If an item is selected, it will left click. This will remove an item from being selected
July 11, 201510 yr You could fix this simply: if (getInventory().isItemSelected()) getMouse().click(false);//continue loopIf an item is selected, it will left click. This will remove an item from being selected Or getInventory().deselectItem()
July 11, 201510 yr Or getInventory().deselectItem() That works too, but IMO it's better to rely as little as possible on these smaller "on top" methods, if you will.
July 11, 201510 yr That works too, but IMO it's better to rely as little as possible on these smaller "on top" methods, if you will. That all depends how likely things will break. However, due to the question I think those "On top" methods will suit him better. Since that way he will learn things about the API. Nothing personal too, I get your point.
July 11, 201510 yr Or getInventory().deselectItem() it will deselect by clicking on the inventory tab. Rather then on the item itself
July 11, 201510 yr it will deselect by clicking on the inventory tab. Rather then on the item itself Didn't check that part. could be indeed.
Create an account or sign in to comment