HiscoreReply

class HiscoreReply : OutgoingGameMessage

Hiscore reply is a packet used in the enhanced clients to do lookups of nearby players, to find out their stats and rankings on the high scores. This packet is sent as a response to the hiscore request packet.

Constructors

Link copied to clipboard
constructor(requestId: Int, response: HiscoreReply.HiscoreReplyResponse)

Types

Link copied to clipboard

A failed hiscore reply would be sent when a lookup could not be performed successfully. The client will read a string for a reason when this occurs.

Link copied to clipboard
sealed interface HiscoreReplyResponse
Link copied to clipboard
class HiscoreResult(val id: Int, val rank: Int, val result: Int)
Link copied to clipboard
class SuccessfulHiscoreReply(val statResults: List<HiscoreReply.HiscoreResult>, val overallRank: Int, val overallExperience: Long, val activityResults: List<HiscoreReply.HiscoreResult>) : HiscoreReply.HiscoreReplyResponse

A successful hiscore reply, transmitting all the stat and activity results. It is worth noting that because the packet isn't used, it is not entirely certain that the naming of these properties is accurate. These are merely a guess based on the hiscore json syntax.

Properties

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

the id of the request that was made.

Link copied to clipboard

the response to be written to the client.

Functions

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