for axample add this func in xAcademy and generate condition currentlvl >= 40 then call python function exitBot (use manager for auto restart bot and give wrong char name for xAcademy plugin)
ps:this code just kill phbot process if u login with client add first condition disconnect.