Xellic Posted December 29, 2014 Share Posted December 29, 2014 Hi, How would I go about making two items interact with each other in my inventory? For example, making a knife interact with a log. I have inventory.getItem(knife).interact("Use"); but how would I make the client click the log? Link to comment Share on other sites More sharing options...
Novak Posted December 30, 2014 Share Posted December 30, 2014 (edited) inventory.interact("Use",log); Edited December 30, 2014 by Novak Link to comment Share on other sites More sharing options...
Xellic Posted December 30, 2014 Author Share Posted December 30, 2014 (edited) inventory.interact("Use",log); This doesn't seem to work for me..there is no use option when you have already clicked the knife.. Edited December 30, 2014 by Xellic Link to comment Share on other sites More sharing options...
Novak Posted December 30, 2014 Share Posted December 30, 2014 script.inventory.interact("Use", "Knife"); MethodProvider.sleep(MethodProvider.random(200, 400); script.inventory.interact("Use", log); it works fine Link to comment Share on other sites More sharing options...
Brown Posted December 30, 2014 Share Posted December 30, 2014 Hmm if "Use" doesn't work I'm thinking if you have an item selected and try to click another item instead of "Use" it will be something like "Use knife ->" but knife is a different color so you might need to work with that as well. If you want to be lazy you could try null. Link to comment Share on other sites More sharing options...
Joseph Posted December 30, 2014 Share Posted December 30, 2014 I got you let me think Link to comment Share on other sites More sharing options...
Joseph Posted December 30, 2014 Share Posted December 30, 2014 public boolean interactItems(String item1, String item2) throws InterruptedException { if (inventory.getItem(item1).interact("use")) { sleep(700); return inventory.getItem(item2).interact(); // } return false; } try that out for size. If you leave the String...actions empty then the client forces a left click. 1 Link to comment Share on other sites More sharing options...