Hi! I found this script by uDev in an old folder of mine and decided to update it and modify it also.
Original by uDev (Huge thx to him for going through and adding each spell!). The script is self explanatory it gives you the spell for you class that you should get at that level, like cataclysm does.
Updated by me for the latest TrinityCore with Eluna 3.3.5a and I've also added a check for unconventional leveling.
For example if a GM level'd a player from 1 - 20 many spells would be missed in the original. In this version all spells between old and new level will be added.
There also seemed to be a couple of missed spells so I've put them in also.
If you think I've missed a spell let me know plz.
Pastebin : http://pastebin.com/LrE7P3VT
Edit : Updated with some more spells which were missing/typo
Edit : Updated to be more efficient / fix some small bugs
Edit: Updated to be EVEN MORE efficient ;), & credits given in comment to those who contributed. Thanks to Foereaper, Grandelf and slp13at420