Code: Select all
-- Too many tries, logout
if( settings.profile.options.MAX_UNSTICK_TRIALS > 0 and
player.Unstick_counter > settings.profile.options.MAX_UNSTICK_TRIALS ) then
cprintf(cli.yellow, language[55],
player.Unstick_counter,
settings.profile.options.MAX_UNSTICK_TRIALS ); -- max unstick reached
if( settings.profile.options.LOGOUT_WHEN_STUCK ) then
player:logout();
else
-- pause or stop ?
player.Sleeping = true; -- go to sleep
--stopPE(); -- pause the bot
-- we should play a sound !
player.Unstick_counter = 0;
end
end;Code: Select all
-- Too many tries, logout
if( settings.profile.options.MAX_UNSTICK_TRIALS > 0 and
player.Unstick_counter > settings.profile.options.MAX_UNSTICK_TRIALS ) then
cprintf(cli.yellow, language[55],
player.Unstick_counter,
settings.profile.options.MAX_UNSTICK_TRIALS ); -- max unstick reached
if( settings.profile.options.LOGOUT_WHEN_STUCK ) then
player:logout();
end
if( settings.profile.options.RECALL_WHEN_STUCK ) then
player:cast("RECALL:); -- may need yrest for loading or waitload function
loadPaths("settings.profile.options.PATH_AFTER_RECALL);
end
-- pause or stop ?
player.Sleeping = true; -- go to sleep
--stopPE(); -- pause the bot
-- we should play a sound !
player.Unstick_counter = 0;
end;