I looked at the code and added this line it stops the error but now the bot may loop when player class is -1.
Rock you may need to check the code in player.lua near line 168 to re-detect the class or possible loop if player.Class gets stuck at -1. This seems to fix the crashing when it is -1.
Code: Select all
-------Settings.lua---------
1030 function settings.loadSkillSet(class)
1031 -- return if player not initialized yet.
1032 if not player then return end
if player.Class1 == -1 then return end -- stop the player.Class1 invalid error fix.
in player.lua
-----Change line 887 from ----
skill.LastCastTime.low = skill.LastCastTime.low + casttime*1000 * bot.GetTimeFrequency;
----------------to-----------------
skill.LastCastTime = skill.LastCastTime + (casttime*1000 * bot.GetTimeFrequency);