interactNpc

open fun interactNpc(npcName: String, action: String): Boolean

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


open fun interactNpc(npcId: Int, action: String): Boolean

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