On the last 4 lines os SlimeTrainer.lua SCRIPT_VERSION 1.0.0 you can find:
elseif killmother.logout and not $battlesigned then
logout() waitping()
closeclient()
os.exit()
end
But my character didn't logout even after killing the slime mother. As far as I know the function elseif does no exist (I studied C and matlab programming, but I'm new with this bot), then I'll try to do the following modification:
if killmother.logout and not $battlesigned then
logout(1) waitping(1)
closeclient(1)
os.exit(1)
end
end
I added another end because it was showing an error without it.
Please, correct me if I'm wrong.