@Elzivir, thanks for bringing that to my attention.
for you, I made the newest version that should also work with old ERA https://dropmefiles.com/B85Hc
(on my dropbox link is actually a little outdated version, that you got)
New is that now Ring and Misc slots are also taken into account. So no more garbage equipment for AI in these slots.
@Berserker, thanks for helping out, I was away this week.
General note: This script has long ago been merged in my AI and Neutral Difficulty Mod which requires ERA 2.9x and will soon be re-released. My collaboration with Daemon was very productive in that regard