ObjEnabledOps

class ObjEnabledOps : ZoneProt

Obj enabled ops is used to change the right-click options on an obj on the ground. This packet is currently unused in OldSchool RuneScape. It works by finding the first obj in the stack with the provided id, and modifying the right-click ops on that. It does not verify quantity.

Constructors

Link copied to clipboard
constructor(id: Int, opFlags: Byte, xInZone: Int, zInZone: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard
Link copied to clipboard
val id: Int

the id of the obj that needs to get its ops changed

Link copied to clipboard

the right-click options to set enabled on that obj. Use the net.rsprot.protocol.game.outgoing.util.OpFlags helper object to create these bitpacked values which can be passed into it.

Link copied to clipboard
open override val protId: Int
Link copied to clipboard

the x coordinate of the obj within the zone it is in, a value in range of 0 to 7 (inclusive) is expected. Any bits outside that are ignored.

Link copied to clipboard

the z coordinate of the obj within the zone it is in, a value in range of 0 to 7 (inclusive) is expected. Any bits outside that are ignored.

Functions

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