I wrote a small plugin with the idea to assign certain type and number of NPCs to certain parts of the map. And then the plugin will create all the NPCs for me with all their configurations etc by using HumanNPC. I.E. Noobish NPCs at waterwells, AK Chads at Launch, etc... The idea is to create 1 NPC and basically run it through a paper press to create various copies of it all over the map. (Which sames me time to configure/edit each one manually).
It is still far from complete, and has a lot of work left. Currently I am struggling to find a way to pass the configurations that I have setup in my plugin (basically the maxdistance, hitchance, etc...) over to the newly created NPC.
I used the Hook for CreateNPC, however I do not see a similar hook for editing the NPCs. Is there a function or a hook I can call to update these NPCs? I will be updating the NPCs directly after creating them so I have access to the BasePlayer object that was returned from the CreateNPC hook.
Note: At this point I do not see the need to save the Base Player objects as my plugin will basically only run once a month or when updating npcs. Additionally, I also need a method to wipe NPCs from the Human NPC config. But that will be a task for another day.
Looking forward to your advise.