Grr. There's still a slight problem with this feature.
It does the proper processing when a player zones in, FillSpawnStruct(&ns, Client) gets called for the particular client entering the zone, so they get the customized version of the NPC's lastname.
However, any new NPC spawn packets that get sent to the client after zoning in don't get processed in the same way... the same spawn packet gets sent to all clients in the zone, so NPCs that spawn after zoning in, via normal respawn cycles or #repop, won't have the customized lastname.
I'll have to do a little more work before this is 100% functional.
I'll probably have to move the processing into the QueuePacket() function, and things will get a little more complicated.
|