I tried to run a script (elfdaily2 ) to level alts, and it worked fine yesterday, croaked with the above message today. I suspect that a new skill my scout elf got at level 6 causes a nil return in the code below (the error appears to happen on the if condition line, most likely because its null from the first line?):
Code: Select all
local skill_from_db = database.skills[_skillname]; -- read skill parameters from database
-- check is skill has an aslevel in skills.xml
if ( skill_from_db.aslevel ~= nil and
skill_from_db.aslevel > player.Level ) then
cprintf(cli.yellow, "You need at least level %d to levelup skill %s. Your level is %d.\n",
skill_from_db.aslevel, _skillname, player.Level );
return false;
end