in what way does it not work? if it doesnt appear in your spells area you needa make a spell, then make an item called a magic book or somthing and get an icon and that and change the type of item to "spell" then to your right there will be somthing what lets you select a spell to put in the book, select a spell then click Ok or apply or what ever, then go to map editer > attribates > Item then a pop up will…. pop up? then you select an item, then you select your book containing your spell, then place it, then click save, then it should appear, walk over it and press enter, then go to inventory then double lcick your book and it'll say you learnt a spell, then you go to spells, double click it, select an NPC, and hit Insert and Vwala!