Как добавить XP и атаку NPC?

хочу сделать, что-бы NPC нападал и умирал

Translation: I want to make NPCs attack and die

It would help if you could put your questions through a translator first, then all of the information in the forum will be available via a single language internet search to everyone.

You need to look into the following topics to get the behaviour you want:

DDPathfinder (truedarkdev) - navmesh for NPCs
NPC AI Kit (standardcombo) - NPC controller
Combat Dependencies (standardcombo) - required for NPC AI Kit

You may want to look at: