AFK request nba2k19

Titan One general support. Questions, firmware update, feature request.

AFK request nba2k19

Postby what a chach » Sun Apr 28, 2019 12:35 am

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?
User avatar
what a chach
Corporal
Corporal
 
Posts: 5
Joined: Sun Feb 10, 2019 6:27 pm

Re: AFK request nba2k19

Postby J2Kbr » Mon Apr 29, 2019 10:45 am

The script below perform the described actions. :smile0517: 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
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: AFK request nba2k19

Postby what a chach » Mon Apr 29, 2019 8:11 pm

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.

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.
User avatar
what a chach
Corporal
Corporal
 
Posts: 5
Joined: Sun Feb 10, 2019 6:27 pm


Return to Titan One Device

Who is online

Users browsing this forum: Lost Gypsy and 71 guests