Created an NPC, but can't remove itSolved

Hi there,

I have been playing around with the NPCs and have been able to create numerous NPCs with kits fine.
However, I created one NPC using the NPC_ADD command, and the NPC appeared as expected, but as soon as I tried to modify any of the properties for the NPC (name, hostility, etc) I was told "This is not an NPC".  I am now unable to remove the NPC with the NPC_REMOVE command because it isn't an NPC.  the ENT KILL command doesn't work on it either, and now I have a nude NPC standing around on a stage that I cant get rid of.
Any idea how I can remove this unwanted NPC so I can add another?

Thanks,

Dave.

Hi again,

I tried restarting the server, hoping that HumanNPC would identify the broken NPC and remove it for me as it did that to all the scientists when I first launched the plugin.  But it didnt work.
Still trying to find a way to remove this entity.

Cheers,

Dave.
Check the data file.  Hopefully you named your other NPCs.  If so, the unnamed one should be it.  Save a copy and carefully delete the section of the file from { to },:


    {
      "userid": NUMBER,
      "displayName": "",
...
        "Arrow": 0.0
      }
    },​

Hi again,

The server wipe took care of that issue.  It did happen once more when I tried to spawn an NPC onto a horse.  All I did was /NPC_LIST and found the ID of the one I hadn't named and then just used the remove command with that ID and the NPC disappeared.

Cheers,

Dave.

Locked automatically