interactObj

static boolean interactObj(String objName, String action)

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

static boolean interactObj(int objId, String action)

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