» Wed Jun 20, 2012 8:09 am
The FormID's first 2 digits are from load order you need to find the value for this by checking what index that esp is loaded as.
NPC's generally(as in when not forced by script) will only cast Restore Health, Shields and Wards on themselves and will cast Destruction, Conjuration and a couple Illusion Based offensive spells, Scripted spells will never be cast by NPC's unless you also give it one of these other effects or force the npc to cast it with scripting.
NOTE: NPC's will sometimes casts other spell types but its generally very rare I have NPC Mages I gave nothing but spells that did not conform to these guidelines and they end up being Melee Mages in game when i disable their scripting, and almost never cast any of the 20 odd spell options I gave them for testing.