Jump to content

InateractionEvent


matthew2112

Recommended Posts

Could someone give me an example of this interaction event? I am struggling with what goes bewtteen the (). Also can i use a string such as an entity and action between here or do i have to create an event for each entity/action? I am doing it this way because i want to set the camera to not move during the interaction with each entity. InteractionEvent(Bot bot, Position position, java.lang.String... actions). Thanks in Advance

Link to comment
Share on other sites

RS2Object ditch = getObjects().closest("Wilderness Ditch");
InteractionEvent interact = new InteractionEvent(ditch, "Cross");

if (ditch.isVisible()){
	execute(interact);
}

 

This a tip for all new to coding and want to see exaples of obscure code with bad docs.

  1. goto github.com
  2. login
  3. type the string of the package you are using your case "import org.osbot.rs07.event.InteractionEvent;" put osbot after 
  4.  click Code its under Repositories
  5. Look at the code and try to make it work.
  6. If you cant find anything try searching other keywords or using something else or rethink logic

 

Edited by Nbacon
Error
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...