setVisibleOps

fun setVisibleOps(flag: Int)

Sets the visible ops flag of this NPC to the provided value.

Parameters

flag

the bit flag to set. Only the 5 lowest bits are used, and an enabled bit implies the option at that index should render. Note that this extended info block is not transient and will be transmitted to future players as well.


fun setVisibleOps(op1: Boolean, op2: Boolean, op3: Boolean, op4: Boolean, op5: Boolean)

Marks the provided right-click options as visible or invisible.

Parameters

op1

whether to render op1

op2

whether to render op2

op3

whether to render op3

op4

whether to render op4

op5

whether to render op5