MsgAction
This message is received by the game server or game client as a general action request. The server responds to MsgAction with either a specific action message (such as a spawn that was missing or with item details) or with the MsgAction message itself (such as for the login messages). The client may or may not respond with the MsgAction in response to a server MsgAction message.
MsgAction is used for a variety of actions, such as configuring the client during login, changing maps, requesting inventory and friends lists, setting the hero's location on login, jumping, and more.
Table of Contents
Patch 4267
Message Definition
☑️ Assumed (Soul)
Pos | Type | Name | Description | Example |
---|---|---|---|---|
0 | UInt16 | MsgSize | Size of the message | 28 |
2 | UInt16 | MsgType | Type of message | 1010 |
4 | UInt32 | System Time | Milliseconds of system uptime | 1579535985 |
8 | UInt32 | Hero ID | Unique identifier for the character | 1000000 |
12 | UInt16 | X | X coordinate of the action or hero | 320 |
14 | UInt16 | Y | Y coordinate of the action or hero | 460 |
16 | UInt32 | Direction | Action direction | 0 |
20 | UInt32 | Data | Payload or target identifier | 0 |
24 | UInt32 | Action | How to processes the message | 0 |
Action Type
☑️ Assumed (Soul)
🔶 Response data
Val | Name | Description | Recipient | ID | Data |
---|---|---|---|---|---|
124 | CHANGE_DIR | Change facing direction | Server | Hero ID | |
126 | CHANGE_EMOTION | Change emoting action | Server | Hero ID | Action |
130 | CHANGE_MAP | Change map (portal) | Server | Hero ID | |
137 | ENTER_MAP | Request hero location | Server | Hero ID | Map ID 🔶 |
138 | GET_ITEMS | Load items on login | Server | Hero ID | |
139 | GET_FRIENDS | Load friends on login | Server | Hero ID | |
141 | LEAVE_MAP | Remove role entity from map | Client | Role ID | |
142 | JUMP | Role entity jump | Server | Role ID | LOW: X HIGH: Y |
146 | UP_LEVEL | Notify new level | Server | Hero ID | |
147 | XP_CLEAR | Notify clear XP | Server | Hero ID | |
148 | REVIVE | Request revive | Server | Hero ID | |
149 | DEL_ROLE | Delete hero | Server | Hero ID | |
150 | GET_WEAPON_SKILLS | Load skills on login | Server | Hero ID | |
151 | GET_MAGIC | Load spells on login | Server | Hero ID | |
152 | SET_PK_MODE | Set PK mode | Server | Hero ID | Mode |
153 | GET_SYN_ATTR | Get guild info | Server | Hero ID | |
154 | GHOST | Notify death | Server | Hero ID | |
155 | SYNCHRO | Synchronize screen | Server | Hero ID | |
156 | QUERY_FRIEND_INFO | Get friend info | Server | Hero ID | Target ID |
157 | QUERY_LEAVE_WORD | Get offline messages | Server | Hero ID | |
158 | CHANGE_FACE | Change teammate or own avatar | Both | Hero ID | Face |
159 | MINE | Mine with pickaxe | Server | Hero ID | |
160 | TEAM_MEMBER_POS | Teammate position | Client | Hero ID | LOW: X HIGH: Y |
161 | QUERY_PLAYER | Get player spawn | Server | Hero ID | |
162 | ABORT_MAGIC | Cancel magic or chargeup | Server | Hero ID | |
164 | MAP_ARGB | Set game map ARGB | Client | ARGB | |
166 | QUERY_MEMBER | Get team member info | Server | Hero ID | Target ID |
167 | CREATE_BOOTH | Create market booth | Both | Hero ID | LOW: X HIGH: Y |
168 | SUSPEND_BOOTH | Pause market booth (unused) | Server | Hero ID | |
169 | RESUME_BOOTH | Resume market booth | Both | Hero ID | LOW: X HIGH: Y |
170 | DESTROY_BOOTH | Remove market booth | Server | Hero ID | |
172 | POST_CMD | Run client command | Client | Hero ID | Command |
173 | QUERY_EQUIPMENT | Get player's equipment | Server | Hero ID | |
174 | ABORT_TRANSFORM | Cancel transformation | Server | Hero ID | |
176 | LANDING | Cancel flight | Server | Hero ID | |
177 | GET_MONEY | Pick up money | Client | Hero ID | Amount |
179 | ENEMY_INFO | Get enemy info | Server | Hero ID | |
181 | KICKBACK | Rubberband to coord | Client | Hero ID | LOW: X HIGH: Y |
182 | DROP_MAGIC | Remove magic type | Client | Hero ID | Magic Type |
183 | DROP_SKILL | Remove weapon skill | Client | Hero ID | Weapon Skill Type |
184 | SOUND_EFFECT | Monster sound at coord | Client | Hero ID | Monster Type |
186 | POST_DIALOG | Open a dialog window | Client | Hero ID | Dialog ID |
Patch 5017
Message Definition
☑️ Assumed (Observed) - Redux
Pos | Type | Name | Description | Example |
---|---|---|---|---|
0 | UInt16 | MsgSize | Size of the message | 24 |
2 | UInt16 | MsgType | Type of message | 1010 |
4 | UInt32 | System Time | Milliseconds of system uptime | 1579535985 |
8 | UInt32 | Hero ID | Unique identifier for the character | 1000000 |
12 | UInt32 | Data | Payload or target identifier | 0 |
16 | UInt16 | X | X coordinate of the action or hero | 320 |
18 | UInt16 | Y | Y coordinate of the action or hero | 460 |
20 | UInt16 | Direction | Action direction | 0 |
22 | UInt16 | Action | How to processes the message | 0 |
Action Type
☑️ Assumed (Observed) - COPSv6
🔶 Response data
Val | Name | Description | Recipient | ID | Data |
---|---|---|---|---|---|
74 | GET_POSITION | Request hero location | Server | Hero ID | Map ID 🔶 |
75 | GET_ITEMS | Load items on login | Server | Hero ID | |
76 | GET_FRIENDS | Load friends on login | Server | Hero ID | |
77 | GET_WEAPON_SKILLS | Load skills on login | Server | Hero ID | |
78 | GET_MAGIC | Load spells on login | Server | Hero ID | |
79 | CHANGE_DIR | Change facing direction | Server | Hero ID | |
81 | CHANGE_EMOTION | Change emoting action | Server | Hero ID | Emotion |
85 | CHANGE_MAP | Change map (portal) | Server | Hero ID | |
86 | ENTER_MAP | Add entity to map | Server | Role ID | Map ID |
92 | UP_LEVEL | Notify new level | Server | Hero ID | |
93 | XP_CLEAR | Notify clear XP | Server | Hero ID | |
94 | REVIVE | Request revive | Server | Hero ID | |
95 | DEL_ROLE | Delete hero | Server | Hero ID | |
96 | SET_PK_MODE | Set PK mode | Server | Hero ID | Mode |
97 | GET_SYN_ATTR | Get guild info | Server | Hero ID | |
99 | MINE | Mine with pickaxe | Server | Hero ID | |
101 | TEAM_LEAD_POS | Get team leader position | Client | Hero ID | Game Map Type |
102 | QUERY_PLAYER | Get player spawn | Server | Hero ID | |
104 | MAP_ARGB | Set game map ARGB | Client | ARGB | |
105 | QUERY_MEMBER | Get team member info | Server | Hero ID | Target ID |
106 | TEAM_MEMBER_POS | Teammate position | Client | Hero ID | LOW: X HIGH: Y |
108 | KICKBACK | Rubberband to coord | Client | Hero ID | LOW: X HIGH: Y |
109 | DROP_MAGIC | Remove magic type | Client | Hero ID | Magic Type |
110 | DROP_SKILL | Remove weapon skill | Client | Hero ID | Weapon Skill Type |
111 | CREATE_BOOTH | Create market booth | Both | Hero ID | LOW: X HIGH: Y |
112 | SUSPEND_BOOTH | Pause market booth (unused) | Server | Hero ID | |
113 | RESUME_BOOTH | Resume market booth | Both | Hero ID | LOW: X HIGH: Y |
114 | DESTROY_BOOTH | Remove market booth | Server | Hero ID | |
116 | POST_CMD | Run client command | Client | Hero ID | Command |
117 | QUERY_EQUIPMENT | Get player's equipment | Server | Hero ID | |
118 | ABORT_TRANSFORM | Cancel transformation | Server | Hero ID | |
120 | LANDING | Cancel flight | Server | Hero ID | |
121 | GET_MONEY | Pick up money | Client | Hero ID | Amount |
123 | ENEMY_INFO | Get enemy info | Server | Hero ID | |
126 | POST_DIALOG | Open a dialog window | Client | Hero ID | Dialog ID |
130 | QUERY_LEAVE_WORD | Get offline messages | Server | Hero ID | |
132 | LEAVE_MAP | Remove role entity from map | Client | Role ID | |
133 | JUMP | Role entity jump | Server | Role ID | LOW: X HIGH: Y |
137 | GHOST | Notify death | Server | Hero ID | |
138 | SYNCHRO | Synchronize screen | Server | Hero ID | |
140 | QUERY_FRIEND_INFO | Get friend info | Server | Hero ID | Target ID |
142 | CHANGE_FACE | Change teammate or own avatar | Both | Hero ID | Face |
162 | PATHFINDING | Trigger pathfinding to X, Y | Client | Hero ID | |
163 | ABORT_MAGIC | Cancel magic or chargeup | Server | Hero ID |