Package-level declarations

Types

Link copied to clipboard
data object ClearEntities : OutgoingGameMessage

Clear entities packet is used to clear any NPCs and world entities from the currently active world. This furthermore sets the active world back to root. It is important to note that the net.rsprot.protocol.game.outgoing.info.npcinfo.NpcInfo.clearEntities, net.rsprot.protocol.game.outgoing.info.worldentityinfo.WorldEntityInfo.clearEntities and net.rsprot.protocol.game.outgoing.info.playerinfo.PlayerInfoProtocol.update functions must be called in conjunction with this packet. Additionally, this packet must be called before the respective net.rsprot.protocol.game.outgoing.info.npcinfo.NpcInfoProtocol.update, net.rsprot.protocol.game.outgoing.info.worldentityinfo.WorldEntityProtocol.update and net.rsprot.protocol.game.outgoing.info.playerinfo.PlayerInfoProtocol.update functions.

Link copied to clipboard
class SetActiveWorld(val worldType: SetActiveWorld.WorldType) : OutgoingGameMessage

Set active world packet is used to set the currently active world in the client, allowing for various world-specific packets to perform changes to a different world than the usual root. Packets such as zone updates, player info, NPC info are a few examples of what may be sent afterwards.