NBA 2K 20 help with scripts thread

Gtuner IV general support. Operation, questions, updates, feature request.

NBA 2K 20 help with scripts thread

Postby THEVET » Thu Sep 12, 2019 3:39 pm

I noticed that a lot of the NBA 2K scripts are basically used with another USB dongle from another company but wanted to bring those scripts over here because they are more custom and you are getting more thend what's going on in this area with the Titan one and type two.If you have the skills to fix these scripts so that they work with both Titan one and two please help keep this thread going by fixing them and saving some of us some money from having to go out and purchase another company's dongle
User avatar
THEVET
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Thu Sep 12, 2019 3:19 pm

Re: NBA 2K 20 help with scripts thread

Postby THEVET » Thu Sep 12, 2019 3:54 pm

Up first badge glitch for the PS4


Code:
Code: Select all
//Posted by dricon, a member of the community in the device Forums - https://device.com/forums
 
//Posted : Wednesday 11th of September, 2019 1:05 CST6CDT 
 
/*
made by
 
██████╗ ██████╗ ██╗ ██████╗ ██████╗ ███╗   ██╗
██╔══██╗██╔══██╗██║██╔════╝██╔═══██╗████╗  ██║
██║  ██║██████╔╝██║██║     ██║   ██║██╔██╗ ██║
██║  ██║██╔══██╗██║██║     ██║   ██║██║╚██╗██║
██████╔╝██║  ██║██║╚██████╗╚██████╔╝██║ ╚████║
╚═════╝ ╚═╝  ╚═╝╚═╝ ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝
 
---AFK BADGE GLITCH---
 
===WHAT DOES IT DO????===
This script is made for the badge glitch. It has an infinite loop which will
constantly repeat the badge glitch while afk.
 
===HOW IS THIS DONE???===
It essentially copies the file from your usb over to the ps4 system storage.
It then loads the game and plays it through until you get your xp and badges
and closes afterwards and repeats.
 
===IMPORTANT INFORMATION TO RUN SMOOTH===
1. Make sure the career file you copy over is the only file on the usb
2. This only chooses the first career file on the list from the nba2k menu
   so make sure the file you're trying to rep up is not the second one
   because this won't work.
 
===POSSIBLE ISSUES===
1. If your career closes out prematurely (CLOSES BEFORE GETTING XP)
then your game mode is outplaying the loop time specifically set for it.
This script is programmed for a maximum of a 5 minute game left which should
be more than enough. If this does happen to be a longer game by an average then
YOU can adjust it by going to line 219 of this script. You will see a line of
code that say's "call(ONEMINUTEANDCROSS)" There is 4 of them which allocates 4 minutes
of game time before closing out the app. Adding another line of this will give it
an extra minute etc...
 
2. Not an issue exactly but you might wonder if the script is working because of the
delay you might see with it not moving in the 2k menu or even after the career game.
Be patient and give it time to playout, The script should run for 6 minutes before
everything finishes and then loop. SO base it off how long it takes.
 
3.If you get taken to another game mode then the script is somehow ****ed for you and
it's running too fast. Just flick me a message.
 
===INSTRUCTIONS===
1. Make sure the nba2k20 app is closed
2. Highlight the nba2k20 app
3. Press L3 to run the script
4. Don't touch it, keep controller done, pressing another button will **** up the loop
5. Press R3 to turn it off or just unplug the device / change the slot number.
*/

 
 
int toggle;
 
main {
    if (get_val(PS4_L3)) toggle = TRUE; // Turn it on when you press L3
    if (get_val(PS4_R3)) toggle = FALSE; // Turn it off when you press R3
    if (toggle) combo_run(cmb);
    else combo_stop(cmb);
}
 
//CORE
combo cmb{
call(BEGINNING)
call(STARTINGCAREER)
call(GAMETIME)
 
//CLOSE APP AFTER COMBO
set_val(PS4_PS, 100);
wait(1500);
set_val(PS4_PS, 0);
wait(1000);
 
set_val(PS4_UP, 100);
wait(200);
set_val(PS4_UP, 0);
wait(800);
 
set_val(PS4_CROSS, 100);
wait(200);
set_val(PS4_CROSS, 0);
wait(1000);
 
set_val(PS4_CROSS, 100);
wait(200);
set_val(PS4_CROSS, 0);
wait(1500);
}
 
//Starts from PSN and loads the first save file from USB onto PS4 then starts the game
combo BEGINNING {
    set_val(PS4_UP, 100);
    wait(200);
    set_val(PS4_UP, 0);
    wait(200);
    set_val(PS4_RIGHT, 100);
    wait(800);
    set_val(PS4_RIGHT, 0);
    wait(200);   
    set_val(PS4_LEFT, 100);
    wait(200);
    set_val(PS4_LEFT, 0);
    wait(200);
    set_val(PS4_CROSS, 100);
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(2000);
    set_val(PS4_DOWN, 100);//1
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(400);
    set_val(PS4_DOWN, 100);//2
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(400);
    set_val(PS4_DOWN, 100);//3
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(400);
    set_val(PS4_DOWN, 100);//4
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(400);
    set_val(PS4_DOWN, 100);//5
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(400);
    set_val(PS4_DOWN, 100);//6
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(400);
    set_val(PS4_DOWN, 100);//7
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(400);
    set_val(PS4_DOWN, 100);//8
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(400);
    set_val(PS4_CROSS, 100);
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(400);
    set_val(PS4_DOWN, 100);
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(200);
    set_val(PS4_DOWN, 100);
    wait(200);
    set_val(PS4_DOWN, 0);
    wait(200);
    set_val(PS4_CROSS, 100);//cross 1
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(500);
    set_val(PS4_CROSS, 100);//cross 2
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(500);
    set_val(PS4_CROSS, 100);//cross 3
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(500);
    set_val(PS4_CROSS, 100);//cross 4
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(500);
    set_val(PS4_RIGHT, 100);
    wait(600);
    set_val(PS4_RIGHT, 0);
    wait(600);
    set_val(PS4_CROSS, 100);
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(2000);
    set_val(PS4_CROSS, 100);
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(2000);
 
    set_val(PS4_PS, 100);
    wait(200);
    set_val(PS4_PS, 0);
    wait(2000);
 
    set_val(PS4_CROSS, 100);
    wait(200);
    set_val(PS4_CROSS, 0);
    wait(2000);
}
 
//Starts the MyCareerFile, picks first one.
combo STARTINGCAREER {
call(ONEMINUTE)
wait(1000);
set_val(PS4_RIGHT, 100);
wait(200);
set_val(PS4_RIGHT, 0);
wait(600);
set_val(PS4_RIGHT, 100);
wait(200);
set_val(PS4_RIGHT, 0);
wait(600);
 
set_val(PS4_CROSS, 100);
wait(200);
set_val(PS4_CROSS, 0);
wait(1000);
 
set_val(PS4_CROSS, 100);
wait(200);
set_val(PS4_CROSS, 0);
wait(1000);
}
 
combo GAMETIME {
call(ONEMINUTEANDCROSS)
call(ONEMINUTEANDCROSS)
call(ONEMINUTEANDCROSS)
call(ONEMINUTEANDCROSS)
}
 
//TIME VARIABLES=======================================
 
//***ONE MINUTE + HOLDING CROSS INTERMITTENTLY***
combo ONEMINUTEANDCROSS {
//12 seconds
wait(4000);
wait(4000);
wait(4000);
 
//Holds X for 4 seconds then lets go for 4
set_val(PS4_CROSS, 100);
wait(4000);
set_val(PS4_CROSS, 0);
wait(4000);
 
//12 seconds
wait(4000);
wait(4000);
wait(4000);
 
//Holds X for 4 seconds then lets go for 4
set_val(PS4_CROSS, 100);
wait(4000);
set_val(PS4_CROSS, 0);
wait(4000);
 
//12 seconds
wait(4000);
wait(4000);
wait(4000);
 
//Holds X for 4 seconds then lets go for 4
set_val(PS4_CROSS, 100);
wait(4000);
set_val(PS4_CROSS, 0);
wait(4000);
}
 
 
//***ONE MINUTE***
combo ONEMINUTE {
//20 seconds
wait(4000);
wait(4000);
wait(4000);
wait(4000);
wait(4000);
 
//20 seconds
wait(4000);
wait(4000);
wait(4000);
wait(4000);
wait(4000);
 
//20 seconds
wait(4000);
wait(4000);
wait(4000);
wait(4000);
wait(4000);
}
 
//================================================
User avatar
THEVET
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Thu Sep 12, 2019 3:19 pm

Re: NBA 2K 20 help with scripts thread

Postby Scachi » Thu Sep 12, 2019 4:03 pm

THEVET wrote:I noticed that a lot of the NBA 2K scripts are basically used with another USB dongle from another company but wanted to bring those scripts over here because they are more custom and you are getting more thend what's going on in this area with the Titan one and type two.If you have the skills to fix these scripts so that they work with both Titan one and two please help keep this thread going by fixing them and saving some of us some money from having to go out and purchase another company's dongle

Try if you can get it working for the T2 with the converter by buffy:
viewtopic.php?f=26&t=12027
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: NBA 2K 20 help with scripts thread

Postby THEVET » Thu Sep 12, 2019 5:20 pm

Scachi wrote:
THEVET wrote:I noticed that a lot of the NBA 2K scripts are basically used with another USB dongle from another company but wanted to bring those scripts over here because they are more custom and you are getting more thend what's going on in this area with the Titan one and type two.If you have the skills to fix these scripts so that they work with both Titan one and two please help keep this thread going by fixing them and saving some of us some money from having to go out and purchase another company's dongle

Try if you can get it working for the T2 with the converter by buffy:
viewtopic.php?f=26&t=12027



With that being said WOW! Thanks. I will continue to bring the scripts here for others but will attempt to correct them first. I did solve my issue though.
User avatar
THEVET
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Thu Sep 12, 2019 3:19 pm

Re: NBA 2K 20 help with scripts thread

Postby THEVET » Thu Oct 24, 2019 8:54 pm

Can someone help take out all the dribble moves, Im looking to compile on the Perfect release timing. I have tried all possibilities but im sure someone here has the expertise in know what to look for to separate the script.


Code: Select all
 
// GPC Online Library
// nba_2k18_Perfect_shot_release.gpc
/*
///////////////////////////////////////////////////////////////////////////////
     INSTRUCTION
  ----------------------------------------------------------------------------
 1.  Script will automatically record the time when you shot
    // Record the time of X press when it is more than 150 ms.
 
 NOTE:
 
 2. Set Recorded time to be time for Perfect Shot
   A. Perform standing still shot and if your time is perfect save it ( press and hold D-pad UP + press X ).
 
 
   B. Then perform running shot and if your time is perfect save it ( hold D-pad UP + press Y ).
 
 3. Save Time to EEPROM memory
    // hold D-pad UP + press XB1_MENU 
 
 4. Load Time from EEPROM memory
    // hold D-pad UP + XB1 VIEW
 
 5. Reset time for Perfect Shot
    // hold D-pad UP + press CROSS / A
 
 6. Perform Perfect Shot
    // just hold Shot button until your player perform shot
    - script will stop sending of the output to console of the button, when it reach the Perfect time.
 
 
***********************************************************************************************************************************************************/
/////////////////////////////////////////////////////////////////////////////////
//
//  hold btn for choice A SKill         
// Modifier Button to activate skill to the Left - Bank 1
// Modifier Button to activate skill to the Right- Bank 1
// Modifier Button to activate Skill with One Direction   
// Time to Double click
//////////////////////////////////////////////////////////////////////////////////////////
//
//ms.  to be able to record  at either quick, normal or late shot.
//
//////////////////////////////////////////////////////////////////////////////////////////
//  1   2   3   4    5   6   7   8    9 10  11   12   13  14  15  16  17  18  19   20  21   22  23   24  25  26    27   28    29    30   31    32
// 33   34 35   36  37   38  39  40  41 42   43  44   45  46  47  48  49  50   51  52   53  54   55  56   57 58    59   60    61    62   63    64   
// 65   66 67   68  69   70  71  72  73 74   75  76   77  78  79  80  81  82   83  84   85  86   87  88   89 90    91   92    93    94   95    96
// 97  98  99  100                       
//                   
// end of data         
/////////////////////////////////////////////////////////////////////////////////
//
// IndR_L for LEFT ANALOG we use with dbyte(Ind+ ..);
// Ind we use with dbyte(Ind+ ..);                 
/////////////////////////////////////////////////////////////////////////////////
//   INICIALIZATION
/////////////////////////////////////////////////////////////////////////////////
//     MAIN BLOCK
//------------------------------------------------------------------------
// Zone 13                         
// Bank 1 run to the LEFT                 
//--------------------------------------------------------------
// if(event_press(XB1_RS)){RightON = 1;combo_run(DIRECTION_OF_L_ANALOG);}
//--------------------------------------------------------------
//               
//--------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////
// Shot with recorded time when Standing / when Running
////////////////////////////////////////////////////////////////////////////
// Shot from Standing Still position
// Shot from running position
//Hands Up Defense + Double Team + Ball Pressure + Intense Defense when pressing L1/LB.
//   !THE FOLLOWING SCRIPTS ARE MEANT TO BE USED WHILE STANDING STILL!
// However, they can also be used while moving to produce some "other" effects.
//Hold R3/ RS to rapidly cross behind the back, then choose a direction to blow past your defender. Must NOT be moving.
//Hold D-pad LEFT and press LT / L2 to rapidly cross the ball back and fourth between the legs (Ball in Left hand?)
//Hold D-pad DOWN and press LT / L2 to rapidly cross the ball back and fourth between the legs (Ball in Right hand?)
//Hold LT/L2 and D-pad UP  to max rumble the screen during freethrows.
// Record the time of X / SQUARE press when it is more than 600 ms.
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
// Set Recorded time to be time for Standing Still Shot  hold D-pad UP +SQUARE/ X
// Set Recorded time to be time for Running Shot  hold D-pad UP +TRIANGLE/ Y
//
// Save Time to EEPROM memory => hold D-pad UP + press PS4_OPTIONS / XB1_MENU
////////////////////////////////////////////////////////////////////////////
//  press X  set standing still position timing
//
//  press Y  set runing position timing
// Save Time to EEPROM memory => press START  save timing for both shots
// Load Time from EEPROM memory =>press PS4 SHARE / XB1 VIEW
// Reset time for Perfect Shot
// press A/ CROSS
// press B/ CIRCLE
// Increase / Decrease Running shot time
// Increase / Decrease Standing Still shot time
//------------------------------------------------------------------------------
// Standing Still time
// Running time
// Zone 3                               
// Zone 7                               
//------------------------------------------------           
// SPIN_MOVE
//if( SKill== 7) {dob=97; Elastico=FALSE;combo_run(TURNandSPIN_ELASTICO);} // Turn and Spin // 7. Turn and Spin
//if( SKill== 8) {combo_run(HOCUS_POCUS); } // Hocus Pocus // 8. Hocus Pocus
//if( SKill== 6) {dob=97; Elastico=TRUE;combo_run(TURNandSPIN_ELASTICO);}  // Elastico_SKILL // 6. Elastico
// Default Skill
//if(SKill==13) {combo_run(DRAG_BACK);}        //Drag Back // 13. Drag Back
//------------------------------------------------   
///////////////////////////////////////////////////////////////////
// MIMIC CIRCLE  //////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
//Wait times can be adjusted to better suit your latency if you are experiencing issues.
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// LS==>1
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// func end                                             
//mX=dbyte(IndL);                       
//mY=dbyte(IndL+1);                     
// func end                                           
//Right Analog Functions                                       
//--------------------------------------------------------------
// func end                       
//RB
//LB
//LT
// func end 
 
define SHOT_BUTTON = XB1_X;
define DEFENSE = XB1_LB;
define BEHIND = XB1_RS;
define LEGCROSS = XB1_LT;
define holdBtnA = XB1_LT;
define Lbtn = XB1_LB;
define Rbtn = XB1_RB;
define OneDirectBtn = XB1_RS;
define timelimit = 300;
define HoldTime = 150;
define DOnotUSE = 0;
 
data(DOnotUSE,
0, - 100, 50, - 100, 100, - 100, 100, - 50, 100010050100, 10050, 1000, 100, - 50, 100, - 100, 100, - 10050, - 1000, - 100, - 50, - 100, - 100, - 50, - 100,
0, - 100, 50, - 100, 100, - 100, 100, - 50, 100010050100, 10050, 1000, 100, - 50, 100, - 100, 100, - 10050, - 1000, - 100, - 50, - 100, - 100, - 50, - 100,
0, - 100, 50, - 100, 100, - 100, 100, - 50, 100010050100, 10050, 1000, 100, - 50, 100, - 100, 100, - 10050, - 1000, - 100, - 50, - 100, - 100, - 50, - 100,
412610
);
 
int SKill = 1;
int b_Zapis;
int w_StandingStill;
int w_RunningShot;
int w_recordedTime;
int w_delay;
int OnOff;
int LX, LY;
int ZX, ZY;
int b_Standing;
int Zone;
int temp_Zone;
int IndL;
int CanUse1, CanUse2;
int RightON = FALSE;
int time_to_DblClick_R = 0;
int time_to_DblClick_L = 0;
int IndR_L = 0;
int Ind = 0;
int mX, mY;
int b_Exit;
int Points = 0;
int OnOffMods = TRUE;
int w_delay1;
int w_delay2;
int Edit_On;
int Rumble_Tipe = RUMBLE_A;
int w_rumble = 200;
 
init {
    w_StandingStill = get_pvar(SPVAR_1, 0, 4000, 0);
    w_RunningShot = get_pvar(SPVAR_2, 0, 4000, 0);
}
 
 
main {
    set_val(TRACE_1, w_StandingStill / 10);
    set_val(TRACE_2, w_RunningShot / 10);
    set_val(TRACE_3, w_recordedTime / 10);
    set_val(TRACE_4, Zone);
    set_val(TRACE_5, b_Standing);
    set_val(TRACE_6, Edit_On);
    if (abs(get_val(XB1_LX)) < 80 && abs(get_val(XB1_LY)) < 80) {
        b_Standing = TRUE;
    }
    else {
        LX = get_val(XB1_LX);
        LY = get_val(XB1_LY);
        b_Standing = FALSE;
        f_get_Zone(LX, LY);
        ZX = LY;
        ZY = inv(LX);
    }
    if (event_press(XB1_LS)) {
        RightON = 0;
        combo_run(c_DIRECTION_OF_L_ANALOG);
    }
    if (b_Standing && CanUse1) {
        if (w_StandingStill > HoldTime) {
            if (get_val(XB1_X) && get_ptime(XB1_X) >= w_StandingStill) {
                set_val(XB1_X, 0);
            }
        }
    }
    else if (!b_Standing && CanUse2) {
        if (w_RunningShot > HoldTime) {
            if (get_val(XB1_X) && get_ptime(XB1_X) >= w_RunningShot) {
                set_val(XB1_X, 0);
            }
        }
    }
    if (get_val(DEFENSE)) {
        set_val(XB1_LT, 100);
        set_val(XB1_RY, 100);
        if (get_val(XB1_RB)) {
            set_val(XB1_LB, 0);
            set_val(XB1_RB, 0);
            set_val(XB1_RY, - 100);
        }
    }
    if (get_val(BEHIND)) {
        combo_run(c_Behind_back_dribble);
    }
    if (get_val(XB1_LEFT)) {
        if (get_val(XB1_LT)) {
            set_val(XB1_LT, 0);
            combo_run(c_LEFTLEGCROSS);
        }
    }
    if (get_val(XB1_DOWN)) {
        if (get_val(XB1_LT)) {
            set_val(XB1_LT, 0);
            combo_run(c_RIGHTLEGCROSS);
        }
    }
    if (get_val(XB1_UP)) {
        if (get_val(XB1_LT)) {
            set_val(XB1_LT, 0);
            combo_run(c_DISTURB);
        }
    }
    if (get_val(XB1_X) && get_ptime(XB1_X) > HoldTime) b_Zapis = TRUE;
    if (b_Zapis) {
        if (event_release(XB1_X)) {
            b_Zapis = FALSE;
            w_recordedTime = get_ptime(20);
        }
    }
    if (get_val(XB1_UP)) {
        if (event_press(SHOT_BUTTON)) {
            w_StandingStill = w_recordedTime;
            CanUse1 = TRUE;
        }
        if (event_press(XB1_Y)) {
            w_RunningShot = w_recordedTime;
            CanUse2 = TRUE;
        }
        if (event_press(XB1_MENU)) {
            combo_run(c_Save_Timing);
        }
        if (event_press(XB1_VIEW)) {
            if (w_StandingStill > HoldTime) CanUse1 = TRUE;
            if (w_RunningShot > HoldTime) CanUse2 = TRUE;
        }
        if (event_press(XB1_A)) {
            w_StandingStill = 0;
            CanUse1 = FALSE;
        }
        if (event_press(XB1_B)) {
            w_RunningShot = 0;
            CanUse2 = FALSE;
        }
        set_val(XB1_A, 0);
        set_val(XB1_B, 0);
        set_val(XB1_VIEW, 0);
        set_val(XB1_MENU, 0);
        set_val(XB1_Y, 0);
        set_val(SHOT_BUTTON, 0);
    }
    if (get_val(XB1_RS)) {
        if (event_press(XB1_UP)) {
            w_RunningShot = w_RunningShot + 5;
            Edit_On = TRUE;
        }
        if (event_press(XB1_DOWN)) {
            w_RunningShot = w_RunningShot - 5;
            Edit_On = TRUE;
        }
        if (event_press(XB1_RIGHT)) {
            w_StandingStill = w_StandingStill + 5;
            Edit_On = TRUE;
        }
        if (event_press(XB1_LEFT)) {
            w_StandingStill = w_StandingStill - 5;
            Edit_On = TRUE;
        }
    }
    else if (Edit_On) {
        combo_run(c_Save_Timing);
    }
}
 
 
combo c_Save_Timing {
    if (w_StandingStill > HoldTime) set_pvar(SPVAR_1, w_StandingStill);
    if (w_RunningShot > HoldTime) set_pvar(SPVAR_2, w_RunningShot);
    Edit_On = FALSE;
}
 
/* combo c_RUMBLE_NOTIFY {
    set_rumble(Rumble_Tipe, 100);
    wait(w_rumble);
    reset_rumble();
}
*/

 
 combo c_DIRECTION_OF_L_ANALOG {
    OnOff = FALSE;
    if (RightON) {
        ZX = inv(LY);
        ZY = LX;
    }
    else {
        ZX = LY;
        ZY = inv(LX);
    }
    block(11, 1000);
    block(12, 1000);
    if (Zone > 0) {
        if (SKill == 1) {
            combo_run(c_SPIN_MOVE);
        }
    }
}
 
combo c_SPIN_MOVE {
    RightON =! RightON;
    if (RightON) {
        Ind = (Zone + 12) * 2;
    }
    else {
        Ind = ((Zone + 4) * 2) - 1;
    }
    Points = 5;
    combo_run(c_MimicCircle);
}
 
combo c_MimicCircle {
    if (Points >= 1) {
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 0), dbyte(Ind - 1));
        }
        else {
            f_RA_CW(dbyte(Ind + 0), dbyte(Ind + 1));
        }
    }
    wait(30);
    if (Points >= 2) {
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 4), dbyte(Ind - 5));
        }
        else {
            f_RA_CW(dbyte(Ind + 4), dbyte(Ind + 5));
        }
    }
    wait(30);
    if (Points >= 3) {
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 8), dbyte(Ind - 9));
        }
        else {
            f_RA_CW(dbyte(Ind + 8), dbyte(Ind + 9));
        }
    }
    wait(30);
    if (Points >= 4) {
        w_delay1 = 30;
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 12), dbyte(Ind - 13));
        }
        else {
            f_RA_CW(dbyte(Ind + 12), dbyte(Ind + 13));
        }
    }
    else {
        w_delay1 = 10;
    }
    wait(w_delay1);
    if (Points >= 5) {
        w_delay1 = 30;
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 16), dbyte(Ind - 17));
        }
        else {
            f_RA_CW(dbyte(Ind + 16), dbyte(Ind + 17));
        }
    }
    else {
        w_delay1 = 10;
    }
    wait(w_delay1);
    OnOff = TRUE;
}
 
combo c_Behind_back_dribble {
    set_val(XB1_RY, 100);
    wait(20);
    set_val(XB1_RY, 0);
}
 
combo c_RIGHTLEGCROSS {
    set_val(XB1_RY, 71);
    set_val(XB1_RX, - 81);
    wait(50);
    set_val(XB1_RY, 0);
    set_val(XB1_RX, 0);
    wait(200);
    set_val(XB1_RX, 100);
    wait(50);
    set_val(XB1_RX, 0);
    wait(520);
}
 
combo c_LEFTLEGCROSS {
    set_val(XB1_RY, 71);
    set_val(XB1_RX, 81);
    wait(50);
    set_val(XB1_RY, 0);
    set_val(XB1_RX, 0);
    wait(200);
    set_val(XB1_RX, - 100);
    wait(50);
    set_val(XB1_RX, 0);
    set_val(XB1_RY, 0);
    wait(520);
}
 
combo c_DISTURB {
    set_val(XB1_LT, 100);
    wait(35);
    set_val(XB1_LT, 0);
    set_val(XB1_RT, 100);
    wait(35);
    set_val(XB1_RT, 0);
}
 
 
function f_get_Zone(X, Y) {
    if ((Y <- 80) && (X >= - 20 && X < 20)) {
        Zone = 1;
    }
    else if ((Y <- 80) && (X >= 20 && X <= 70)) {
        Zone = 2;
    }
    else if (Y <- 70 && X > 70) {
        Zone = 3;
    }
    else if ((X > 80) && (Y >= - 70 && Y <= - 20)) {
        Zone = 4;
    }
    else if ((X > 80) && (Y >- 20 && Y < 20)) {
        Zone = 5;
    }
    else if ((X > 80) && (Y >= 20 && Y <= 70)) {
        Zone = 6;
    }
    else if ((X > 70) && (Y > 70)) {
        Zone = 7;
    }
    else if ((X < 70 && X > 20) && (Y == 100)) {
        Zone = 8;
    }
    else if ((Y > 80) && (X >= - 20 && X <= 20)) {
        Zone = 9;
    }
    else if ((Y > 80) && (X <- 20 && X >- 70)) {
        Zone = 10;
    }
    else if ((Y > 70) && (X <- 70)) {
        Zone = 11;
    }
    else if ((X <- 80) && (Y >= 20 && Y <= 70)) {
        Zone = 12;
    }
    else if ((X <- 80) && (Y >- 20 && Y < 20)) {
        Zone = 13;
    }
    else if ((X <- 80) && (Y <- 20 && Y >- 70)) {
        Zone = 14;
    }
    else if ((X <- 70) && (Y <- 70)) {
        Zone = 15;
    }
    else if ((Y <- 80) && (X <- 20 && X >- 70)) {
        Zone = 16;
    }
    temp_Zone = Zone;
    f_f_get_Dir(Zone);
}
 
function f_f_get_Dir(zona) {
    IndL = (zona * 2) - 1;
}
 
function f_RA_CW(X, Y) {
    set_val(9, X);
    set_val(10, Y);
}
 
function f_RA_CCW(Y, X) {
    set_val(10, Y);
    set_val(9, X);
}
 
/* function f_LA_CW(X, Y) {
    set_val(11, X);
    set_val(12, Y);
}
*/

 
 
 
/* function f_f_RB_LB_LT(a, b, c) {
    if (a) set_val(3, 100);
    if (b) set_val(6, 100);
    if (c) set_val(7, 100);
}
*/

 
 
User avatar
THEVET
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Thu Sep 12, 2019 3:19 pm

Re: NBA 2K 20 help with scripts thread

Postby J2Kbr » Thu Oct 24, 2019 10:39 pm

You can use this script with the Titan Two by just adding the following line at the very beginning of the script code:
Code: Select all
#include <titanone.gph>
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: NBA 2K 20 help with scripts thread

Postby THEVET » Fri Oct 25, 2019 12:49 am

J2Kbr wrote:You can use this script with the Titan Two by just adding the following line at the very beginning of the script code:
Code: Select all
#include <titanone.gph>



I definitely understand that part, just needing to take out the dribbling & leave only the shot timings
User avatar
THEVET
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Thu Sep 12, 2019 3:19 pm

Re: NBA 2K 20 help with scripts thread

Postby J2Kbr » Fri Oct 25, 2019 8:49 am

Understood, I commented the part which -I believe- is for the dribbling.

Code: Select all
 
#include <titanone.gph>
 
/*
///////////////////////////////////////////////////////////////////////////////
     INSTRUCTION
  ----------------------------------------------------------------------------
 1.  Script will automatically record the time when you shot
    // Record the time of X press when it is more than 150 ms.
 
 NOTE:
 
 2. Set Recorded time to be time for Perfect Shot
   A. Perform standing still shot and if your time is perfect save it ( press and hold D-pad UP + press X ).
 
 
   B. Then perform running shot and if your time is perfect save it ( hold D-pad UP + press Y ).
 
 3. Save Time to EEPROM memory
    // hold D-pad UP + press XB1_MENU 
 
 4. Load Time from EEPROM memory
    // hold D-pad UP + XB1 VIEW
 
 5. Reset time for Perfect Shot
    // hold D-pad UP + press CROSS / A
 
 6. Perform Perfect Shot
    // just hold Shot button until your player perform shot
    - script will stop sending of the output to console of the button, when it reach the Perfect time.
 
 
***********************************************************************************************************************************************************/
/////////////////////////////////////////////////////////////////////////////////
//
//  hold btn for choice A SKill         
// Modifier Button to activate skill to the Left - Bank 1
// Modifier Button to activate skill to the Right- Bank 1
// Modifier Button to activate Skill with One Direction   
// Time to Double click
//////////////////////////////////////////////////////////////////////////////////////////
//
//ms.  to be able to record  at either quick, normal or late shot.
//
//////////////////////////////////////////////////////////////////////////////////////////
//  1   2   3   4    5   6   7   8    9 10  11   12   13  14  15  16  17  18  19   20  21   22  23   24  25  26    27   28    29    30   31    32
// 33   34 35   36  37   38  39  40  41 42   43  44   45  46  47  48  49  50   51  52   53  54   55  56   57 58    59   60    61    62   63    64   
// 65   66 67   68  69   70  71  72  73 74   75  76   77  78  79  80  81  82   83  84   85  86   87  88   89 90    91   92    93    94   95    96
// 97  98  99  100                       
//                   
// end of data         
/////////////////////////////////////////////////////////////////////////////////
//
// IndR_L for LEFT ANALOG we use with dbyte(Ind+ ..);
// Ind we use with dbyte(Ind+ ..);                 
/////////////////////////////////////////////////////////////////////////////////
//   INICIALIZATION
/////////////////////////////////////////////////////////////////////////////////
//     MAIN BLOCK
//------------------------------------------------------------------------
// Zone 13                         
// Bank 1 run to the LEFT                 
//--------------------------------------------------------------
// if(event_press(XB1_RS)){RightON = 1;combo_run(DIRECTION_OF_L_ANALOG);}
//--------------------------------------------------------------
//               
//--------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////
// Shot with recorded time when Standing / when Running
////////////////////////////////////////////////////////////////////////////
// Shot from Standing Still position
// Shot from running position
//Hands Up Defense + Double Team + Ball Pressure + Intense Defense when pressing L1/LB.
//   !THE FOLLOWING SCRIPTS ARE MEANT TO BE USED WHILE STANDING STILL!
// However, they can also be used while moving to produce some "other" effects.
//Hold R3/ RS to rapidly cross behind the back, then choose a direction to blow past your defender. Must NOT be moving.
//Hold D-pad LEFT and press LT / L2 to rapidly cross the ball back and fourth between the legs (Ball in Left hand?)
//Hold D-pad DOWN and press LT / L2 to rapidly cross the ball back and fourth between the legs (Ball in Right hand?)
//Hold LT/L2 and D-pad UP  to max rumble the screen during freethrows.
// Record the time of X / SQUARE press when it is more than 600 ms.
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
// Set Recorded time to be time for Standing Still Shot  hold D-pad UP +SQUARE/ X
// Set Recorded time to be time for Running Shot  hold D-pad UP +TRIANGLE/ Y
//
// Save Time to EEPROM memory => hold D-pad UP + press PS4_OPTIONS / XB1_MENU
////////////////////////////////////////////////////////////////////////////
//  press X  set standing still position timing
//
//  press Y  set runing position timing
// Save Time to EEPROM memory => press START  save timing for both shots
// Load Time from EEPROM memory =>press PS4 SHARE / XB1 VIEW
// Reset time for Perfect Shot
// press A/ CROSS
// press B/ CIRCLE
// Increase / Decrease Running shot time
// Increase / Decrease Standing Still shot time
//------------------------------------------------------------------------------
// Standing Still time
// Running time
// Zone 3                               
// Zone 7                               
//------------------------------------------------           
// SPIN_MOVE
//if( SKill== 7) {dob=97; Elastico=FALSE;combo_run(TURNandSPIN_ELASTICO);} // Turn and Spin // 7. Turn and Spin
//if( SKill== 8) {combo_run(HOCUS_POCUS); } // Hocus Pocus // 8. Hocus Pocus
//if( SKill== 6) {dob=97; Elastico=TRUE;combo_run(TURNandSPIN_ELASTICO);}  // Elastico_SKILL // 6. Elastico
// Default Skill
//if(SKill==13) {combo_run(DRAG_BACK);}        //Drag Back // 13. Drag Back
//------------------------------------------------   
///////////////////////////////////////////////////////////////////
// MIMIC CIRCLE  //////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
//Wait times can be adjusted to better suit your latency if you are experiencing issues.
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// LS==>1
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// LS==>2
// func end                                             
//mX=dbyte(IndL);                       
//mY=dbyte(IndL+1);                     
// func end                                           
//Right Analog Functions                                       
//--------------------------------------------------------------
// func end                       
//RB
//LB
//LT
// func end 
 
define SHOT_BUTTON = XB1_X;
define DEFENSE = XB1_LB;
define BEHIND = XB1_RS;
define LEGCROSS = XB1_LT;
define holdBtnA = XB1_LT;
define Lbtn = XB1_LB;
define Rbtn = XB1_RB;
define OneDirectBtn = XB1_RS;
define timelimit = 300;
define HoldTime = 150;
define DOnotUSE = 0;
 
data(DOnotUSE,
0, - 100, 50, - 100, 100, - 100, 100, - 50, 100010050100, 10050, 1000, 100, - 50, 100, - 100, 100, - 10050, - 1000, - 100, - 50, - 100, - 100, - 50, - 100,
0, - 100, 50, - 100, 100, - 100, 100, - 50, 100010050100, 10050, 1000, 100, - 50, 100, - 100, 100, - 10050, - 1000, - 100, - 50, - 100, - 100, - 50, - 100,
0, - 100, 50, - 100, 100, - 100, 100, - 50, 100010050100, 10050, 1000, 100, - 50, 100, - 100, 100, - 10050, - 1000, - 100, - 50, - 100, - 100, - 50, - 100,
412610
);
 
int SKill = 1;
int b_Zapis;
int w_StandingStill;
int w_RunningShot;
int w_recordedTime;
int w_delay;
int OnOff;
int LX, LY;
int ZX, ZY;
int b_Standing;
int Zone;
int temp_Zone;
int IndL;
int CanUse1, CanUse2;
int RightON = FALSE;
int time_to_DblClick_R = 0;
int time_to_DblClick_L = 0;
int IndR_L = 0;
int Ind = 0;
int mX, mY;
int b_Exit;
int Points = 0;
int OnOffMods = TRUE;
int w_delay1;
int w_delay2;
int Edit_On;
int Rumble_Tipe = RUMBLE_A;
int w_rumble = 200;
 
init {
    w_StandingStill = get_pvar(SPVAR_1, 0, 4000, 0);
    w_RunningShot = get_pvar(SPVAR_2, 0, 4000, 0);
}
 
 
main {
    set_val(TRACE_1, w_StandingStill / 10);
    set_val(TRACE_2, w_RunningShot / 10);
    set_val(TRACE_3, w_recordedTime / 10);
    set_val(TRACE_4, Zone);
    set_val(TRACE_5, b_Standing);
    set_val(TRACE_6, Edit_On);
    if (abs(get_val(XB1_LX)) < 80 && abs(get_val(XB1_LY)) < 80) {
        b_Standing = TRUE;
    }
    else {
        LX = get_val(XB1_LX);
        LY = get_val(XB1_LY);
        b_Standing = FALSE;
        f_get_Zone(LX, LY);
        ZX = LY;
        ZY = inv(LX);
    }
    if (event_press(XB1_LS)) {
        RightON = 0;
        combo_run(c_DIRECTION_OF_L_ANALOG);
    }
    if (b_Standing && CanUse1) {
        if (w_StandingStill > HoldTime) {
            if (get_val(XB1_X) && get_ptime(XB1_X) >= w_StandingStill) {
                set_val(XB1_X, 0);
            }
        }
    }
    else if (!b_Standing && CanUse2) {
        if (w_RunningShot > HoldTime) {
            if (get_val(XB1_X) && get_ptime(XB1_X) >= w_RunningShot) {
                set_val(XB1_X, 0);
            }
        }
    }
    /*
    if (get_val(DEFENSE)) {
        set_val(XB1_LT, 100);
        set_val(XB1_RY, 100);
        if (get_val(XB1_RB)) {
            set_val(XB1_LB, 0);
            set_val(XB1_RB, 0);
            set_val(XB1_RY, - 100);
        }
    }
    if (get_val(BEHIND)) {
        combo_run(c_Behind_back_dribble);
    }
    if (get_val(XB1_LEFT)) {
        if (get_val(XB1_LT)) {
            set_val(XB1_LT, 0);
            combo_run(c_LEFTLEGCROSS);
        }
    }
    if (get_val(XB1_DOWN)) {
        if (get_val(XB1_LT)) {
            set_val(XB1_LT, 0);
            combo_run(c_RIGHTLEGCROSS);
        }
    }
    if (get_val(XB1_UP)) {
        if (get_val(XB1_LT)) {
            set_val(XB1_LT, 0);
            combo_run(c_DISTURB);
        }
    }
    */

    if (get_val(XB1_X) && get_ptime(XB1_X) > HoldTime) b_Zapis = TRUE;
    if (b_Zapis) {
        if (event_release(XB1_X)) {
            b_Zapis = FALSE;
            w_recordedTime = get_ptime(20);
        }
    }
    if (get_val(XB1_UP)) {
        if (event_press(SHOT_BUTTON)) {
            w_StandingStill = w_recordedTime;
            CanUse1 = TRUE;
        }
        if (event_press(XB1_Y)) {
            w_RunningShot = w_recordedTime;
            CanUse2 = TRUE;
        }
        if (event_press(XB1_MENU)) {
            combo_run(c_Save_Timing);
        }
        if (event_press(XB1_VIEW)) {
            if (w_StandingStill > HoldTime) CanUse1 = TRUE;
            if (w_RunningShot > HoldTime) CanUse2 = TRUE;
        }
        if (event_press(XB1_A)) {
            w_StandingStill = 0;
            CanUse1 = FALSE;
        }
        if (event_press(XB1_B)) {
            w_RunningShot = 0;
            CanUse2 = FALSE;
        }
        set_val(XB1_A, 0);
        set_val(XB1_B, 0);
        set_val(XB1_VIEW, 0);
        set_val(XB1_MENU, 0);
        set_val(XB1_Y, 0);
        set_val(SHOT_BUTTON, 0);
    }
    if (get_val(XB1_RS)) {
        if (event_press(XB1_UP)) {
            w_RunningShot = w_RunningShot + 5;
            Edit_On = TRUE;
        }
        if (event_press(XB1_DOWN)) {
            w_RunningShot = w_RunningShot - 5;
            Edit_On = TRUE;
        }
        if (event_press(XB1_RIGHT)) {
            w_StandingStill = w_StandingStill + 5;
            Edit_On = TRUE;
        }
        if (event_press(XB1_LEFT)) {
            w_StandingStill = w_StandingStill - 5;
            Edit_On = TRUE;
        }
    }
    else if (Edit_On) {
        combo_run(c_Save_Timing);
    }
}
 
 
combo c_Save_Timing {
    if (w_StandingStill > HoldTime) set_pvar(SPVAR_1, w_StandingStill);
    if (w_RunningShot > HoldTime) set_pvar(SPVAR_2, w_RunningShot);
    Edit_On = FALSE;
}
 
/* combo c_RUMBLE_NOTIFY {
    set_rumble(Rumble_Tipe, 100);
    wait(w_rumble);
    reset_rumble();
}
*/

 
 combo c_DIRECTION_OF_L_ANALOG {
    OnOff = FALSE;
    if (RightON) {
        ZX = inv(LY);
        ZY = LX;
    }
    else {
        ZX = LY;
        ZY = inv(LX);
    }
    block(11, 1000);
    block(12, 1000);
    if (Zone > 0) {
        if (SKill == 1) {
            combo_run(c_SPIN_MOVE);
        }
    }
}
 
combo c_SPIN_MOVE {
    RightON =! RightON;
    if (RightON) {
        Ind = (Zone + 12) * 2;
    }
    else {
        Ind = ((Zone + 4) * 2) - 1;
    }
    Points = 5;
    combo_run(c_MimicCircle);
}
 
combo c_MimicCircle {
    if (Points >= 1) {
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 0), dbyte(Ind - 1));
        }
        else {
            f_RA_CW(dbyte(Ind + 0), dbyte(Ind + 1));
        }
    }
    wait(30);
    if (Points >= 2) {
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 4), dbyte(Ind - 5));
        }
        else {
            f_RA_CW(dbyte(Ind + 4), dbyte(Ind + 5));
        }
    }
    wait(30);
    if (Points >= 3) {
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 8), dbyte(Ind - 9));
        }
        else {
            f_RA_CW(dbyte(Ind + 8), dbyte(Ind + 9));
        }
    }
    wait(30);
    if (Points >= 4) {
        w_delay1 = 30;
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 12), dbyte(Ind - 13));
        }
        else {
            f_RA_CW(dbyte(Ind + 12), dbyte(Ind + 13));
        }
    }
    else {
        w_delay1 = 10;
    }
    wait(w_delay1);
    if (Points >= 5) {
        w_delay1 = 30;
        if (RightON) {
            f_RA_CCW(dbyte(Ind - 16), dbyte(Ind - 17));
        }
        else {
            f_RA_CW(dbyte(Ind + 16), dbyte(Ind + 17));
        }
    }
    else {
        w_delay1 = 10;
    }
    wait(w_delay1);
    OnOff = TRUE;
}
 
combo c_Behind_back_dribble {
    set_val(XB1_RY, 100);
    wait(20);
    set_val(XB1_RY, 0);
}
 
combo c_RIGHTLEGCROSS {
    set_val(XB1_RY, 71);
    set_val(XB1_RX, - 81);
    wait(50);
    set_val(XB1_RY, 0);
    set_val(XB1_RX, 0);
    wait(200);
    set_val(XB1_RX, 100);
    wait(50);
    set_val(XB1_RX, 0);
    wait(520);
}
 
combo c_LEFTLEGCROSS {
    set_val(XB1_RY, 71);
    set_val(XB1_RX, 81);
    wait(50);
    set_val(XB1_RY, 0);
    set_val(XB1_RX, 0);
    wait(200);
    set_val(XB1_RX, - 100);
    wait(50);
    set_val(XB1_RX, 0);
    set_val(XB1_RY, 0);
    wait(520);
}
 
combo c_DISTURB {
    set_val(XB1_LT, 100);
    wait(35);
    set_val(XB1_LT, 0);
    set_val(XB1_RT, 100);
    wait(35);
    set_val(XB1_RT, 0);
}
 
 
function f_get_Zone(X, Y) {
    if ((Y <- 80) && (X >= - 20 && X < 20)) {
        Zone = 1;
    }
    else if ((Y <- 80) && (X >= 20 && X <= 70)) {
        Zone = 2;
    }
    else if (Y <- 70 && X > 70) {
        Zone = 3;
    }
    else if ((X > 80) && (Y >= - 70 && Y <= - 20)) {
        Zone = 4;
    }
    else if ((X > 80) && (Y >- 20 && Y < 20)) {
        Zone = 5;
    }
    else if ((X > 80) && (Y >= 20 && Y <= 70)) {
        Zone = 6;
    }
    else if ((X > 70) && (Y > 70)) {
        Zone = 7;
    }
    else if ((X < 70 && X > 20) && (Y == 100)) {
        Zone = 8;
    }
    else if ((Y > 80) && (X >= - 20 && X <= 20)) {
        Zone = 9;
    }
    else if ((Y > 80) && (X <- 20 && X >- 70)) {
        Zone = 10;
    }
    else if ((Y > 70) && (X <- 70)) {
        Zone = 11;
    }
    else if ((X <- 80) && (Y >= 20 && Y <= 70)) {
        Zone = 12;
    }
    else if ((X <- 80) && (Y >- 20 && Y < 20)) {
        Zone = 13;
    }
    else if ((X <- 80) && (Y <- 20 && Y >- 70)) {
        Zone = 14;
    }
    else if ((X <- 70) && (Y <- 70)) {
        Zone = 15;
    }
    else if ((Y <- 80) && (X <- 20 && X >- 70)) {
        Zone = 16;
    }
    temp_Zone = Zone;
    f_f_get_Dir(Zone);
}
 
function f_f_get_Dir(zona) {
    IndL = (zona * 2) - 1;
}
 
function f_RA_CW(X, Y) {
    set_val(9, X);
    set_val(10, Y);
}
 
function f_RA_CCW(Y, X) {
    set_val(10, Y);
    set_val(9, X);
}
 
/* function f_LA_CW(X, Y) {
    set_val(11, X);
    set_val(12, Y);
}
*/

 
 
 
/* function f_f_RB_LB_LT(a, b, c) {
    if (a) set_val(3, 100);
    if (b) set_val(6, 100);
    if (c) set_val(7, 100);
}
*/

 
 
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: NBA 2K 20 help with scripts thread

Postby THEVET » Thu Jan 09, 2020 5:44 pm

Need some help, can someone help fix this. The problem is that the right one wont work from top so its set it on left wing by accident. but if you cant fix the dribble to work with both sides just make it Titan one & titan 2 compatible as this comes from another site.


Code: Select all
#include <titanone.gph>
 
// LEFT D-PAD IF BALL IS IN RIGHT HAND
// RIGHT D-PAD IF BALL IS IN LEFT HAND
 
main {
if(event_press(PS4_LEFT)){
combo_run(escapeleft)
}
if(event_press(PS4_RIGHT)){
combo_run(escaperight)
}
}
combo escapeleft {
 set_val(PS4_R2, 100);
 wait(580);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -22);
 set_val(PS4_RY, 21);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -25);
 set_val(PS4_RY, 23);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -29);
 set_val(PS4_RY, 26);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -57);
 set_val(PS4_RY, 30);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -59);
 set_val(PS4_RY, 33);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -62);
 set_val(PS4_RY, 37);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -66);
 set_val(PS4_RY, 40);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -90);
 set_val(PS4_RY, 43);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -92);
 set_val(PS4_RY, 46);
 wait(60);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, -39);
 set_val(PS4_RY, 26);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 0);
 set_val(PS4_RY, 0);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, -20);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, -41);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, -63);
 set_val(PS4_LY, -34);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, -66);
 set_val(PS4_LY, -35);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, -100);
 set_val(PS4_LY, -38);
 wait(830);
 set_val(PS4_R2, 0);
 set_val(PS4_LX, -100);
 set_val(PS4_LY, -40);
 wait(80);
 set_val(PS4_LX, -89);
 set_val(PS4_LY, -40);
 wait(10);
 set_val(PS4_LX, -54);
 set_val(PS4_LY, -39);
 wait(10);
 set_val(PS4_LX, -50);
 set_val(PS4_LY, -37);
 wait(10);
 set_val(PS4_LX, -20);
 set_val(PS4_LY, -34);
 wait(10);
}
combo escaperight {
 set_val(PS4_R2, 100);
 wait(30);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, 41);
 wait(30);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, 45);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, 48);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, 50);
 wait(20);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 20);
 set_val(PS4_LX, 51);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 49);
 set_val(PS4_RY, 34);
 set_val(PS4_LX, 53);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 75);
 set_val(PS4_RY, 36);
 set_val(PS4_LX, 53);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 79);
 set_val(PS4_RY, 40);
 set_val(PS4_LX, 54);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 81);
 set_val(PS4_RY, 43);
 set_val(PS4_LX, 54);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 86);
 set_val(PS4_RY, 46);
 set_val(PS4_LX, 54);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 88);
 set_val(PS4_RY, 47);
 set_val(PS4_LX, 55);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 90);
 set_val(PS4_RY, 47);
 set_val(PS4_LX, 58);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 91);
 set_val(PS4_RY, 47);
 set_val(PS4_LX, 61);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 90);
 set_val(PS4_RY, 45);
 set_val(PS4_LX, 82);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_RX, 0);
 set_val(PS4_RY, 0);
 set_val(PS4_LX, 85);
 wait(10);
 set_val(PS4_R2, 100);
 set_val(PS4_LX, 100);
 wait(790);
 set_val(PS4_R2, 0);
 set_val(PS4_LX, 100);
 wait(110);
 set_val(PS4_LX, 93);
 wait(20);
 set_val(PS4_LX, 88);
 wait(10);
 set_val(PS4_LX, 47);
 wait(10);
 set_val(PS4_LX, 0);
}
 
User avatar
THEVET
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Thu Sep 12, 2019 3:19 pm


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 79 guests