//Pokemon Sword and Shield AFK Watt Glitch Farm by Poonz, rewritten by R0NUT
//Switch game to local connection in Y-Comm
//Have a beam already ready and farmable
//Make sure to start beam with wishing piece and not a random one
//Start bot when its glowing and ready to collect watts
//Left bumper to start and stop bot
int time;
int toggle;
main {
if(event_press(SWITCH_L)) toggle=!toggle; // on/off
if(toggle) {
combo_run(start);
}
}
combo w{
wait(time);
}
combo a{
set_val(SWITCH_A, 100);
wait(time);
set_val(SWITCH_A, 0);
wait(600);
}
combo aq{
set_val(SWITCH_A, 100);
wait(time);
set_val(SWITCH_A, 0);
wait(300);
}
combo h{
set_val(SWITCH_HOME, 100);
wait(time);
set_val(SWITCH_HOME, 0);
wait(500);
}
combo hl{
set_val(SWITCH_HOME, 100);
wait(time);
set_val(SWITCH_HOME, 0);
wait(1000);
}
combo d{
set_val(SWITCH_DOWN, 100);
wait(time);
set_val(SWITCH_DOWN, 0);
wait(100);
}
combo u{
set_val(SWITCH_UP, 100);
wait(time);
set_val(SWITCH_UP, 0);
wait(100);
}
combo r{
set_val(SWITCH_RIGHT, 100);
wait(time);
set_val(SWITCH_RIGHT, 0);
wait(100);
}
combo start{
//collect watts
time = 100;
call(aq);
call(aq);
call(aq);
call(a);
// invite others
call(a);
time = 1000;
call(w);
time = 100;
// iterate one in game day
call(h);
call(d);
call(r);
call(r);
call(r);
call(r);
call(a);
time = 1600;
call(d);
time = 100;
call(a);
call(d);
call(d);
call(d);
call(d);
call(a);
call(d);
call(d);
call(a);
call(r);
call(u);
time = 800;
call(r);
time = 100;
call(a);
call(hl);
call(a);
// quit search
time = 500;
call(d);
time = 100;
call(a);
time = 1000;
call(w);
time = 100;
call(a);
time = 4000;
call(w);
}