AFK request nba2k19
3 posts
• Page 1 of 1
AFK request nba2k19
Can someone write me a script that uses a combination of buttons to start like hold left trigger and press down on the d-pad and then presses the a button repeatedly for about 6 minutes and then does the combo Y Up A and then repeats?
-
what a chach - Corporal
- Posts: 5
- Joined: Sun Feb 10, 2019 6:27 pm
Re: AFK request nba2k19
The script below perform the described actions. To start press VIEW + A on the controller.
- Code: Select all
int toggle;
int msecs, secs, mins;
main {
// a combination of buttons to start
if(get_val(XB1_VIEW) && event_press(XB1_A)) {
toggle = !toggle;
if(toggle) {
msecs = 0;
secs = 0;
mins = 0;
combo_run(First);
} else {
combo_stop(First);
combo_stop(Second);
combo_stop(Third);
}
}
if(toggle && !combo_running(First)) {
// then presses the a button repeatedly for about 6 minutes
msecs = msecs + get_rtime();
if(msecs >= 1000) {
msecs = msecs - 1000;
secs = secs + 1;
if(secs >= 60) {
secs = secs - 60;
mins = mins + 1;
if(mins < 6) {
combo_run(Second);
} else {
combo_run(Third);
}
}
}
}
}
combo First {
set_val(XB1_VIEW, 0);
set_val(XB1_A, 0);
wait(500);
// hold left trigger
set_val(XB1_LT, 100);
wait(100);
// and press down on the d-pad
set_val(XB1_LT, 100);
set_val(XB1_DOWN, 100);
wait(100); wait(100);
}
combo Second {
set_val(XB1_A, 100);
wait(100);
set_val(XB1_A, 0);
wait(90);
set_val(XB1_A, 0);
}
combo Third {
// then does the combo Y Up A
set_val(XB1_Y, 100);
wait(100); wait(100);
set_val(XB1_UP, 100);
wait(90); wait(100);
set_val(XB1_A, 100);
wait(100);
// and then repeats
msecs = 0;
secs = 0;
mins = 0;
combo_run(First);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: AFK request nba2k19
Thanks for the reply I realized after I posted it didnt need to be that complicated, and just the y up a combo would work.
did this and got it working. Thanks again.
- Code: Select all
int toggle;
int msecs, secs, mins;
main {
// a combination of buttons to start
if(get_val(XB1_VIEW) && event_press(XB1_A)) {
toggle = !toggle;
if(toggle) {
msecs = 0;
secs = 0;
mins = 0;
} else {
combo_stop(Third);
}
}
else {
combo_run(Third);
}
}
combo Third {
// then does the combo Y Up A
set_val(XB1_Y, 100);
wait(100); wait(100);
set_val(XB1_UP, 100);
wait(90); wait(100);
set_val(XB1_A, 100);
wait(100);
// and then repeats
msecs = 0;
secs = 0;
mins = 0;
}
did this and got it working. Thanks again.
-
what a chach - Corporal
- Posts: 5
- Joined: Sun Feb 10, 2019 6:27 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 97 guests