Yes, create your own event like this:
private boolean interactionEvent(NPC monster, String action) {
InteractionEvent ev = new InteractionEvent(monster, action);
ev.setOperateCamera(false);
ev.setWalkTo(true);
execute(ev);
return ev.hasFinished() && !ev.hasFailed();
}