View Full Version : Learn Spells on Level up.

11-24-2013, 05:47 AM
Hey! so i recently started using trinity and Eluna and started converting some of my scripts to eluna over from arcemu's lua engine and i am releasing my Learn Spells on level up Scripts.

it checks what class you are. than checks for your level. if you have spells for that level it teachs them you to. it doesn't teach quest spells or talents.

Warrior - http://pastebin.com/XqJgqLM2
Pally - http://pastebin.com/ifJMkW1b
Hunter - http://pastebin.com/vrVbdzHB
Druid - http://pastebin.com/MWyn2J4e
Warlock - http://pastebin.com/n8qmvxT4
Mage - http://pastebin.com/cKttMYyc
Priest - http://pastebin.com/izMjHHjb
Shaman - http://pastebin.com/9XuvWmTi
Rogue - http://pastebin.com/w6VM6uXg
Death Knight - http://pastebin.com/bDEwmw8C

tested and working on the newest compile of trinity with Eluna

11-24-2013, 05:51 AM
The scripts could be simplified and cleaned up by using an array, but thanks for sharing this with us nonetheless.

11-24-2013, 12:41 PM
I am rather sure using multiple scripts from this release will collide since the functions use the same name and are global.
This can be fixed by making the functions local.

It would be suggested to make use of tables :)

10-19-2015, 03:35 PM
Would love this for latest TC Eluna.

And also set together. All in one.