OpNpcT

class OpNpcT : IncomingGameMessage

OpNpcT messages are fired whenever an interface component is targeted on a NPC, which, as of revision 204, includes using items from the player's inventory on NPCs - the OpNpcU message was deprecated.

Constructors

Link copied to clipboard
constructor(index: Int, controlKey: Boolean, selectedCombinedId: CombinedId, selectedSub: Int, selectedObj: 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 the component was used on

Link copied to clipboard

the bitpacked combination of selectedInterfaceId and selectedComponentId.

Link copied to clipboard

the component id being used on the npc

Link copied to clipboard

the interface id of the selected component

Link copied to clipboard

the obj on the selected subcomponent, or -1 if none exists

Link copied to clipboard

the subcomponent of the selected component, or -1 of none exists

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