This sounds very much like besieged from ffxi, that was a a lot of fun whilst also affecting the in game world

(Npcs could be captured, you would lose benefits such as the teleport npc)

The only way to get them back was to invade the enemy stronghold after to rescue them