fortnite script i get an error when i try to run it

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

fortnite script i get an error when i try to run it

Postby LE5BLOCK » Sat Jun 09, 2018 2:17 pm

Code: Select all
// GPC Online Library
// fortnite_all_in_one_1.06_.gpc
 
// GPC Online Library
// fortnite_all_in_one_1.06_.gpc
 
// GPC Online Library
// fortnite_all_in_one_1.06_.gpc
 
// GPC Online Library
// fortnite_all_in_one_1.06_.gpc
 
/*
Author: WalterHMartinez
Credits:
HH4rdCor3 : Tap script
 
 
 
 
                                                                            CONSOLES: PS4 & XBOX 1
                                                                            FEATURES:
                                                                                   ADVANCED Anti Recoil
 
                                                                                   DROPSHOT - HOLD ADS + PRESS RS(R3)
 
                                                                                   Rapid Fire - HOLD LT/L2 + TRIANGLE(Y)
 =
                                                                                   Double PUMP - RIGHT D-PAD -- HOLD ADS + SHOOT BUTTON 
 
                                                                                   Aim Abuse (Auto Aim) - LT/L2 + LEFT
 
                                                                                   SENSITIVE AIM ASSIST - LT/L2 + LEFT
 
                                                                                   Aim Assist - LT/L2 + UP
 
                                                                                   Auto Run - ON BY DEFAULT
 
                                                                                   Ghost Peeking - ALWAYS ON -- HOLD ADS + LB/L1 -- FOR SINGLE SHOT WEAPONS
 
                                                                                   100% ACCURACY - ALWAYS ON -- HOLD ADS + RB/R1 -- FOR SINGLE SHOT WEAPONS
                                                                                   ------------------------------------------------------------------------
                                                                                   ------------------------------------------------------------------------
                                                                                   --LED INICATOR--
                                                                                   FLASH GREEN   = ON
                                                                                   FLASH RED     = OFF
                                                                                   100% ACCURACY = FLASH YELLOW WHILE USIN
                                                                                   GHOST PEEK    = FLASH GREEN EVERYTIME YOU HOLD ADS + TAP LB
 
 
 
 
*/

 
                                                            //RAPID FIRE OFF BY DEFAULT: HOLD L2 (LT) AND HOLD R2 (RT)
                                                            int rapid_onoff = FALSE; // HOLD "ADS_BTN" and TAP "RAPID" BUTTON for toggle ON_OFF
 
                                                            //AUTORUN ON BY DEFAULT
                                                            int AutoRun        = TRUE;//CHANGE 'TRUE' TO 'FALSE' TO TURN AUTO RUN OFF
 
 
                                                            // OG DOUBLE TACT SHOTGUN JITTER: HOLD L2 (LT) AND HOLD R2 (RT)
                                                            int Double_Tact = FALSE; // TAP "TACT" BUTTON for toggle ON_OFF
 
 
                                                            //AR OP AIM ABUSE AUTO AIM WHEN ADS AND FIRE
                                                            int AR_AimAssist_on = TRUE; // HOLD "ADS_BTN" and TAP "LEFT" for toggle ON_OFF
 
 
                                                            //AIM ASSIST V2
                                                            int AimAssist_onoff = FALSE; // HOLD "ADS_BTN" and TAP "UP" for toggle ON_OFF
                                                            //AIM ASSIST V2 HOW MUCH SCREEN SHAKE
                                                            int shake = 20; //V2 //23 is Good for SG
 
                                                            //OLD SCHOOL AIM ABUSE (HOLD L2(LT) MORE THAN 90%)
                                                            int SENASSIST_onoff = FALSE; // HOLD "ADS_BTN" and TAP "LEFT" for toggle ON_OFF 
 
                                                            //DROPSHOT (HOLD LT(L2) AND PRESS RS(R3)
                                                            int Drop_onoff = FALSE
 
                                                            int Ghost_Peek
 
 
 
 
 
 
 
                                                            //BUTTONS:
 
 
                                                            //RAPID FIRE BUTTON
                                                            int RAPID = 17; // TRIANGLE(Y)
 
                                                            //GHOST PEEK BUTTON
                                                            define DROP = 20;
 
                                                            //DOUBLE TACT BUTTON
                                                            define Double_Tact_Button = 16; //RIGHT //CHANGED TO DOUBLE PUMP
 
 
 
 
 //----------------------------------------
 // BUTTON LAYOUT: COMBAT PRO
 int a; int b;
 define FIRE_BTN = 4; //XB1_RB //PS4_R2
 define ADS_BTN = 7; //XB1_LB //PS4_L2
 define CROUCH_BTN = 5; //XB1_RS //PS4_R3
 define SPRINT_BTN = 8; //XB1_LS //PS4_L3
 define JUMP_BTN = 19; //XB1_A  //PS4_CROSS
 define NEXT_PIECE = 3; //XB1_RT //PS4_R1
 define LEFT_BUMP = 6; //XB1_LT //PS4_L1
 define SWAP_BTN = 17; //XB1_Y  //PS4_TRIANGLE
 define BUILD_BTN = 18; //XB1_B  //PS4_CIRCLE
 define WALL_BTN = 4; //XB1_RB //PS4_R2
 define STAIRS_BTN = 7; //XB1_LB //PS4_L2
 define FLOOR_BTN = 3; //XB1_RT //PS4_R1
 define ROOF_BTN = 6; //XB1_LT //PS4_L1
 define RELOAD_BTN = 20; //XB1_X //PS4_SQAURE
 define R_X = 9; //XB1_RX //PS4_RX
 define R_Y = 10; //XB1_RY //PS4_RY
 define L_X = 11; //XB1_LX //PS4_LX
 define L_Y = 12; //XB1_LY //PS4_LY
 define UP = 13; //XB1_UP //PS4_UP
 define DOWN = 14; //XB1_DOWN //PS4_DOWN
 define LEFT = 15; //XB1_LEFT //PS4_LEFT
 define RIGHT = 16; //XB1_RIGHT //PS4_RIGHT
 define LX         = XB1_LX
   define RX         = XB1_RX
   define RY         = XB1_RY
   define LY         = XB1_LY
 
 
 
 //-------------------------------------------------------------------------------------------
 //COLOR IDENTIFICATION             
 
 
 
 
 
 
 
 
 
 //UNMAPPING CONTROLS
 unmap 16; //RIGHT
 //END
 //-----------------------------------------------------
 
 //100% ACCURACY 
 int SINGLESHOT;
 //ANTI RECOIL SETTINGS
 int ANTI_RECOIL; // For AntiRecoil combo
 int anti_recoil; // For AntiRecoil combo
 define AR_Release = 25;
 define ONLY_WITH_SCOPE = TRUE; // if TRUE Antirecoil IS ON only when scoping - if FALSE, is always ON
 //
 //RUMBLE
 int rumble_type = RUMBLE_A;
 //
 //AIM ABUSE HOLD & WAIT
 int aimabuse_hold;
 int aimabuse_rest;
 //
 
 
 //---------------------------------
 
main {
/////////////////////////////////////////////////////////////////////////////////
     // ON-OFF SETTINGS:
 
//////////////100% ACCURACY///////////////////
if (get_val(ADS_BTN) && get_val(NEXT_PIECE)) {
                combo_stop(AIM_ABUSE);}
if (get_val(ADS_BTN) && get_val(NEXT_PIECE)) {
          combo_run(SINGLESHOT);
          combo_run(Notify);a=4;b=2; //FLASH GREEN WHILE USING
set_val(NEXT_PIECE, 0);
         }
 
 
/////////GHOST PEEK\\\\\\\\\
if (get_val(ADS_BTN) && get_val(LEFT_BUMP)) {

                combo_stop(AIM_ABUSE);
         // HOLD L2(LT) and PRESS LB
         if (event_press(LEFT_BUMP)) {
                combo_run( SINGLE_SNEAK_PEAK)
                combo_run(Notify);a=0;b=2;
       }
         set_val(LEFT_BUMP, 0);
         }
 
////////AUTO RUN\\\\\\\\\\\\         
if(AutoRun){if(get_val(LY) <= -20){set_val(SPRINT_BTN, 100);
}
 
////////AIM ASSIST\\\\\\\\\\     
if (get_val(ADS_BTN) && event_press(UP)) {
         AimAssist_onoff = !AimAssist_onoff;
     if(AimAssist_onoff == TRUE){combo_run(Notify);a=0;b=2;}
     if(AimAssist_onoff == FALSE){combo_run(Notify);a=2;b=0;}
         rumble_A_if_true(AimAssist_onoff);
       }
     }
 
/////////RAPID FIRE\\\\\\\\\
if (get_val(ADS_BTN) && event_press(RAPID)) {//ADS + TRIANGLE(Y)

         rapid_onoff = !rapid_onoff;
     if(rapid_onoff == TRUE){combo_run(Notify);a=0;b=2;}
     if(rapid_onoff == FALSE){combo_run(Notify);a=2;b=0;}
         rumble_A_if_true(rapid_onoff);
     }
////////SENS AIM ABUSE\\\\\\\\\     
if (get_val(ADS_BTN) && event_press(LEFT)) {
         SENASSIST_onoff = !SENASSIST_onoff;
         AR_AimAssist_on = !AR_AimAssist_on;
     if(SENASSIST_onoff == TRUE){combo_run(Notify);a=4;b=2;}
     if(SENASSIST_onoff == FALSE){combo_run(Notify);a=2;b=0;}
         rumble_A_if_true(SENASSIST_onoff);
     }
//////DOUBLE PUMP\\\\\\\\\
     if (!get_val(ADS_BTN) && event_press(Double_Tact_Button)) {

        Double_Tact = !Double_Tact;
     if(Double_Tact == TRUE){combo_run(Notify);a=0;b=2;}
     if(Double_Tact == FALSE){combo_run(Notify);a=2;b=0;}
         rumble_A_if_true(Double_Tact);
     }
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
     if (AimAssist_onoff) {
         if (get_val(ADS_BTN))
             combo_run(Auto_Aimm);
         else
             combo_stop(Auto_Aimm);
}
 if (get_val(ADS_BTN)) {
             if (abs(get_val(9)) > 15 || abs(get_val(10)) > 15) {
                 combo_stop(Auto_Aimm);
             }
 
/////////////////////////////////////////////////////////////////////////////////
if (rapid_onoff) {
         if (get_val(ADS_BTN) && get_val(FIRE_BTN)) { // HOLD L2 AND R2 FOR RAPID (DONE LIKE THIS TO BE ABLE TO EDIT OBJECTS)
             combo_run(RAPID_FIRE);
             ANTI_RECOIL = 11;
         }
     }
/////////////////////////////////////////////////////////////////////////////////
if (get_val(ADS_BTN) && get_val(FIRE_BTN)) {
         ANTI_RECOIL = 7;
         combo_run(AntiRecoil);
     }
/////////////////////////////////////////////////////////////////////////////////
if (AR_AimAssist_on) {
 
         if (get_val(ADS_BTN) && get_val(FIRE_BTN)) {
             aimabuse_hold = 220; // HOW LONG IS L2 HELD FOR
             aimabuse_rest = 18; // HOW LONG IS L2 NOT HELD FOR
             combo_run(AIM_ABUSE); //AIM ABUSE
         } else {
             combo_stop(AIM_ABUSE);
         }
     }
/////////////////////////////////////////////////////////////////////////////////
if (SENASSIST_onoff) {
         if (get_val(ADS_BTN) > 95) {
         if(SENASSIST_onoff == TRUE){combo_run(Notify);a=4;b=2;}
         if(SENASSIST_onoff == FALSE){combo_run(Notify);a=2;b=0;} 
             aimabuse_hold = 110; // HOW LONG IS L2 HELD FOR
             aimabuse_rest = 18; // HOW LONG IS L2 NOT HELD FOR
             combo_run(AIM_ABUSE); //AIM ABUSE
         } else {
             combo_stop(AIM_ABUSE);
         }
     }
//////////////////////////////////////////////////////////////
if (get_val(ADS_BTN) && event_press(CROUCH_BTN)) {
        Drop_onoff = !Drop_onoff;
        if(Drop_onoff == TRUE){combo_run(Notify);a=0;b=2;}
     if(Drop_onoff == FALSE){combo_run(Notify);a=2;b=0;}
        rumble_A_if_true(Drop_onoff);
        }
 
///////////////////////////////////////////////////////////////
if (Double_Tact) {
         if (get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 175) { //HOLD FIRE BTN FOR MORE THAN 175 MS TO RUN JITTER
             set_val(FIRE_BTN, 0);
             combo_run(Double_Tact);
         } else {
             combo_stop(Double_Tact);
         }
         if (get_val(ADS_BTN)) {
             combo_run(BR_AIM_ASSIST);
         } else {
             combo_stop(BR_AIM_ASSIST);
 }
 }
/////////////////////////////////////////////////////////////////////////////////
if (Drop_onoff) {
        if (get_val(ADS_BTN) && get_val(FIRE_BTN) > +90) { //Remove > +90 to just drop shot when holding Both L2 and R2
            combo_run(Drop_shot);
        }
/////////////////////////////////////////////////////////////////////////////////
if (!get_val(ADS_BTN) && get_val(L_Y) < -90) {//AUTO RUN
         set_val(SPRINT_BTN, 100);
     }
/////////////////////////////////////////////////////////////////////////////////
if (Ghost_Peek) {
         if (get_val(ADS_BTN)) {
 if (event_press(LEFT_BUMP)) {
                 ANTI_RECOIL = 2;
                 combo_run(SINGLE_SNEAK_PEAK);
             }
            set_val(LEFT_BUMP, 0);}
}}
////////////////////////////////////////////////////////////////////////////////
if (get_val(FIRE_BTN)) { // IF YOU PRESS AT LEAST 1% OF FIRE BTN IT'LL HAVE AN OUTPUT OF 100
         set_val(FIRE_BTN, 100);}
}
}
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// COMBO BLOCKS
 combo Notify {
   set_led(LED_1,0);
   set_led(LED_2,a);
   set_led(LED_3,b);
   set_led(LED_4,0);
   wait(550);
   set_led(LED_1,0);
   set_led(LED_2,0);
   set_led(LED_3,0);
   set_led(LED_4,0);
   wait(250);
   set_led(LED_1,0);
   set_led(LED_2,a);
   set_led(LED_3,b);
   set_led(LED_4,0);
   wait(250);
   set_led(LED_1,0);
   set_led(LED_2,0);
   set_led(LED_3,0);
   set_led(LED_4,0);
   wait(250);
   set_led(LED_1,0);
   set_led(LED_2,a);
   set_led(LED_3,b);
   set_led(LED_4,0);
   wait(250);
   reset_leds();
}
 combo Auto_Aimm { //AIM ASSIST V2
     set_val(R_Y, shake * -1); //1 
     wait(20)
     set_val(R_X, shake); //1 
     wait(20)
     set_val(R_Y, shake); //1 
     wait(20)
     set_val(R_X, shake * -1); //1 
     wait(20)
 } //end
 combo Double_Tact { //DOUBLE TACT // DOUBLE HEAVY
     set_val(NEXT_PIECE, 100);
     wait(780); // IF SWITCHING TO(PUMP) SET 780(CAN ALSO TRY 770) ELSE TO 650 FOR (TACT/ HEAVY)
     set_val(FIRE_BTN, 100);
     wait(30);
     set_val(LEFT_BUMP, 100);
     wait(650); // IF SWITCHING TO(PUMP) SET 780(CAN ALSO TRY 770) ELSE TO 650 FOR (TACT/ HEAVY)
     set_val(FIRE_BTN, 100);
     wait(30);
 }
 combo JUMP {
     wait(120);
     set_val(JUMP_BTN, 100);
     wait(110);
     set_val(JUMP_BTN, 0);
     wait(200); // how long to wait until next Jump
 } //end
 combo SINGLESHOT {
set_val(PS4_R2,100);
wait(110);
wait(660);
set_val(PS4_R2,100);
}
 
 
 
 combo SINGLE_SNEAK_PEAK {
    set_val(CROUCH_BTN, 100);
    wait(15);
    set_val(CROUCH_BTN, 0);
    wait(15);
    set_val(FIRE_BTN, 100);
    wait(15);
    set_val(FIRE_BTN, 0);
    wait(10);//INCREASE THIS IF YOU SHOOT THE STAIRS
    set_val(CROUCH_BTN, 100);
    wait(15);
    set_val(CROUCH_BTN, 0);
} // END
 
 
 
 
 combo AIM_ABUSE { // RAPID AIM
     set_val(ADS_BTN, 100);
     wait(aimabuse_hold);
     set_val(ADS_BTN, 0);
     wait(aimabuse_rest);
 } //end
 
 
 
 
 combo RAPID_FIRE {
     set_val(FIRE_BTN, 100);
     wait(10);
     set_val(FIRE_BTN, 0);
     wait(10);
 } //end
 
 
 
 
 
 
 
 
 combo BR_AIM_ASSIST { //AR Auto Aim
     set_val(ADS_BTN, 100);
     wait(aimabuse_hold);
     set_val(ADS_BTN, 0);
     wait(aimabuse_rest);
 } //end
 
 combo Drop_shot {
    set_val(5, 100); //PS4_R3 //XB1_RS
    wait(80);
    wait(60);
}
 
 combo VIBRATE {
     set_rumble(rumble_type, 100);
     wait(300);
     reset_rumble();
 } //end
 
 
 
 
 
 
 
 
 //--------------------------------------------------------------
 
 
 
 
 combo AntiRecoil {
     anti_recoil = get_val(R_Y) + ANTI_RECOIL;
     if (anti_recoil > 100) anti_recoil = 100;
     set_val(R_Y, anti_recoil);
 }
 
 
 
 
 function rumble_A_if_true(var) {
     if (var) rumble_type = RUMBLE_A;
     else rumble_type = RUMBLE_B;
     combo_run(VIBRATE);
 }
 // COLOR LED function                               
 //--------------------------------------------------------------
User avatar
LE5BLOCK
Sergeant First Class
Sergeant First Class
 
Posts: 23
Joined: Sun Dec 10, 2017 9:10 am

Re: fortnite script i get an error when i try to run it

Postby J2Kbr » Mon Jun 11, 2018 12:24 pm

Errors fixed:
Code: Select all
// GPC Online Library
// fortnite_all_in_one_1.06_.gpc
 
// GPC Online Library
// fortnite_all_in_one_1.06_.gpc
 
// GPC Online Library
// fortnite_all_in_one_1.06_.gpc
 
// GPC Online Library
// fortnite_all_in_one_1.06_.gpc
 
/*
Author: WalterHMartinez
Credits:
HH4rdCor3 : Tap script
 
 
 
 
                                                                            CONSOLES: PS4 & XBOX 1
                                                                            FEATURES:
                                                                                   ADVANCED Anti Recoil
 
                                                                                   DROPSHOT - HOLD ADS + PRESS RS(R3)
 
                                                                                   Rapid Fire - HOLD LT/L2 + TRIANGLE(Y)
 =
                                                                                   Double PUMP - RIGHT D-PAD -- HOLD ADS + SHOOT BUTTON 
 
                                                                                   Aim Abuse (Auto Aim) - LT/L2 + LEFT
 
                                                                                   SENSITIVE AIM ASSIST - LT/L2 + LEFT
 
                                                                                   Aim Assist - LT/L2 + UP
 
                                                                                   Auto Run - ON BY DEFAULT
 
                                                                                   Ghost Peeking - ALWAYS ON -- HOLD ADS + LB/L1 -- FOR SINGLE SHOT WEAPONS
 
                                                                                   100% ACCURACY - ALWAYS ON -- HOLD ADS + RB/R1 -- FOR SINGLE SHOT WEAPONS
                                                                                   ------------------------------------------------------------------------
                                                                                   ------------------------------------------------------------------------
                                                                                   --LED INICATOR--
                                                                                   FLASH GREEN   = ON
                                                                                   FLASH RED     = OFF
                                                                                   100% ACCURACY = FLASH YELLOW WHILE USIN
                                                                                   GHOST PEEK    = FLASH GREEN EVERYTIME YOU HOLD ADS + TAP LB
 
 
 
 
*/

 
                                                            //RAPID FIRE OFF BY DEFAULT: HOLD L2 (LT) AND HOLD R2 (RT)
                                                            int rapid_onoff = FALSE; // HOLD "ADS_BTN" and TAP "RAPID" BUTTON for toggle ON_OFF
 
                                                            //AUTORUN ON BY DEFAULT
                                                            int AutoRun        = TRUE;//CHANGE 'TRUE' TO 'FALSE' TO TURN AUTO RUN OFF
 
 
                                                            // OG DOUBLE TACT SHOTGUN JITTER: HOLD L2 (LT) AND HOLD R2 (RT)
                                                            int Double_Tact = FALSE; // TAP "TACT" BUTTON for toggle ON_OFF
 
 
                                                            //AR OP AIM ABUSE AUTO AIM WHEN ADS AND FIRE
                                                            int AR_AimAssist_on = TRUE; // HOLD "ADS_BTN" and TAP "LEFT" for toggle ON_OFF
 
 
                                                            //AIM ASSIST V2
                                                            int AimAssist_onoff = FALSE; // HOLD "ADS_BTN" and TAP "UP" for toggle ON_OFF
                                                            //AIM ASSIST V2 HOW MUCH SCREEN SHAKE
                                                            int shake = 20; //V2 //23 is Good for SG
 
                                                            //OLD SCHOOL AIM ABUSE (HOLD L2(LT) MORE THAN 90%)
                                                            int SENASSIST_onoff = FALSE; // HOLD "ADS_BTN" and TAP "LEFT" for toggle ON_OFF 
 
                                                            //DROPSHOT (HOLD LT(L2) AND PRESS RS(R3)
                                                            int Drop_onoff = FALSE;
 
                                                            int Ghost_Peek;
 
 
 
 
 
 
 
                                                            //BUTTONS:
 
 
                                                            //RAPID FIRE BUTTON
                                                            int RAPID = 17; // TRIANGLE(Y)
 
                                                            //GHOST PEEK BUTTON
                                                            define DROP = 20;
 
                                                            //DOUBLE TACT BUTTON
                                                            define Double_Tact_Button = 16; //RIGHT //CHANGED TO DOUBLE PUMP
 
 
 
 
 //----------------------------------------
 // BUTTON LAYOUT: COMBAT PRO
 int a; int b;
 define FIRE_BTN = 4; //XB1_RB //PS4_R2
 define ADS_BTN = 7; //XB1_LB //PS4_L2
 define CROUCH_BTN = 5; //XB1_RS //PS4_R3
 define SPRINT_BTN = 8; //XB1_LS //PS4_L3
 define JUMP_BTN = 19; //XB1_A  //PS4_CROSS
 define NEXT_PIECE = 3; //XB1_RT //PS4_R1
 define LEFT_BUMP = 6; //XB1_LT //PS4_L1
 define SWAP_BTN = 17; //XB1_Y  //PS4_TRIANGLE
 define BUILD_BTN = 18; //XB1_B  //PS4_CIRCLE
 define WALL_BTN = 4; //XB1_RB //PS4_R2
 define STAIRS_BTN = 7; //XB1_LB //PS4_L2
 define FLOOR_BTN = 3; //XB1_RT //PS4_R1
 define ROOF_BTN = 6; //XB1_LT //PS4_L1
 define RELOAD_BTN = 20; //XB1_X //PS4_SQAURE
 define R_X = 9; //XB1_RX //PS4_RX
 define R_Y = 10; //XB1_RY //PS4_RY
 define L_X = 11; //XB1_LX //PS4_LX
 define L_Y = 12; //XB1_LY //PS4_LY
 define UP = 13; //XB1_UP //PS4_UP
 define DOWN = 14; //XB1_DOWN //PS4_DOWN
 define LEFT = 15; //XB1_LEFT //PS4_LEFT
 define RIGHT = 16; //XB1_RIGHT //PS4_RIGHT
 define LX         = XB1_LX;
   define RX         = XB1_RX;
   define RY         = XB1_RY;
   define LY         = XB1_LY;
 
 
 
 //-------------------------------------------------------------------------------------------
 //COLOR IDENTIFICATION             
 
 
 
 
 
 
 
 
 
 //UNMAPPING CONTROLS
 unmap 16; //RIGHT
 //END
 //-----------------------------------------------------
 
 //100% ACCURACY 
 int SINGLESHOT;
 //ANTI RECOIL SETTINGS
 int ANTI_RECOIL; // For AntiRecoil combo
 int anti_recoil; // For AntiRecoil combo
 define AR_Release = 25;
 define ONLY_WITH_SCOPE = TRUE; // if TRUE Antirecoil IS ON only when scoping - if FALSE, is always ON
 //
 //RUMBLE
 int rumble_type = RUMBLE_A;
 //
 //AIM ABUSE HOLD & WAIT
 int aimabuse_hold;
 int aimabuse_rest;
 //
 
 
 //---------------------------------
 
main {
/////////////////////////////////////////////////////////////////////////////////
     // ON-OFF SETTINGS:
 
//////////////100% ACCURACY///////////////////
if (get_val(ADS_BTN) && get_val(NEXT_PIECE)) {
                combo_stop(AIM_ABUSE);}
if (get_val(ADS_BTN) && get_val(NEXT_PIECE)) {
          combo_run(SINGLESHOT_Combo);
          combo_run(Notify);a=4;b=2; //FLASH GREEN WHILE USING
set_val(NEXT_PIECE, 0);
         }
 
 
/////////GHOST PEEK\\\\\\\\\
if (get_val(ADS_BTN) && get_val(LEFT_BUMP)) {

                combo_stop(AIM_ABUSE);
         // HOLD L2(LT) and PRESS LB
         if (event_press(LEFT_BUMP)) {
                combo_run( SINGLE_SNEAK_PEAK)
                combo_run(Notify);a=0;b=2;
       }
         set_val(LEFT_BUMP, 0);
         }
 
////////AUTO RUN\\\\\\\\\\\\         
if(AutoRun){if(get_val(LY) <= -20){set_val(SPRINT_BTN, 100);
}
 
////////AIM ASSIST\\\\\\\\\\     
if (get_val(ADS_BTN) && event_press(UP)) {
         AimAssist_onoff = !AimAssist_onoff;
     if(AimAssist_onoff == TRUE){combo_run(Notify);a=0;b=2;}
     if(AimAssist_onoff == FALSE){combo_run(Notify);a=2;b=0;}
         rumble_A_if_true(AimAssist_onoff);
       }
     }
 
/////////RAPID FIRE\\\\\\\\\
if (get_val(ADS_BTN) && event_press(RAPID)) {//ADS + TRIANGLE(Y)

         rapid_onoff = !rapid_onoff;
     if(rapid_onoff == TRUE){combo_run(Notify);a=0;b=2;}
     if(rapid_onoff == FALSE){combo_run(Notify);a=2;b=0;}
         rumble_A_if_true(rapid_onoff);
     }
////////SENS AIM ABUSE\\\\\\\\\     
if (get_val(ADS_BTN) && event_press(LEFT)) {
         SENASSIST_onoff = !SENASSIST_onoff;
         AR_AimAssist_on = !AR_AimAssist_on;
     if(SENASSIST_onoff == TRUE){combo_run(Notify);a=4;b=2;}
     if(SENASSIST_onoff == FALSE){combo_run(Notify);a=2;b=0;}
         rumble_A_if_true(SENASSIST_onoff);
     }
//////DOUBLE PUMP\\\\\\\\\
     if (!get_val(ADS_BTN) && event_press(Double_Tact_Button)) {

        Double_Tact = !Double_Tact;
     if(Double_Tact == TRUE){combo_run(Notify);a=0;b=2;}
     if(Double_Tact == FALSE){combo_run(Notify);a=2;b=0;}
         rumble_A_if_true(Double_Tact);
     }
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
     if (AimAssist_onoff) {
         if (get_val(ADS_BTN))
             combo_run(Auto_Aimm);
         else
             combo_stop(Auto_Aimm);
}
 if (get_val(ADS_BTN)) {
             if (abs(get_val(9)) > 15 || abs(get_val(10)) > 15) {
                 combo_stop(Auto_Aimm);
             }
 
/////////////////////////////////////////////////////////////////////////////////
if (rapid_onoff) {
         if (get_val(ADS_BTN) && get_val(FIRE_BTN)) { // HOLD L2 AND R2 FOR RAPID (DONE LIKE THIS TO BE ABLE TO EDIT OBJECTS)
             combo_run(RAPID_FIRE);
             ANTI_RECOIL = 11;
         }
     }
/////////////////////////////////////////////////////////////////////////////////
if (get_val(ADS_BTN) && get_val(FIRE_BTN)) {
         ANTI_RECOIL = 7;
         combo_run(AntiRecoil);
     }
/////////////////////////////////////////////////////////////////////////////////
if (AR_AimAssist_on) {
 
         if (get_val(ADS_BTN) && get_val(FIRE_BTN)) {
             aimabuse_hold = 220; // HOW LONG IS L2 HELD FOR
             aimabuse_rest = 18; // HOW LONG IS L2 NOT HELD FOR
             combo_run(AIM_ABUSE); //AIM ABUSE
         } else {
             combo_stop(AIM_ABUSE);
         }
     }
/////////////////////////////////////////////////////////////////////////////////
if (SENASSIST_onoff) {
         if (get_val(ADS_BTN) > 95) {
         if(SENASSIST_onoff == TRUE){combo_run(Notify);a=4;b=2;}
         if(SENASSIST_onoff == FALSE){combo_run(Notify);a=2;b=0;} 
             aimabuse_hold = 110; // HOW LONG IS L2 HELD FOR
             aimabuse_rest = 18; // HOW LONG IS L2 NOT HELD FOR
             combo_run(AIM_ABUSE); //AIM ABUSE
         } else {
             combo_stop(AIM_ABUSE);
         }
     }
//////////////////////////////////////////////////////////////
if (get_val(ADS_BTN) && event_press(CROUCH_BTN)) {
        Drop_onoff = !Drop_onoff;
        if(Drop_onoff == TRUE){combo_run(Notify);a=0;b=2;}
     if(Drop_onoff == FALSE){combo_run(Notify);a=2;b=0;}
        rumble_A_if_true(Drop_onoff);
        }
 
///////////////////////////////////////////////////////////////
if (Double_Tact) {
         if (get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 175) { //HOLD FIRE BTN FOR MORE THAN 175 MS TO RUN JITTER
             set_val(FIRE_BTN, 0);
             combo_run(Double_Tact_Combo);
         } else {
             combo_stop(Double_Tact_Combo);
         }
         if (get_val(ADS_BTN)) {
             combo_run(BR_AIM_ASSIST);
         } else {
             combo_stop(BR_AIM_ASSIST);
 }
 }
/////////////////////////////////////////////////////////////////////////////////
if (Drop_onoff) {
        if (get_val(ADS_BTN) && get_val(FIRE_BTN) > +90) { //Remove > +90 to just drop shot when holding Both L2 and R2
            combo_run(Drop_shot);
        }
/////////////////////////////////////////////////////////////////////////////////
if (!get_val(ADS_BTN) && get_val(L_Y) < -90) {//AUTO RUN
         set_val(SPRINT_BTN, 100);
     }
/////////////////////////////////////////////////////////////////////////////////
if (Ghost_Peek) {
         if (get_val(ADS_BTN)) {
 if (event_press(LEFT_BUMP)) {
                 ANTI_RECOIL = 2;
                 combo_run(SINGLE_SNEAK_PEAK);
             }
            set_val(LEFT_BUMP, 0);}
}}
////////////////////////////////////////////////////////////////////////////////
if (get_val(FIRE_BTN)) { // IF YOU PRESS AT LEAST 1% OF FIRE BTN IT'LL HAVE AN OUTPUT OF 100
         set_val(FIRE_BTN, 100);}
}
}
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// COMBO BLOCKS
 combo Notify {
   set_led(LED_1,0);
   set_led(LED_2,a);
   set_led(LED_3,b);
   set_led(LED_4,0);
   wait(550);
   set_led(LED_1,0);
   set_led(LED_2,0);
   set_led(LED_3,0);
   set_led(LED_4,0);
   wait(250);
   set_led(LED_1,0);
   set_led(LED_2,a);
   set_led(LED_3,b);
   set_led(LED_4,0);
   wait(250);
   set_led(LED_1,0);
   set_led(LED_2,0);
   set_led(LED_3,0);
   set_led(LED_4,0);
   wait(250);
   set_led(LED_1,0);
   set_led(LED_2,a);
   set_led(LED_3,b);
   set_led(LED_4,0);
   wait(250);
   reset_leds();
}
 combo Auto_Aimm { //AIM ASSIST V2
     set_val(R_Y, shake * -1); //1 
     wait(20)
     set_val(R_X, shake); //1 
     wait(20)
     set_val(R_Y, shake); //1 
     wait(20)
     set_val(R_X, shake * -1); //1 
     wait(20)
 } //end
 combo Double_Tact_Combo { //DOUBLE TACT // DOUBLE HEAVY
     set_val(NEXT_PIECE, 100);
     wait(780); // IF SWITCHING TO(PUMP) SET 780(CAN ALSO TRY 770) ELSE TO 650 FOR (TACT/ HEAVY)
     set_val(FIRE_BTN, 100);
     wait(30);
     set_val(LEFT_BUMP, 100);
     wait(650); // IF SWITCHING TO(PUMP) SET 780(CAN ALSO TRY 770) ELSE TO 650 FOR (TACT/ HEAVY)
     set_val(FIRE_BTN, 100);
     wait(30);
 }
 combo JUMP {
     wait(120);
     set_val(JUMP_BTN, 100);
     wait(110);
     set_val(JUMP_BTN, 0);
     wait(200); // how long to wait until next Jump
 } //end
 combo SINGLESHOT_Combo {
set_val(PS4_R2,100);
wait(110);
wait(660);
set_val(PS4_R2,100);
}
 
 
 
 combo SINGLE_SNEAK_PEAK {
    set_val(CROUCH_BTN, 100);
    wait(15);
    set_val(CROUCH_BTN, 0);
    wait(15);
    set_val(FIRE_BTN, 100);
    wait(15);
    set_val(FIRE_BTN, 0);
    wait(10);//INCREASE THIS IF YOU SHOOT THE STAIRS
    set_val(CROUCH_BTN, 100);
    wait(15);
    set_val(CROUCH_BTN, 0);
} // END
 
 
 
 
 combo AIM_ABUSE { // RAPID AIM
     set_val(ADS_BTN, 100);
     wait(aimabuse_hold);
     set_val(ADS_BTN, 0);
     wait(aimabuse_rest);
 } //end
 
 
 
 
 combo RAPID_FIRE {
     set_val(FIRE_BTN, 100);
     wait(10);
     set_val(FIRE_BTN, 0);
     wait(10);
 } //end
 
 
 
 
 
 
 
 
 combo BR_AIM_ASSIST { //AR Auto Aim
     set_val(ADS_BTN, 100);
     wait(aimabuse_hold);
     set_val(ADS_BTN, 0);
     wait(aimabuse_rest);
 } //end
 
 combo Drop_shot {
    set_val(5, 100); //PS4_R3 //XB1_RS
    wait(80);
    wait(60);
}
 
 combo VIBRATE {
     set_rumble(rumble_type, 100);
     wait(300);
     reset_rumble();
 } //end
 
 
 
 
 
 
 
 
 //--------------------------------------------------------------
 
 
 
 
 combo AntiRecoil {
     anti_recoil = get_val(R_Y) + ANTI_RECOIL;
     if (anti_recoil > 100) anti_recoil = 100;
     set_val(R_Y, anti_recoil);
 }
 
 
 
 
 function rumble_A_if_true(var) {
     if (var) rumble_type = RUMBLE_A;
     else rumble_type = RUMBLE_B;
     combo_run(VIBRATE);
 }
 // COLOR LED function                               
 //--------------------------------------------------------------
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: fortnite script i get an error when i try to run it

Postby wwwDODEwww » Mon Jun 11, 2018 7:02 pm

work in titan two ??
User avatar
wwwDODEwww
Private
Private
 
Posts: 1
Joined: Mon Jun 11, 2018 6:59 pm

Re: fortnite script i get an error when i try to run it

Postby J2Kbr » Wed Jun 13, 2018 3:37 pm

wwwDODEwww wrote:work in titan two ??

The Titan Two has back compatibility with scripts from Titan One. Just include the titanone.gph header file at the very beginning of the 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


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 85 guests