MsgNpc
This message is sent to the game server to interact with an NPC. This is mostly used to activate an NPC for a shop or dialog, but can also be used to place and delete player furniture. This same feature can be used from PM menus to add and delete any NPC using the client as an editor.
Table of Contents
Patch 4267
Message Definition
☑️ Assumed (Observed) - CoFuture + Soul
Pos | Type | Name | Description | Example |
---|---|---|---|---|
0 | UInt16 | MsgSize | Size of the message | 16 |
2 | UInt16 | MsgType | Type of message | 2031 |
4 | UInt32 | ID | Unique identifier | 1 |
8 | UInt32 | Data | Option or coordinate of the action | 10 |
12 | UInt16 | Event | How to process the message | 0 |
14 | UInt16 | Role | The RoleType of the NPC | 0 |
NPC Event Type
☑️ Assumed (Soul)
🔶 Response data
Val | Name | Description | Recipient | ID | Data |
---|---|---|---|---|---|
0 | ACTIVATE | Activates an NPC for dialog | Server | NPC ID | |
1 | ADD_NPC | Adds an NPC to the map | Server | NPC ID | |
2 | LEAVE_MAP | Deletes an NPC from the map | Client | NPC ID | |
3 | DEL_NPC | Requests an NPC be deleted | Server | NPC ID | |
4 | CHANGE_POS | Change the position of the NPC | Both | NPC ID | LOW: X HIGH: Y 🔶 |
5 | LAY_NPC | Notifies the client to start placing | Client | Lookface |