Psvxe Posted June 6, 2015 Share Posted June 6, 2015 Well, since I just can't think straight at the moment it's pretty hard for me to figure out how to click by slot. inventory.interact(ctx.inventory.getSlot(arg0);Doesn't work. (Which is no surprise) Any other way? I need to click the first 4 items in inventory. However the interact method is too slow for me. That's why I'm trying just to click the slot instead of the item itself. Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted June 6, 2015 Share Posted June 6, 2015 Hmm... I think you could do this mouse.move(inventory.getMouseDestination(SLOT_ID)); mouse.click(false); Quote Link to comment Share on other sites More sharing options...
Psvxe Posted June 6, 2015 Author Share Posted June 6, 2015 (edited) Hmm... I think you could do this mouse.move(inventory.getMouseDestination(SLOT_ID)); mouse.click(false); Going to write a block to see if this works better :3 I'll edit the post soon. Thanks in advance! EDIT: Alright, it's on steroids now so I suppose it's working thanks man! 600k/hour script :3 Edited June 6, 2015 by Psvxe Quote Link to comment Share on other sites More sharing options...
Tom Posted June 6, 2015 Share Posted June 6, 2015 Nah man bad ways, just do Item item = inventory.getItemInSlot(apparent slot number); item.interact("drop"); or someshit 1 Quote Link to comment Share on other sites More sharing options...
Psvxe Posted June 7, 2015 Author Share Posted June 7, 2015 Nah man bad ways, just do Item item = inventory.getItemInSlot(apparent slot number); item.interact("drop"); or someshit This is slower. Quote Link to comment Share on other sites More sharing options...
Tom Posted June 8, 2015 Share Posted June 8, 2015 This is slower. What makes you think that? By defining an item variable, you will have a lot less repetition overall if you have to interact with the same item more than once Quote Link to comment Share on other sites More sharing options...
Psvxe Posted June 8, 2015 Author Share Posted June 8, 2015 What makes you think that? By defining an item variable, you will have a lot less repetition overall if you have to interact with the same item more than once Which I solved by making sure it doesn't reclick if a slot contains a id. And I don't think it. I tried it. Quote Link to comment Share on other sites More sharing options...