For case 1, there are 2 possibilities.
- wheres nonexistent on the selected map 1 @ ge_st [very hard to be that]
- npc is poorly developed, applying runtime error.
Try to erase the entire script and just create the sprite, then slowly insert it to discover the error.
Case 2, Automated mob generation of castles is part of emperium's native war manager.
Check the names of the castles that are enabled on your manager.
Preferably remove the automatic generation of mob from it.