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

Patch 5065

Message Definition

❓ Unverified

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

NPC Sort Flags

❓ Unverified

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

Patch 5517

Message Definition

❓ Unverified

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

NPC Sort Flags

❓ Unverified

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