i need a 2k19 script made for perfect shots anywhere

GPC1 script programming for Titan One. Code examples, questions, requests.

i need a 2k19 script made for perfect shots anywhere

Postby exclaimeddavid » Mon Sep 17, 2018 5:57 am

if possible thnx u :) for ps4
User avatar
exclaimeddavid
Sergeant First Class
Sergeant First Class
 
Posts: 22
Joined: Wed Aug 15, 2018 12:52 am

Re: i need a 2k19 script made for perfect shots anywhere

Postby J2Kbr » Mon Sep 17, 2018 2:18 pm

The scripts posted in the topic linked below should also work with 2K19.

viewtopic.php?f=6&t=6995
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: i need a 2k19 script made for perfect shots anywhere

Postby pele'sghost » Tue Sep 18, 2018 6:52 pm

Code: Select all
 
 
/* Perfect Shot
 
You want to record the shot immediately after you have taken the shot and have greened it.
The shot does not have to be saved into memory if you want to change the shot timing frequently.
 
After you have recorded your standing shot or/and moving shot, you'll want to load it from memory
(Hold D-Pad Up and Press Share)
 
To perform the perfect standing shot you hold square and it will release at the correct time.
To perform the moving shot you just have to hold your stick in a direction while you shoot holding square should release at correct time.
 
Record Standing Shot (Hold D-Pad Up and Press Square)
Record Moving Shot (Hold D-Pad Up and Press Triangle)
 
INCREASE STANDING SHOT MS
Hold R3 + D-RIGHT increase +5 ms.
Hold R3 + D-LEFT decrease -5 ms.
 
INCREASE MOVING SHOT MS
Hold R3 + D-UP   increase +5 ms.
Hold R3 + D-DOWN decrease -5 ms.
 
Save Shot into Memory (Hold D-Pad Up and Press Options)
Load Shot from Memory (Hold D-Pad Up and Press Share)
 
RESET RECORDED SHOTS
(Hold D-Pad Up and Press Cross(X))
*/

 
define SHOT_BUTTON  = XB1_X;                 
define holdBtnA     = XB1_LT;         
define timelimit=300;
define HoldTime = 150;
 
 
int b_Zapis;
int w_StandingStill;
int w_RunningShot;
int w_recordedTime;
int b_Standing;
int CanUse1,CanUse2;                                                                                   
int Edit_On;                               
 
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_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
        {                                                     
            b_Standing=FALSE;                                   
        }                                                         
 
    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(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(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(Save_Timing);
    } 
}
combo 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;
}
User avatar
pele'sghost
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Tue Aug 15, 2017 12:04 am

Re: i need a 2k19 script made for perfect shots anywhere

Postby pele'sghost » Tue Sep 18, 2018 6:52 pm

It works sort of on NBA Live 19, I was wondering if the increase/decrease could be less than 5 ms maybe 1 or 2 ms
User avatar
pele'sghost
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Tue Aug 15, 2017 12:04 am

Re: i need a 2k19 script made for perfect shots anywhere

Postby J2Kbr » Wed Sep 19, 2018 10:27 am

changed the code to allow increments and decrements by 1ms. :smile0517:
Code: Select all
 
 
/* Perfect Shot
 
You want to record the shot immediately after you have taken the shot and have greened it.
The shot does not have to be saved into memory if you want to change the shot timing frequently.
 
After you have recorded your standing shot or/and moving shot, you'll want to load it from memory
(Hold D-Pad Up and Press Share)
 
To perform the perfect standing shot you hold square and it will release at the correct time.
To perform the moving shot you just have to hold your stick in a direction while you shoot holding square should release at correct time.
 
Record Standing Shot (Hold D-Pad Up and Press Square)
Record Moving Shot (Hold D-Pad Up and Press Triangle)
 
INCREASE STANDING SHOT MS
Hold R3 + D-RIGHT increase +5 ms.
Hold R3 + D-LEFT decrease -5 ms.
 
INCREASE MOVING SHOT MS
Hold R3 + D-UP   increase +5 ms.
Hold R3 + D-DOWN decrease -5 ms.
 
Save Shot into Memory (Hold D-Pad Up and Press Options)
Load Shot from Memory (Hold D-Pad Up and Press Share)
 
RESET RECORDED SHOTS
(Hold D-Pad Up and Press Cross(X))
*/

 
define SHOT_BUTTON  = XB1_X;                 
define holdBtnA     = XB1_LT;         
define timelimit=300;
define HoldTime = 150;
 
 
int b_Zapis;
int w_StandingStill;
int w_RunningShot;
int w_recordedTime;
int b_Standing;
int CanUse1,CanUse2;                                                                                   
int Edit_On;                               
 
init
{
     w_StandingStill = get_pvar(SPVAR_1, 0,4000,0);
     w_RunningShot   = get_pvar(SPVAR_2, 0,4000,0);
}
 
 
main
{
vm_tctrl(-9);
 
set_val(TRACE_1,w_StandingStill/10);
set_val(TRACE_2,w_RunningShot/10);
set_val(TRACE_3,w_recordedTime/10);
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
        {                                                     
            b_Standing=FALSE;                                   
        }                                                         
 
    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(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(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 + 1;
              Edit_On =TRUE;
        }
 
        if(event_press(XB1_DOWN))
        {
              w_RunningShot = w_RunningShot - 1;
              Edit_On =TRUE;
        }
 
        if(event_press(XB1_RIGHT))
        {
              w_StandingStill = w_StandingStill + 1;
              Edit_On =TRUE;
        }
 
        if(event_press(XB1_LEFT)) 
        {
              w_StandingStill = w_StandingStill - 1;
              Edit_On =TRUE;
        }
 
    }
    else if(Edit_On )
    {
        combo_run(Save_Timing);
    } 
}
combo 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;
}
 
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: i need a 2k19 script made for perfect shots anywhere

Postby pele'sghost » Wed Sep 19, 2018 12:10 pm

Thanks bro, I really appreciate it.
User avatar
pele'sghost
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Tue Aug 15, 2017 12:04 am

Re: i need a 2k19 script made for perfect shots anywhere

Postby pele'sghost » Thu Sep 20, 2018 1:46 pm

What I have noticed on game modes such as park and other online modes is that there are many variables that are unknown. It is not as simple as just green light timing. I have this script and it gets greens in my court. But when moving around and other stuff it changes and is not constant. A stand still shot yes but it doesn't account for other variables. I used combo magick and captured time. The other variables in online play must be discovered to get greens all the time. Also shot animations are different timings I think anyways.
Code: Select all
define SQUARE_BUTTON = PS4_SQUARE;
 
main {
     if(get_val(PS4_SQUARE)) {
        combo_run(magick);
        }
}
combo magick {
    set_val(PS4_SQUARE, 100);
    wait(570);
    set_val(PS4_SQUARE, 0);
}

I am not sure if that code is right for a simple button press of square for that amount of time. This code is not consistent it stops in different places sometimes in online play but my court stuff it hits greens. Maybe a dribble combo that gets an ankle breaker then the shot could work because wide open shots help get greens. I do not have 2K, I am on NBA live 19.
BTW I ordered Titan two, ROCK ON!
User avatar
pele'sghost
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Tue Aug 15, 2017 12:04 am

Re: i need a 2k19 script made for perfect shots anywhere

Postby J2Kbr » Fri Sep 21, 2018 9:11 am

pele'sghost wrote:BTW I ordered Titan two, ROCK ON!

Thank you! :joia: :joia: You support is truly appreciated.

Related with the script and game, unfortunately I don't have NBA 2K19 at the moment to experiment with the combo times. Hopefully one of Titan users can help with that.
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: i need a 2k19 script made for perfect shots anywhere

Postby anarkii » Thu Sep 27, 2018 1:38 pm

pele'sghost wrote:What I have noticed on game modes such as park and other online modes is that there are many variables that are unknown. It is not as simple as just green light timing. I have this script and it gets greens in my court. But when moving around and other stuff it changes and is not constant. A stand still shot yes but it doesn't account for other variables. I used combo magick and captured time. The other variables in online play must be discovered to get greens all the time. Also shot animations are different timings I think anyways.
Code: Select all
define SQUARE_BUTTON = PS4_SQUARE;
 
main {
     if(get_val(PS4_SQUARE)) {
        combo_run(magick);
        }
}
combo magick {
    set_val(PS4_SQUARE, 100);
    wait(570);
    set_val(PS4_SQUARE, 0);
}

I am not sure if that code is right for a simple button press of square for that amount of time. This code is not consistent it stops in different places sometimes in online play but my court stuff it hits greens. Maybe a dribble combo that gets an ankle breaker then the shot could work because wide open shots help get greens. I do not have 2K, I am on NBA live 19.
BTW I ordered Titan two, ROCK ON!


Hi Can you set this script in other keys (square triangle and circle) but all these settings will be a single script file.
User avatar
anarkii
Private First Class
Private First Class
 
Posts: 3
Joined: Sat Mar 18, 2017 4:24 pm

Re: i need a 2k19 script made for perfect shots anywhere

Postby pele'sghost » Thu Sep 27, 2018 3:48 pm

Here is the script but you press R3 once and it does it for a specified time, this allows you to still have square avaliable. Also I am using K Durant and my time is between 527 and 528. Does this script support 527.2? If it doesn;t please add.
Code: Select all
GPC Code: 
 
 
int shottime = 1000; //Adjust time SQUARE is held down. 1000 = 1 second
 
main
{
  if(event_press(PS4_R3))
  {
    combo_run(HOLDSQUARE);
  }
}
 
combo HOLDSQUARE
{
    set_val(PS4_SQUARE, 100);
    wait(shottime);
    set_val(PS4_SQUARE, 0);
}
User avatar
pele'sghost
Master Sergeant
Master Sergeant
 
Posts: 41
Joined: Tue Aug 15, 2017 12:04 am

Next

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 88 guests