interactObj

open fun interactObj(objName: String, action: String): Boolean

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

Return

true if interacted with successfully, false otherwise

Parameters

objName

the object name

action

the object action


open fun interactObj(objId: Int, action: String): Boolean

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

Return

true if interacted with successfully, false otherwise

Parameters

objId

the object id

action

the object action