interactNpc

static boolean interactNpc(String npcName, String action)

Interacts with the best nearby npc using interact according to org.tribot.script.sdk.antiban.PreferredTargetSelector

Return

true if interacted with successfully, false otherwise

Parameters

npcName

the npc name

action

the npc action

static boolean interactNpc(int npcId, String action)

Interacts with the best nearby npc using interact according to org.tribot.script.sdk.antiban.PreferredTargetSelector

Return

true if interacted with successfully, false otherwise

Parameters

npcId

the npc id

action

the npc action