Jump to content

Make .interact(string) right click?


Xellic

Recommended Posts

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!

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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