Jump to content

InateractionEvent


Recommended Posts

Posted

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

Posted (edited)
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

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...