Teleport

class Teleport : IncomingGameMessage

Teleport packets are sent in multiple possible scenarios:

  1. The player is a J-Mod and has the 'Control' and 'Shift' keys held down while scrolling with their mouse wheel - the player will be teleported up or down a level.

  2. The player is a J-Mod using an Orb of Oculus - the teleport packet will be sent repeatedly every 50 client cycles (20ms/cc) while the player's coordinate doesn't align up with the oculus camera center coordinate.

  3. The player is a J-Mod and has the 'Control' and 'Shift' keys held down while clicking on the world map - the player will teleport to the coordinate they clicked on in the world map.

Constructors

Link copied to clipboard
constructor(oculusSyncValue: Int, x: Int, z: Int, level: Int)

Properties

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

the height level to teleport to

Link copied to clipboard

if the player is in orb of oculus (scenario 2 above), this value is equal to the last value the server transmitted with the net.rsprot.protocol.game.outgoing.prot.GameServerProt.OCULUS_SYNC packet, or 0 if the packet was never transmitted/player is not using orb of oculus.

Link copied to clipboard
val x: Int

the absolute x coordinate to teleport to

Link copied to clipboard
val z: Int

the absolute z coordinate to teleport to

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