# Wander
if ($config{'attackAuto'} && $config{'attackAuto_wander'} && $ai_seq[0] eq ""){
if (timeOut(\%{$timeout{'ai_wander'}})){
$dest_add{'x'} = int(rand(64) - 32);
$dest_add{'y'} = int(rand(64) - 32);
if (distance(\%dest_add) != 0){
$dest_vector{'x'} = $dest_add{'x'} / distance(\%dest_add);
$dest_vector{'y'} = $dest_add{'y'} / distance(\%dest_add);
}
$timeout{'ai_wander'}{'time'} = time;
}else{
moveAlongVector(\%dest, \%{$chars[$config{'char'}]{'pos_to'}}, \%dest_vector, int(rand(4) + 3));
move($dest{'x'}, $dest{'y'});
}
}
if ($ai_seq[0] eq "move") {

config.txt => attackAuto_wander 1
timeouts.txt => ai_wander 4