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

PosTypeNameDescriptionExample
0UInt16MsgSizeSize of the message16
2UInt16MsgTypeType of message2031
4UInt32IDUnique identifier1
8UInt32DataOption or coordinate of the action10
12UInt16EventHow to process the message0
14UInt16RoleThe RoleType of the NPC0

NPC Event Type

☑️ Assumed (Soul)

🔶 Response data

ValNameDescriptionRecipientIDData
0ACTIVATEActivates an NPC for dialogServerNPC ID
1ADD_NPCAdds an NPC to the mapServerNPC ID
2LEAVE_MAPDeletes an NPC from the mapClientNPC ID
3DEL_NPCRequests an NPC be deletedServerNPC ID
4CHANGE_POSChange the position of the NPCBothNPC IDLOW: X HIGH: Y 🔶
5LAY_NPCNotifies the client to start placingClientLookface