there must be another way to do this, but this one is simpler than I currently thought.
try
in UserExCommand.cpp
Bind(L".delevel", UserExDelevelCommand); //add bind command
//add function
bool UserExDelevelCommand(User *pUser, wstring params)
{
guard;
if(pUser->ValidUser()){
this problem happens after npserver restarts by itself.
the npc disappear and come back, when they come back you can't interact with any of them.
you should block port 2002 or the port you configured for your ncpserver.
this is a bug.
to make sure this happens, you should check the npserver log and see if the npcs are out of range.