MsgNpcInfo

This message is sent by the game server to the client to spawn an NPC into the world.

The lookface of an NPC is as calculated:

Lookface = Type * 10 + Direction

The type portion of the lookface can be found in npc.ini. This file is also what determines the name of the NPC.

Table of Contents

Patch 4267

Message Definition

☑️ Assumed (Observed) - CoFuture + Soul

PosTypeNameDescriptionExample
0UInt16MsgSizeSize of the message18
2UInt16MsgTypeType of message2030
4UInt32IDUnique identifier1
8UInt16XX coordinate of the NPC320
10UInt16YY coordinate of the NPC460
12UInt16RoleThe role the NPC plays1
14UInt16LookfaceThe type and direction of the NPC10
16UInt16SortSort flags or action type the NPC performs1
18NetStringPackerStringsOptional name of the NPC

NPC Sort Flags

☑️ Assumed (Observed) - CoFuture + Soul

ValNameDescriptionStrings
0NONENPC that responds as dialog
1TASKNPC that opens a window in the client
2RECYCLENPC that is dynamically relocated