creating an npc - GameRevision/GWLP-R GitHub Wiki

Members

P021_SpawnAgent
P074_NpcProperties
P075_NpcModel
P097_NpcUpdateWeapons
P101_AddNpcToPartysearch
P143_NpcName
P147_UpdateGenericValueInt
P154_UpdatePublicProfessions
P228_UpdateVitalStats
P343_ItemProperties

Spawning an NPC

when spawning an NPC packets come in this order:

optional
P074_NpcProperties
P075_NpcModel
if this is the first time you spawn this NPC. if you have multiple copies of the same NPC these two packets are only needed once. you have to give the NPC an NpcID there thats needed in the spawn packet afterwards.
optional
P143_NpcName
you can give one copy of an NPC a specific name with this packet if you dont want to leave the name of the original defined in P074_NpcProperties
optional
P147_UpdateGenericValueInt
give NPC health etc. if needed. multiple of these packets possible.
optional
P154_UpdatePublicProfessions
self explaining. not really needed tough i think
optional
P101_AddNpcToPartysearch
experimental please confirm. if your NPC is a henchman you can add it to the partysearch with this packet.
optional
P228_UpdateVitalStats
erm… ?
P021_SpawnAgent the key in spawning an NPC. use the NpcID from P074_NpcProperties to indicate what NPC you want to spawn.
optional
P343_ItemProperties
P097_NpcUpdateWeapons
if this NPC has weapons one or several items may be specified here and equiped with one single P097_NpcUpdateWeapons to finish the spawn.
⚠️ **GitHub.com Fallback** ⚠️