MsgGemEmbed

This message is sent by the client to request embedding or removing a gem in an item.

⚠️ WARNING

Ensure that the identifier of the gem is a valid gem. It's possible that a modified game client can send a message containing a gem ID that's the same as the item identifier. In that case, a poorly validated server could add a gem based on the item type (could be deterministic).

Table of Contents

Patch 4267

Message Definition

☑️ Assumed (Soul)

PosTypeNameDescriptionExample
0UInt16MsgSizeSize of the message20
2UInt16MsgTypeType of message1027
4UInt32UserHero ID of the player1000001
8UInt32ItemIdentifier for the item1
12UInt32GemIdentifier for the gem2
16UInt16PosGem socket to embed into or remove from1
18UInt16ActionEmbed or remove the gem0

Action Type

☑️ Assumed (Soul)

enum GemEmbedActionType {

    GEM_EMBED_ACTION_EMBED = 0;
    GEM_EMBED_ACTION_REMOVE = 1;
}