Xellic Posted March 1, 2015 Posted March 1, 2015 How can I interact with an object by right clicking instead of just clicking it? I've heard multiple times before to avoid the use of while loops. How would I then, for example, replicate this code without the use of a while loop? while(condition e.g. myPlayer().isAnimating()) { if(getDialogues().isPendingContinuation()) { sleep(random(600, 1000)); dialogues.clickContinue(); break; } } Thanks!
Joseph Posted March 1, 2015 Posted March 1, 2015 (edited) How can I interact with an object by right clicking instead of just clicking it? I've heard multiple times before to avoid the use of while loops. How would I then, for example, replicate this code without the use of a while loop? while(condition e.g. myPlayer().isAnimating()) { if(getDialogues().isPendingContinuation()) { sleep(random(600, 1000)); dialogues.clickContinue(); break; } } Thanks! dont use while loops please if (myPlayer().isAnimating()) { if (dialogues.clickContinue()) { sleep(random(600, 1000)); break; } } interact(string) is an instance of interactionEvent. depending on what the action is. It will right click if it needs to. So your request is already there Edited March 1, 2015 by josedpay
Extreme Scripts Posted March 1, 2015 Posted March 1, 2015 It will automatically right click if the option isn't the first in the list.
Joseph Posted March 1, 2015 Posted March 1, 2015 I want to force it to right click. there a method within the mouse class