API GetCurrentLevelSpells

Arguments
For the level you put in, it returns the ID of the spell that will become available.

Returns
The ID of the spell you will learn at that level.

Example
/dump GetCurrentLevelSpells(32) returns 1="130"