Jump to content

Make .interact(string) right click?


Recommended Posts

Posted

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!

Posted (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 by josedpay

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...