matthew2112 Posted May 27, 2020 Posted May 27, 2020 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
Nbacon Posted May 28, 2020 Posted May 28, 2020 (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. goto github.com login type the string of the package you are using your case "import org.osbot.rs07.event.InteractionEvent;" put osbot after click Code its under Repositories Look at the code and try to make it work. If you cant find anything try searching other keywords or using something else or rethink logic Edited May 28, 2020 by Nbacon Error