OpNpc

class OpNpc : IncomingGameMessage

OpNpc messages are sent when a player clicks one of the five primary options on a NPC. It should be noted that this message will not handle 'OPNPC6', as that message requires different arguments.

Constructors

Link copied to clipboard
constructor(index: Int, controlKey: Boolean, op: Int)

Properties

Link copied to clipboard
open override val category: ClientProtCategory
Link copied to clipboard

whether the control key was held down, used to invert movement speed

Link copied to clipboard
val index: Int

the index of the npc that was clicked

Link copied to clipboard
val op: Int

the option clicked, ranging from 1 to 5(inclusive).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String