your welcome i try i am new to most of this but trying to learn as much as i can by testing things looking at changes in scripts reading them to see how they all function etc.Ah, thanks for that gif that was wonderful. So I was able to find the problem, it wasn't actually just when closing the book it was that any time the gump was reloaded it would clip off 2 entries so before long you end up with an empty book.
The problem was in the GetSkills function. I was using num_skills to get all the "valid skills" (skills less than the cap + the bonus) but I forgot that I update that number and so it progressively grabs fewer and fewer skills. I changed it to just loop over the server defined list of skills instead and everything appears to be working now. Will update the version shortly; good catch and let me know if you find anything else
This has a steep learning curve but i am willing to give it a shot and learn as much as i can from this experience as i am having fun every step of the way!
Thank you for your time and quick fixes if i find anything else i will be sure to let you and post here.