InteractionEvent Test captures
#1 http://i.imgur.com/gbmWnFt.gif
#2 http://i.imgur.com/1PBTzfI.gif
Code:
//if not in combat
NPC dude = getNpcs().closest(npc -> npc != null && npc.hasAction("Attack"));
InteractionEvent event = new InteractionEvent(dude, "Attack");
execute(event);