I have this same problem like @ian12, have someone fixed this issue?
EDIT:
I changed it a bit, now works for me after this changes:
From:
local skill, offline = getCreatureStorage(cid, storage.skill), os.time() - math.max(getPlayerLastLogin(cid), logout)
to:
local skill, offline =...