MessageGame

class MessageGame : OutgoingGameMessage

Message game packet is used to send a normal game message in the player's chatbox.

Game message types (note: names without asterisk are official from a leak):

| Id  |                Type                |
|-----|:----------------------------------:|
| 0 | chattype_gamemessage |
| 1 | chattype_modchat |
| 2 | chattype_publicchat |
| 3 | chattype_privatechat |
| 4 | chattype_engine |
| 5 | chattype_loginlogoutnotification |
| 6 | chattype_privatechatout |
| 7 | chattype_modprivatechat |
| 9 | chattype_friendschat |
| 11 | chattype_friendschatnotification |
| 14 | chattype_broadcast |
| 26 | chattype_snapshotfeedback |
| 27 | chattype_obj_examine |
| 28 | chattype_npc_examine |
| 29 | chattype_loc_examine |
| 30 | chattype_friendnotification |
| 31 | chattype_ignorenotification |
| 41 | chattype_clan* |
| 43 | chattype_clan_system* |
| 44 | chattype_clan_guest* |
| 46 | chattype_clan_guest_system* |
| 90 | chattype_autotyper |
| 91 | chattype_modautotyper |
| 99 | chattype_console |
| 101 | chattype_tradereq |
| 102 | chattype_trade |
| 103 | chattype_chalreq_trade |
| 104 | chattype_chalreq_friendschat |
| 105 | chattype_spam |
| 106 | chattype_playerrelated |
| 107 | chattype_10sectimeout |
| 108 | chattype_welcome* |
| 109 | chattype_clan_creation_invitation* |
| 110 | chattype_clan_wars_challenge* |
| 111 | chattype_gim_form_group* |
| 112 | chattype_gim_group_with* |

Constructors

Link copied to clipboard
constructor(type: Int, name: String?, message: String)
constructor(type: Int, message: String)

Properties

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

the message itself to render in the chatbox

Link copied to clipboard
val name: String?

the name of the target player who is making a request. This property is only for messages such as "X wishes to trade with you.", where there is a player at the other end that is making some sort of request. Upon interacting with these chat messages, the client will invoke the respective op-player packet if it can find that player in local player's high resolution list of players. It is important to note, however, that only opplayer 1, 4, 6 and 7 will ever be fired in this manner.

Link copied to clipboard
val type: Int

the type of the message to send (see table above)

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