Yeah, multiple bones will get difficult. You could file_load the mdl, then look at the bytes if you really want to do this by script but this probably won't be done in an hour, probably not even a day.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual