Elder Scrolls Online GamePack!

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

Re: Elder Scrolls Online GamePack!

Postby Scachi » Sat Oct 19, 2019 3:37 am

Vonburner wrote:Tried that it doesn't work on T2, Even increased the rumble to make sure im getting the right rumble it will do it all in terms of letting u know if its off or on, but wont do the weave

I only tested it via the Device Monitor as I don't own the game.
Take a look at the "Device Monitor", you should see the weave combo running there on the right side (output).
If it isn't working in-game but the device monitor is showing the correct combo then it could be a timing issue of the combo.

This is the script I was using:
Code: Select all
#include <titanone.gph>
///////////////////////////////////////////////////////////
//Elder Scrolls Online Gamepack V2.1 With Block Cancleing//
///////////////////////////////////////////////////////////
 
/*  ///////////////////////
    //Section 1: CONTROLS//
    ///////////////////////
 
  Reset Controls
        -Press Start to turn scripts off
            1. If you hold down Left Stick Click while pressing start no scripts will be turned off
        -Press and hold Start for 4 seconds to reset any persistant variables.
            1. This currently consists of the light weave time, and the initial on/off settings for the
                light weave skills.
            **NOTES**
                -If you are holding Left Stick Click no scripts will be turned off
 
  Auto Walking Controls
        -Press and hold Right Stick Down and hold Left Stick Click for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Activate the script any time, initial settings are set to press sprint every 10.
                -If sprint is already on the button will still be pressed and as such will turn sprinting off.
 
  Lockpicking Controls
        -Press and hold Right Stick Down and hold D Pad Left for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Max rumble beeds to be set to 6 for Xbox One and 75 for PS4 for this script to work properly
                -Look at the lock to be picked and then activate the script
                -If you are not looking at a lock you will need to press start to get right trigger turned off
 
  Fishing Controls
        -Press and hold Right Stick Down and hold D Pad Up for about 2 seconds or until you feel a rumble to activate the script
            Then press A/Cross while looking at a fishing hole, it will fish it out for you.
 
  Farming Controls
        -Press and hold Right Stick Down and hold D Pad Right for about 2 seconds or until you feel a rumble to activate the script
            **Notes**
                -Stand ontop of something (dresser, nightstand, backpack) then activate the script
                -For best results stand on something flat (Backpacks are not flat, but dressers are) and look
                    down. Spin in 360 degreese to ensure you are looking at the desired object no matter what
                    direction you face. That is not to say you CAN'T loot backpacks, but in my experience my
                    toon falls off of them after 5 - 10 minutes of cycling.
 
  Light Weave Controls
        -Press and hold Right stick down and then hold D Pad Down for about 2 seconds or until you feel a rumble to activate the script
        -Press and hold any ablity button to toggle it being on or off (1 rumble means off, 2 rumbles means on)
        -In order to use your ultimate you must first press and hold down Left Stick Click, then press the buttons to cast ultimate
        -To set a new light weave time in-game preform a light weave attack with D Pad Down held down, or in other words:
            1. With D Pad Down held down
                A. Press right trigger
                B. Then press any ability button(Controller will rumble to acknowledge the input)
        -If you hold Left Stick Click then while light weave is active no light weave abilities will be used
            **NOTES**
                -You can turn light weaving on and off for specific buttons regardless if the light weaving
                    script is currently active or not.
                -Your settings will be save even with the Titan One turned off. Hold start for 4 seconds to
                    clear your settings back to the initial settings.
 
*/
       
 
/*  ////////////////////////////////
    //Section 2: NOTES ON SETTINGS//
    ////////////////////////////////
  Misc Settings
        -Rumble Notification defines the rumble strength of notifications. These notifications
            will happen every time user enters a menu or changes a setting. Set this high enough
            that you will feel the rumble indication.
                1. Three Rumbles means a script is being turn on or off
                2. Two rumbles means a light weave ability is toggled on or light weave time is now set.
                3. One Rumble means that a light weave ability is toggled off
 
  Lockpick Settings
        -Max_Rumble defines when to move to the next pin of the lock. Set to 6 if on Xbox One or
            set to 75 if you are on PS4.
 
  Auto Farming Settings
        -Log In Timer dictates the time inbetween pressing A to select your character and logging out
        -Lot Out Timer dictates the time inbetween pressing log out in game and pressing A to log back
            in (Remember it takes 9 extra seconds if you are in an unsafe zone)
        -Max Random decides how greatly the times to log in and out can be raised (Set to 0 to dissable)
 
  Auto Walk Settings
        -SprintSpeed defines after how many seconds to press the sprint button, this can be
            deactivated by setting to 0.
 
  Light Weaving Settings
        -LightWeaveTime defines how many Miliseconds to wait after pressing right trigger before
            casting an ability. Because this script runs every 5 MS this should be set in an
            increment of 5 MS.
        -LWTime defines how many seconds you must hold a skill button to toggle it being on or off.
        -The LW_Action skills define if light weaving is set to on or off for that particular skill,
            this can be changed in game. But you may modify them here if you know what you want for
            starting points every time you load the script.
 
   */
//////////////////////
    //Section 3: Settings//
    ///////////////////////
    int Block_Button = XB1_LB;
    int Bash_Time = 100;
 
  //Misc Settings
    int RumbleNotification = 20; //The rumble strength for all notifications
 
  //Auto Lockpick Settings   
    int Max_Rumble = 6; //set to 6 for xbox one and 75 for PS4 (Lockpick rumble detection)
 
  //Auto Walk Settings
    int SprintSpeed = 10; //This is how many seconds inbtween left stick clicks(it will turn sprint off if already sprinting. 0 will dissable.)
 
  //Auto farm scripts
    int LogInTimer = 35; //Time it takes to log on
    int LogOutTimer = 34; //Time it takes to log off
    int Max_Random = 10; //The amount of time in which logging in or out can change
 
  //Light Weaving Settings
    int LWTime = 4; //Seconds you must hold a button to toggle the lightweave for a skill on or off
    int LightWeaveTime = 70; //The time you wait after hitting right trigger and before using an ability
    //Initial On-Off values for the light weaving skills
    int LW_ActionOneOn = TRUE;   //Xbox One: X  ||  PS4: Square  //
    int LW_ActionTwoOn = TRUE;   //Xbox One: Y  ||  PS4: Triangle//
    int LW_ActionThreeOn = TRUE; //Xbox One: B  ||  PS4: Circle  //
    int LW_ActionFourOn = TRUE//Xbox One: LB ||  PS4: L1      //
    int LW_ActionFiveOn = TRUE//Xbox One: RB ||  PS4: R1      //
 
/*  //=============================\\
    ||DO NOT MODIFY BELOW THIS LINE||
    ||DO NOT MODIFY BELOW THIS LINE||
    ||DO NOT MODIFY BELOW THIS LINE||
    \\=============================//   */

 
/*Button definitions. As these are all the same index on Xbox One and PS4 these
    deffinitions will work on both consoles. Make sure to adjust the settings
    section though!*/

define Button_One = 19//Xbox One: A  ||  PS4: Cross   //
define Button_Two = 20//Xbox One: X  ||  PS4: Square  //
define Button_Three = 17;//Xbox One: Y  ||  PS4: Triangle//
define Button_Four = 18; //Xbox One: B  ||  PS4: Circle  //
define Right_Bumper = 3;
define Right_Trigger = 4;
define Right_Stick_Click = 5;
define Left_Bumper = 6;
define Left_Trigger = 7;
define Left_Stick_Click = 8;
define Select_Button = 1;
define Center_Button = 0;
define Start_Button = 2;
define D_Up = 13;
define D_Right = 16;
define D_Down = 14;
define D_Left = 15;
define LeftStick_X = 11;//Left stick left(-100) and right(+100)
define LeftStick_Y = 12;//Left stick up(-100) and down(+100)
define RightStick_X = 9;//Right stick left(-100) and right(+100)
define RightStick_Y = 10;//Right stick up(-100) and down(+100)
 
//Rumble Packs
define Rumble_Soft = RUMBLE_B;
define Rumble_Hard = RUMBLE_A;
 
//Booleans
int ReadyForInput = TRUE;
int AutoLockPick = FALSE;
int OpeningLock = FALSE;
int Depressing = FALSE;
int LightWeaveOn = FALSE;
int AutoWalk = FALSE;
int Waiting = FALSE;
int logged_In = TRUE;
int AutoFishing = FALSE;
int AutoFarming = FALSE;
 
//Variables
int MSElapsed = 0;
int Randomizer_Timer = 0;
int TumblersToOpen = 0;
int LW_Timer = 0;
int SprintTimer = 0;
int FarmingTimer = 0;
int LW_Button = 0;
int Random_Timer_Inc = 1337;
int Random_Second = 0;
int FishingTimer = 0;
 
init{
    set_pvar(SPVAR_7, LightWeaveTime);
    LightWeaveTime = get_pvar(SPVAR_6, 0, 300, 70);
    if(get_pvar(SPVAR_1, 0, 1, 1) == 0){LW_ActionOneOn = FALSE;}
    if(get_pvar(SPVAR_2, 0, 1, 1) == 0){LW_ActionTwoOn = FALSE;}
    if(get_pvar(SPVAR_3, 0, 1, 1) == 0){LW_ActionThreeOn = FALSE;}
    if(get_pvar(SPVAR_4, 0, 1, 1) == 0){LW_ActionFourOn = FALSE;}
    if(get_pvar(SPVAR_5, 0, 1, 1) == 0){LW_ActionFiveOn = FALSE;}
 
}
 
main {
    vm_tctrl(-5); //This should run every 5 MS now
    //set_val(TRACE_1, LightWeaveTime);
    //Initiate the Light weaving script timer which also controls random second timer   
    LW_Timer = LW_Timer + get_rtime();
    if(LW_Timer >= 1337) {
        LW_Timer = 0;
        Randomizer_Timer = Randomizer_Timer + 1;
        if(Randomizer_Timer > Max_Random){Randomizer_Timer = 0;}
    }
 
    //Fishing Script
    if(AutoFishing && get_rumble(Rumble_Soft) > 0){FishingTimer = FishingTimer + get_rtime();}
    else if(AutoFishing && !get_rumble(Rumble_Soft) <= 0){
        FishingTimer = 0;}
    if(AutoFishing && FishingTimer >= 1500){
        combo_run(ReCast_Fishing);
    }
 
    //Initiate the real time timer
    MSElapsed = MSElapsed + get_rtime();
    if(MSElapsed >= 1000){
        MSElapsed = 0;
        FarmingTimer = FarmingTimer + 1;
        if(FarmingTimer >= 1200){FarmingTimer = 0;}
    }
    //Reset all persistant variables if start is held down for 4 seconds
    if(get_ptime(Start_Button) >= 4000 && get_val(Start_Button) == 100 && !get_val(Left_Stick_Click)){
        combo_run(Notification_Rumble);
        combo_run(ResetPvars);
    }
 
    //Reset all on start press if not pressing left stick click
    if(event_press(Start_Button) && !get_val(Left_Stick_Click)){
        combo_run(ResetAll);
        if(AutoLockPick || LightWeaveOn || AutoFarming || AutoFishing){combo_run(Notification_Rumble);}
    }
 
    //D Pad Left activates Auto Lockpick
    if(ReadyForInput && get_ptime(D_Left) >= 2000 && get_val(D_Left) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        AutoLockPick = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Up activates Auto Fish
    if(ReadyForInput && get_ptime(D_Up) >= 2000 && get_val(D_Up) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        AutoFishing = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Right activates Farming
    if(ReadyForInput && get_ptime(D_Right) >= 2000 && get_val(D_Right) == 100 && get_val(Right_Stick_Click)){
        Random_Second = Randomizer_Timer;
        ReadyForInput = FALSE;
        FarmingTimer = LogInTimer - 3;
        AutoFarming = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Down activates Light Weaving
    if(ReadyForInput && get_ptime(D_Down) >= 2000 && get_val(D_Down) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        LightWeaveOn = TRUE;
        combo_run(Notification_Rumble);
    }
    //Toggle for light weave abilities
    if(get_ptime(Button_Two) >= (LWTime * 1000) && get_val(Button_Two) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionOneOn = !LW_ActionOneOn;
        if(LW_ActionOneOn){
            set_pvar(SPVAR_1, 1);
            combo_run(On_Rumble);}
        else if(!LW_ActionOneOn){
            set_pvar(SPVAR_1, 0);
            combo_run(Off_Rumble);}}
    if(get_ptime(Button_Three) >= (LWTime * 1000) && get_val(Button_Three) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionTwoOn = !LW_ActionTwoOn;
        if(LW_ActionTwoOn){
            combo_run(On_Rumble);
            set_pvar(SPVAR_2, 1);}
        else if(!LW_ActionTwoOn){
            combo_run(Off_Rumble);
            set_pvar(SPVAR_2, 0);}}
    if(get_ptime(Button_Four) >= (LWTime * 1000) && get_val(Button_Four) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionThreeOn = !LW_ActionThreeOn;
        if(LW_ActionThreeOn){
            combo_run(On_Rumble);
            set_pvar(SPVAR_3, 1);}
        else if(!LW_ActionThreeOn){
            combo_run(Off_Rumble);
            set_pvar(SPVAR_3, 0);}}
    if(get_ptime(Left_Bumper) >= (LWTime * 1000) && get_val(Left_Bumper) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionFourOn = !LW_ActionFourOn;
        if(LW_ActionFourOn){
            combo_run(On_Rumble);
            set_pvar(SPVAR_4, 1);}
        else if(!LW_ActionFourOn){
            combo_run(Off_Rumble);
            set_pvar(SPVAR_4, 0);}}
    if(get_ptime(Right_Bumper) >= (LWTime * 1000) && get_val(Right_Bumper) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionFiveOn = !LW_ActionFiveOn;
        if(LW_ActionFiveOn){
            combo_run(On_Rumble);
            set_pvar(SPVAR_5, 1);}
        else if(!LW_ActionFiveOn){
            combo_run(Off_Rumble);
            set_pvar(SPVAR_5, 0);}
    }
 
    //LockPick Scripts
    if(ReadyForInput && AutoLockPick){
        AutoLockPick = FALSE;
        combo_run(InitOpenChestScript);}
    if(ReadyForInput && OpeningLock){set_val(Right_Trigger, 100);}
    if(ReadyForInput && OpeningLock && get_rumble(Rumble_Soft) > Max_Rumble && !Depressing){
        Depressing = TRUE;
        combo_run(OpenChestScript);
    }
 
    //Auto Farming Scripts
    if(ReadyForInput && AutoFarming && (FarmingTimer >= LogInTimer + Random_Second) && logged_In){
        Random_Second = Randomizer_Timer;
        FarmingTimer = 0;
        logged_In = FALSE;
        combo_run(LogOutCombo);}
    if(ReadyForInput && AutoFarming && (FarmingTimer >= LogOutTimer + Random_Second) && !logged_In){
        Random_Second = Randomizer_Timer;
        FarmingTimer = 0;
        logged_In = TRUE;
        combo_run(LogInCombo);
    }
 
    //Light Weaving scripts
    if(get_val(D_Down) && event_press(Right_Trigger)){
        LW_Timer = 0;}
    if(get_val(D_Down) && (event_press(Button_Four) || event_press(Button_Two) || event_press(Button_Three) || event_press(Right_Bumper) || event_press(Left_Bumper))){
        LightWeaveTime = LW_Timer;
        set_pvar(SPVAR_6, LightWeaveTime);
        combo_run(On_Rumble);}
    if(LightWeaveOn && !get_val(Left_Stick_Click)){   
    //If user inputs a skill button press with light weave on
        if(event_press(Button_Two) || event_press(Button_Three) || event_press(Button_Four) || event_press(Left_Bumper) || event_press(Right_Bumper)){
            LW_Button = 0;
            if(get_val(Button_Two) && LightWeaveOn && LW_ActionOneOn){LW_Button = 1;}
            else if(get_val(Button_Three) && LightWeaveOn && LW_ActionTwoOn){LW_Button = 2;}
            else if(get_val(Button_Four) && LightWeaveOn && LW_ActionThreeOn){LW_Button = 3;}
            else if(get_val(Left_Bumper) && LightWeaveOn && LW_ActionFourOn){LW_Button = 4;}
            else if(get_val(Right_Bumper) && LightWeaveOn && LW_ActionFiveOn){LW_Button = 5;}
            if(LW_Button > 0){combo_run(LW_Combo);}
        }
        if(LW_ActionOneOn){block(Button_Two, 300);}
        if(LW_ActionTwoOn){block(Button_Three, 300);}
        if(LW_ActionThreeOn){block(Button_Four, 300);}
        if(LW_ActionFourOn){block(Left_Bumper, 300);}
        if(LW_ActionFiveOn){block(Right_Bumper, 300);}
    }
}
 
combo InitOpenChestScript
{
//Open chest, move to far left tumbler. Set 5 tumblers left, move on to next script.
    set_val(Button_One, 100);    wait(200);
    set_val(Button_One, 0);    wait(750);
    set_val(LeftStick_X, -100);    wait(400);
    set_val(LeftStick_X, 0);
    TumblersToOpen = 5;
    OpeningLock = TRUE;
}
 
combo OpenChestScript
{
    set_val(Right_Trigger, 0);
    if(TumblersToOpen > 1){
        set_val(LeftStick_X, 100);
    }
    wait(200);
    set_val(LeftStick_X, 0);
    if(TumblersToOpen < 2){
        set_val(Right_Trigger, 0);
        OpeningLock = FALSE;//Once all pins are depressed turn off the script
    }
    TumblersToOpen = TumblersToOpen - 1;
    Depressing = FALSE;
}
 
combo ReCast_Fishing
{
    set_val(Button_One, 100);   wait(100);
    set_val(Button_One, 0);     wait(2600);
    set_val(Button_One, 100);   wait(100);
    set_val(Button_One, 0)
    FishingTimer = 0;
}
 
combo LogInCombo
{
    set_val(Button_One, 100);   wait(200);
    set_val(Button_One, 0);    wait(100);
    FarmingTimer = 0;
    logged_In = FALSE;
}
 
combo LogOutCombo
{
    //Look down, press A
    set_val(RightStick_Y, 100);    wait(1200);
    set_val(RightStick_Y, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(200);
 
    //Open menu, press right trigger, and log out.
    set_val(Start_Button, 100);    wait(100);
    set_val(Start_Button, 0);    wait(250);
    set_val(Right_Trigger, 100);    wait(100);
    set_val(Right_Trigger, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(100);
 
    FarmingTimer = 0;
    logged_In = TRUE;
}
 
combo LW_Combo
{
    set_val(Right_Trigger, 100);    wait(100);
    set_val(Right_Trigger, 0);      wait(LightWeaveTime);
    if(LW_Button == 1){set_val(Button_Two, 100);}
    else if(LW_Button == 2){set_val(Button_Three, 100);}
    else if(LW_Button == 3){set_val(Button_Four, 100);}
    else if(LW_Button == 4){set_val(Left_Bumper, 100);}
    else if(LW_Button == 5){set_val(Right_Bumper, 100);}
    wait(100);
    set_val(Button_One, 0);
    set_val(Button_Three, 0);
    set_val(Button_Four, 0);
    set_val(Right_Bumper, 0);
    set_val(Left_Bumper, 0);
    wait(Bash_Time);
    set_val(Block_Button, 100);   wait(75);
    set_val(Block_Button, 0);   wait(100);
}
 
combo Notification_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(200);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(200);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(1150);
 
    ReadyForInput = TRUE;
}
 
combo On_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(500);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(2000);   
    Waiting = FALSE;
}
 
combo Off_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(2000);
    Waiting = FALSE;
}
 
combo ResetAll
{
    set_val(Right_Trigger, 0);
    set_val(LeftStick_Y, 0);
 
    ReadyForInput = TRUE;
    AutoLockPick = FALSE;
    OpeningLock = FALSE;
    Depressing = FALSE;
    LightWeaveOn = FALSE;
    AutoWalk = FALSE;
    Waiting = FALSE;
    AutoFarming = FALSE;
    AutoFishing = FALSE;
}
 
combo ResetPvars
{
    set_pvar(SPVAR_1, 1);
    set_pvar(SPVAR_2, 1);
    set_pvar(SPVAR_3, 1);
    set_pvar(SPVAR_4, 1);
    set_pvar(SPVAR_5, 1);
    set_pvar(SPVAR_6, get_pvar(SPVAR_7, 0, 300, 70));
 
    LightWeaveTime = get_pvar(SPVAR_7, 0, 300, 70);
    LW_ActionOneOn = TRUE;   //Xbox One: X  ||  PS4: Square  //
    LW_ActionTwoOn = TRUE;   //Xbox One: Y  ||  PS4: Triangle//
    LW_ActionThreeOn = TRUE; //Xbox One: B  ||  PS4: Circle  //
    LW_ActionFourOn = TRUE//Xbox One: LB ||  PS4: L1      //
    LW_ActionFiveOn = TRUE//Xbox One: RB ||  PS4: R1      //   
}
Last edited by Scachi on Sat Oct 19, 2019 3:42 am, edited 1 time in total.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Elder Scrolls Online GamePack!

Postby Vonburner » Sat Oct 19, 2019 3:42 am

okay ill give it a try and do my to detail whats happening
User avatar
Vonburner
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Wed Oct 09, 2019 1:47 am

Re: Elder Scrolls Online GamePack!

Postby Scachi » Sat Oct 19, 2019 3:59 am

Vonburner wrote:okay ill give it a try and do my to detail whats happening

If you still have trouble try this one for a test..it sets the weave to enabled for all buttons by default and doesn't save the changes to the permanent memory.
You only have to do the general weaving activation with R3 hold + dpad_down for 2 seconds.
This way it is configured like it is when the script is running in test debug mode.
Code: Select all
#include <titanone.gph>
///////////////////////////////////////////////////////////
//Elder Scrolls Online Gamepack V2.1 With Block Cancleing//
///////////////////////////////////////////////////////////
 
/*  ///////////////////////
    //Section 1: CONTROLS//
    ///////////////////////
 
  Reset Controls
        -Press Start to turn scripts off
            1. If you hold down Left Stick Click while pressing start no scripts will be turned off
        -Press and hold Start for 4 seconds to reset any persistant variables.
            1. This currently consists of the light weave time, and the initial on/off settings for the
                light weave skills.
            **NOTES**
                -If you are holding Left Stick Click no scripts will be turned off
 
  Auto Walking Controls
        -Press and hold Right Stick Down and hold Left Stick Click for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Activate the script any time, initial settings are set to press sprint every 10.
                -If sprint is already on the button will still be pressed and as such will turn sprinting off.
 
  Lockpicking Controls
        -Press and hold Right Stick Down and hold D Pad Left for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Max rumble beeds to be set to 6 for Xbox One and 75 for PS4 for this script to work properly
                -Look at the lock to be picked and then activate the script
                -If you are not looking at a lock you will need to press start to get right trigger turned off
 
  Fishing Controls
        -Press and hold Right Stick Down and hold D Pad Up for about 2 seconds or until you feel a rumble to activate the script
            Then press A/Cross while looking at a fishing hole, it will fish it out for you.
 
  Farming Controls
        -Press and hold Right Stick Down and hold D Pad Right for about 2 seconds or until you feel a rumble to activate the script
            **Notes**
                -Stand ontop of something (dresser, nightstand, backpack) then activate the script
                -For best results stand on something flat (Backpacks are not flat, but dressers are) and look
                    down. Spin in 360 degreese to ensure you are looking at the desired object no matter what
                    direction you face. That is not to say you CAN'T loot backpacks, but in my experience my
                    toon falls off of them after 5 - 10 minutes of cycling.
 
  Light Weave Controls
        -Press and hold Right stick down and then hold D Pad Down for about 2 seconds or until you feel a rumble to activate the script
        -Press and hold any ablity button to toggle it being on or off (1 rumble means off, 2 rumbles means on)
        -In order to use your ultimate you must first press and hold down Left Stick Click, then press the buttons to cast ultimate
        -To set a new light weave time in-game preform a light weave attack with D Pad Down held down, or in other words:
            1. With D Pad Down held down
                A. Press right trigger
                B. Then press any ability button(Controller will rumble to acknowledge the input)
        -If you hold Left Stick Click then while light weave is active no light weave abilities will be used
            **NOTES**
                -You can turn light weaving on and off for specific buttons regardless if the light weaving
                    script is currently active or not.
                -Your settings will be save even with the Titan One turned off. Hold start for 4 seconds to
                    clear your settings back to the initial settings.
 
*/
       
 
/*  ////////////////////////////////
    //Section 2: NOTES ON SETTINGS//
    ////////////////////////////////
  Misc Settings
        -Rumble Notification defines the rumble strength of notifications. These notifications
            will happen every time user enters a menu or changes a setting. Set this high enough
            that you will feel the rumble indication.
                1. Three Rumbles means a script is being turn on or off
                2. Two rumbles means a light weave ability is toggled on or light weave time is now set.
                3. One Rumble means that a light weave ability is toggled off
 
  Lockpick Settings
        -Max_Rumble defines when to move to the next pin of the lock. Set to 6 if on Xbox One or
            set to 75 if you are on PS4.
 
  Auto Farming Settings
        -Log In Timer dictates the time inbetween pressing A to select your character and logging out
        -Lot Out Timer dictates the time inbetween pressing log out in game and pressing A to log back
            in (Remember it takes 9 extra seconds if you are in an unsafe zone)
        -Max Random decides how greatly the times to log in and out can be raised (Set to 0 to dissable)
 
  Auto Walk Settings
        -SprintSpeed defines after how many seconds to press the sprint button, this can be
            deactivated by setting to 0.
 
  Light Weaving Settings
        -LightWeaveTime defines how many Miliseconds to wait after pressing right trigger before
            casting an ability. Because this script runs every 5 MS this should be set in an
            increment of 5 MS.
        -LWTime defines how many seconds you must hold a skill button to toggle it being on or off.
        -The LW_Action skills define if light weaving is set to on or off for that particular skill,
            this can be changed in game. But you may modify them here if you know what you want for
            starting points every time you load the script.
 
   */
//////////////////////
    //Section 3: Settings//
    ///////////////////////
    int Block_Button = XB1_LB;
    int Bash_Time = 100;
 
  //Misc Settings
    int RumbleNotification = 20; //The rumble strength for all notifications
 
  //Auto Lockpick Settings   
    int Max_Rumble = 6; //set to 6 for xbox one and 75 for PS4 (Lockpick rumble detection)
 
  //Auto Walk Settings
    int SprintSpeed = 10; //This is how many seconds inbtween left stick clicks(it will turn sprint off if already sprinting. 0 will dissable.)
 
  //Auto farm scripts
    int LogInTimer = 35; //Time it takes to log on
    int LogOutTimer = 34; //Time it takes to log off
    int Max_Random = 10; //The amount of time in which logging in or out can change
 
  //Light Weaving Settings
    int LWTime = 4; //Seconds you must hold a button to toggle the lightweave for a skill on or off
    int LightWeaveTime = 70; //The time you wait after hitting right trigger and before using an ability
    //Initial On-Off values for the light weaving skills
    int LW_ActionOneOn = TRUE;   //Xbox One: X  ||  PS4: Square  //
    int LW_ActionTwoOn = TRUE;   //Xbox One: Y  ||  PS4: Triangle//
    int LW_ActionThreeOn = TRUE; //Xbox One: B  ||  PS4: Circle  //
    int LW_ActionFourOn = TRUE//Xbox One: LB ||  PS4: L1      //
    int LW_ActionFiveOn = TRUE//Xbox One: RB ||  PS4: R1      //
 
/*  //=============================\\
    ||DO NOT MODIFY BELOW THIS LINE||
    ||DO NOT MODIFY BELOW THIS LINE||
    ||DO NOT MODIFY BELOW THIS LINE||
    \\=============================//   */

 
/*Button definitions. As these are all the same index on Xbox One and PS4 these
    deffinitions will work on both consoles. Make sure to adjust the settings
    section though!*/

define Button_One = 19//Xbox One: A  ||  PS4: Cross   //
define Button_Two = 20//Xbox One: X  ||  PS4: Square  //
define Button_Three = 17;//Xbox One: Y  ||  PS4: Triangle//
define Button_Four = 18; //Xbox One: B  ||  PS4: Circle  //
define Right_Bumper = 3;
define Right_Trigger = 4;
define Right_Stick_Click = 5;
define Left_Bumper = 6;
define Left_Trigger = 7;
define Left_Stick_Click = 8;
define Select_Button = 1;
define Center_Button = 0;
define Start_Button = 2;
define D_Up = 13;
define D_Right = 16;
define D_Down = 14;
define D_Left = 15;
define LeftStick_X = 11;//Left stick left(-100) and right(+100)
define LeftStick_Y = 12;//Left stick up(-100) and down(+100)
define RightStick_X = 9;//Right stick left(-100) and right(+100)
define RightStick_Y = 10;//Right stick up(-100) and down(+100)
 
//Rumble Packs
define Rumble_Soft = RUMBLE_B;
define Rumble_Hard = RUMBLE_A;
 
//Booleans
int ReadyForInput = TRUE;
int AutoLockPick = FALSE;
int OpeningLock = FALSE;
int Depressing = FALSE;
int LightWeaveOn = FALSE;
int AutoWalk = FALSE;
int Waiting = FALSE;
int logged_In = TRUE;
int AutoFishing = FALSE;
int AutoFarming = FALSE;
 
//Variables
int MSElapsed = 0;
int Randomizer_Timer = 0;
int TumblersToOpen = 0;
int LW_Timer = 0;
int SprintTimer = 0;
int FarmingTimer = 0;
int LW_Button = 0;
int Random_Timer_Inc = 1337;
int Random_Second = 0;
int FishingTimer = 0;
 
init{
    set_pvar(SPVAR_7, LightWeaveTime);
    LightWeaveTime = get_pvar(SPVAR_6, 0, 300, 70);
    /*
    if(get_pvar(SPVAR_1, 0, 1, 1) == 0){LW_ActionOneOn = FALSE;}
    if(get_pvar(SPVAR_2, 0, 1, 1) == 0){LW_ActionTwoOn = FALSE;}
    if(get_pvar(SPVAR_3, 0, 1, 1) == 0){LW_ActionThreeOn = FALSE;}
    if(get_pvar(SPVAR_4, 0, 1, 1) == 0){LW_ActionFourOn = FALSE;}
    if(get_pvar(SPVAR_5, 0, 1, 1) == 0){LW_ActionFiveOn = FALSE;}
    */

 
}
 
main {
    vm_tctrl(-5); //This should run every 5 MS now
    //set_val(TRACE_1, LightWeaveTime);
    //Initiate the Light weaving script timer which also controls random second timer   
    LW_Timer = LW_Timer + get_rtime();
    if(LW_Timer >= 1337) {
        LW_Timer = 0;
        Randomizer_Timer = Randomizer_Timer + 1;
        if(Randomizer_Timer > Max_Random){Randomizer_Timer = 0;}
    }
 
    //Fishing Script
    if(AutoFishing && get_rumble(Rumble_Soft) > 0){FishingTimer = FishingTimer + get_rtime();}
    else if(AutoFishing && !get_rumble(Rumble_Soft) <= 0){
        FishingTimer = 0;}
    if(AutoFishing && FishingTimer >= 1500){
        combo_run(ReCast_Fishing);
    }
 
    //Initiate the real time timer
    MSElapsed = MSElapsed + get_rtime();
    if(MSElapsed >= 1000){
        MSElapsed = 0;
        FarmingTimer = FarmingTimer + 1;
        if(FarmingTimer >= 1200){FarmingTimer = 0;}
    }
    //Reset all persistant variables if start is held down for 4 seconds
    if(get_ptime(Start_Button) >= 4000 && get_val(Start_Button) == 100 && !get_val(Left_Stick_Click)){
        combo_run(Notification_Rumble);
        combo_run(ResetPvars);
    }
 
    //Reset all on start press if not pressing left stick click
    if(event_press(Start_Button) && !get_val(Left_Stick_Click)){
        combo_run(ResetAll);
        if(AutoLockPick || LightWeaveOn || AutoFarming || AutoFishing){combo_run(Notification_Rumble);}
    }
 
    //D Pad Left activates Auto Lockpick
    if(ReadyForInput && get_ptime(D_Left) >= 2000 && get_val(D_Left) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        AutoLockPick = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Up activates Auto Fish
    if(ReadyForInput && get_ptime(D_Up) >= 2000 && get_val(D_Up) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        AutoFishing = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Right activates Farming
    if(ReadyForInput && get_ptime(D_Right) >= 2000 && get_val(D_Right) == 100 && get_val(Right_Stick_Click)){
        Random_Second = Randomizer_Timer;
        ReadyForInput = FALSE;
        FarmingTimer = LogInTimer - 3;
        AutoFarming = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Down activates Light Weaving
    if(ReadyForInput && get_ptime(D_Down) >= 2000 && get_val(D_Down) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        LightWeaveOn = TRUE;
        combo_run(Notification_Rumble);
    }
    //Toggle for light weave abilities
    if(get_ptime(Button_Two) >= (LWTime * 1000) && get_val(Button_Two) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionOneOn = !LW_ActionOneOn;
        if(LW_ActionOneOn){
            set_pvar(SPVAR_1, 1);
            combo_run(On_Rumble);}
        else if(!LW_ActionOneOn){
            set_pvar(SPVAR_1, 0);
            combo_run(Off_Rumble);}}
    if(get_ptime(Button_Three) >= (LWTime * 1000) && get_val(Button_Three) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionTwoOn = !LW_ActionTwoOn;
        if(LW_ActionTwoOn){
            combo_run(On_Rumble);
            set_pvar(SPVAR_2, 1);}
        else if(!LW_ActionTwoOn){
            combo_run(Off_Rumble);
            set_pvar(SPVAR_2, 0);}}
    if(get_ptime(Button_Four) >= (LWTime * 1000) && get_val(Button_Four) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionThreeOn = !LW_ActionThreeOn;
        if(LW_ActionThreeOn){
            combo_run(On_Rumble);
            set_pvar(SPVAR_3, 1);}
        else if(!LW_ActionThreeOn){
            combo_run(Off_Rumble);
            set_pvar(SPVAR_3, 0);}}
    if(get_ptime(Left_Bumper) >= (LWTime * 1000) && get_val(Left_Bumper) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionFourOn = !LW_ActionFourOn;
        if(LW_ActionFourOn){
            combo_run(On_Rumble);
            set_pvar(SPVAR_4, 1);}
        else if(!LW_ActionFourOn){
            combo_run(Off_Rumble);
            set_pvar(SPVAR_4, 0);}}
    if(get_ptime(Right_Bumper) >= (LWTime * 1000) && get_val(Right_Bumper) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionFiveOn = !LW_ActionFiveOn;
        if(LW_ActionFiveOn){
            combo_run(On_Rumble);
            set_pvar(SPVAR_5, 1);}
        else if(!LW_ActionFiveOn){
            combo_run(Off_Rumble);
            set_pvar(SPVAR_5, 0);}
    }
 
    //LockPick Scripts
    if(ReadyForInput && AutoLockPick){
        AutoLockPick = FALSE;
        combo_run(InitOpenChestScript);}
    if(ReadyForInput && OpeningLock){set_val(Right_Trigger, 100);}
    if(ReadyForInput && OpeningLock && get_rumble(Rumble_Soft) > Max_Rumble && !Depressing){
        Depressing = TRUE;
        combo_run(OpenChestScript);
    }
 
    //Auto Farming Scripts
    if(ReadyForInput && AutoFarming && (FarmingTimer >= LogInTimer + Random_Second) && logged_In){
        Random_Second = Randomizer_Timer;
        FarmingTimer = 0;
        logged_In = FALSE;
        combo_run(LogOutCombo);}
    if(ReadyForInput && AutoFarming && (FarmingTimer >= LogOutTimer + Random_Second) && !logged_In){
        Random_Second = Randomizer_Timer;
        FarmingTimer = 0;
        logged_In = TRUE;
        combo_run(LogInCombo);
    }
 
    //Light Weaving scripts
    if(get_val(D_Down) && event_press(Right_Trigger)){
        LW_Timer = 0;}
    if(get_val(D_Down) && (event_press(Button_Four) || event_press(Button_Two) || event_press(Button_Three) || event_press(Right_Bumper) || event_press(Left_Bumper))){
        LightWeaveTime = LW_Timer;
        set_pvar(SPVAR_6, LightWeaveTime);
        combo_run(On_Rumble);}
    if(LightWeaveOn && !get_val(Left_Stick_Click)){   
    //If user inputs a skill button press with light weave on
        if(event_press(Button_Two) || event_press(Button_Three) || event_press(Button_Four) || event_press(Left_Bumper) || event_press(Right_Bumper)){
            LW_Button = 0;
            if(get_val(Button_Two) && LightWeaveOn && LW_ActionOneOn){LW_Button = 1;}
            else if(get_val(Button_Three) && LightWeaveOn && LW_ActionTwoOn){LW_Button = 2;}
            else if(get_val(Button_Four) && LightWeaveOn && LW_ActionThreeOn){LW_Button = 3;}
            else if(get_val(Left_Bumper) && LightWeaveOn && LW_ActionFourOn){LW_Button = 4;}
            else if(get_val(Right_Bumper) && LightWeaveOn && LW_ActionFiveOn){LW_Button = 5;}
            if(LW_Button > 0){combo_run(LW_Combo);}
        }
        if(LW_ActionOneOn){block(Button_Two, 300);}
        if(LW_ActionTwoOn){block(Button_Three, 300);}
        if(LW_ActionThreeOn){block(Button_Four, 300);}
        if(LW_ActionFourOn){block(Left_Bumper, 300);}
        if(LW_ActionFiveOn){block(Right_Bumper, 300);}
    }
}
 
combo InitOpenChestScript
{
//Open chest, move to far left tumbler. Set 5 tumblers left, move on to next script.
    set_val(Button_One, 100);    wait(200);
    set_val(Button_One, 0);    wait(750);
    set_val(LeftStick_X, -100);    wait(400);
    set_val(LeftStick_X, 0);
    TumblersToOpen = 5;
    OpeningLock = TRUE;
}
 
combo OpenChestScript
{
    set_val(Right_Trigger, 0);
    if(TumblersToOpen > 1){
        set_val(LeftStick_X, 100);
    }
    wait(200);
    set_val(LeftStick_X, 0);
    if(TumblersToOpen < 2){
        set_val(Right_Trigger, 0);
        OpeningLock = FALSE;//Once all pins are depressed turn off the script
    }
    TumblersToOpen = TumblersToOpen - 1;
    Depressing = FALSE;
}
 
combo ReCast_Fishing
{
    set_val(Button_One, 100);   wait(100);
    set_val(Button_One, 0);     wait(2600);
    set_val(Button_One, 100);   wait(100);
    set_val(Button_One, 0)
    FishingTimer = 0;
}
 
combo LogInCombo
{
    set_val(Button_One, 100);   wait(200);
    set_val(Button_One, 0);    wait(100);
    FarmingTimer = 0;
    logged_In = FALSE;
}
 
combo LogOutCombo
{
    //Look down, press A
    set_val(RightStick_Y, 100);    wait(1200);
    set_val(RightStick_Y, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(200);
 
    //Open menu, press right trigger, and log out.
    set_val(Start_Button, 100);    wait(100);
    set_val(Start_Button, 0);    wait(250);
    set_val(Right_Trigger, 100);    wait(100);
    set_val(Right_Trigger, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(100);
 
    FarmingTimer = 0;
    logged_In = TRUE;
}
 
combo LW_Combo
{
    set_val(Right_Trigger, 100);    wait(100);
    set_val(Right_Trigger, 0);      wait(LightWeaveTime);
    if(LW_Button == 1){set_val(Button_Two, 100);}
    else if(LW_Button == 2){set_val(Button_Three, 100);}
    else if(LW_Button == 3){set_val(Button_Four, 100);}
    else if(LW_Button == 4){set_val(Left_Bumper, 100);}
    else if(LW_Button == 5){set_val(Right_Bumper, 100);}
    wait(100);
    set_val(Button_One, 0);
    set_val(Button_Three, 0);
    set_val(Button_Four, 0);
    set_val(Right_Bumper, 0);
    set_val(Left_Bumper, 0);
    wait(Bash_Time);
    set_val(Block_Button, 100);   wait(75);
    set_val(Block_Button, 0);   wait(100);
}
 
combo Notification_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(200);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(200);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(1150);
 
    ReadyForInput = TRUE;
}
 
combo On_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(500);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(2000);   
    Waiting = FALSE;
}
 
combo Off_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(2000);
    Waiting = FALSE;
}
 
combo ResetAll
{
    set_val(Right_Trigger, 0);
    set_val(LeftStick_Y, 0);
 
    ReadyForInput = TRUE;
    AutoLockPick = FALSE;
    OpeningLock = FALSE;
    Depressing = FALSE;
    LightWeaveOn = FALSE;
    AutoWalk = FALSE;
    Waiting = FALSE;
    AutoFarming = FALSE;
    AutoFishing = FALSE;
}
 
combo ResetPvars
{
    set_pvar(SPVAR_1, 1);
    set_pvar(SPVAR_2, 1);
    set_pvar(SPVAR_3, 1);
    set_pvar(SPVAR_4, 1);
    set_pvar(SPVAR_5, 1);
    set_pvar(SPVAR_6, get_pvar(SPVAR_7, 0, 300, 70));
 
    LightWeaveTime = get_pvar(SPVAR_7, 0, 300, 70);
    LW_ActionOneOn = TRUE;   //Xbox One: X  ||  PS4: Square  //
    LW_ActionTwoOn = TRUE;   //Xbox One: Y  ||  PS4: Triangle//
    LW_ActionThreeOn = TRUE; //Xbox One: B  ||  PS4: Circle  //
    LW_ActionFourOn = TRUE//Xbox One: LB ||  PS4: L1      //
    LW_ActionFiveOn = TRUE//Xbox One: RB ||  PS4: R1      //   
}
Last edited by Scachi on Sat Oct 19, 2019 4:00 am, edited 1 time in total.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Elder Scrolls Online GamePack!

Postby Vonburner » Sat Oct 19, 2019 4:00 am

Latest one works with the holding to activate button for wave. Thank you a million,second question i noticed for some skills it would skip the Light Attack. is it cause its going to fast?
User avatar
Vonburner
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Wed Oct 09, 2019 1:47 am

Re: Elder Scrolls Online GamePack!

Postby Scachi » Sat Oct 19, 2019 4:06 am

Vonburner wrote:Latest one works with the holding to activate button for wave. Thank you a million,second question i noticed for some skills it would skip the Light Attack. is it cause its going to fast?

Yes, I think so. One timing is adjustable in-game according to the comments in the script:
To set a new light weave time in-game preform a light weave attack with D Pad Down held down, or in other words:
1. With D Pad Down held down
A. Press right trigger
B. Then press any ability button(Controller will rumble to acknowledge the input)

The "Bash_Time" can be adjusted at the top of the script (line 100)
For the other values you can try to increase the time in the "wait(100);" and "wait(75);" lines in the "combo LW_Combo" (Around line 425).


If the latest one is working for you but not the previous one you are still missing one step to activate the weave for the buttons.
Did you hold "circle" down for longer than 4 seconds ? This is required to activate it for the circle button. AThat is also required for the other buttons.
Or hold own the "START" button (options? touchclick? don't know for sure) for longer than 4 seconds and it will reset the buttons to enabled.
When it is then enabled generally (dpad-down + R3 > 2 seconds) it will work.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Elder Scrolls Online GamePack!

Postby Vonburner » Sat Oct 19, 2019 4:34 am

everything is fine the only thing is the skip a wave problem. every move has its own cast time and etc could i edit those individually?
User avatar
Vonburner
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Wed Oct 09, 2019 1:47 am

Re: Elder Scrolls Online GamePack!

Postby Scachi » Sat Oct 19, 2019 8:43 am

Vonburner wrote:everything is fine the only thing is the skip a wave problem. every move has its own cast time and etc could i edit those individually?

The original script doesn't support that.
Try this modified version, you can configure a button wait time for each of the lw invoking buttons.
It has a basic Interactive Configuration. I haven't tested this version so it may not work correctly at all:
Code: Select all
#pragma METAINFO("Elder Scrolls Online", 2, 1, "Elvish orgT1, Scachi convT2")
#include <titanone.gph>
///////////////////////////////////////////////////////////
//Elder Scrolls Online Gamepack V2.1 With Block Canceling//
///////////////////////////////////////////////////////////
// https://www.consoletuner.com/gpclib/?s=1017
// viewtopic.php?f=6&t=1814
///////////////////////////////////////////////////////////
/*  ///////////////////////
    //Section 1: CONTROLS//
    ///////////////////////
 
  Reset Controls
        -Press Start to turn scripts off
            1. If you hold down Left Stick Click while pressing start no scripts will be turned off
        -Press and hold Start for 4 seconds to reset any persistant variables.
            1. This currently consists of the light weave time, and the initial on/off settings for the
                light weave skills.
            **NOTES**
                -If you are holding Left Stick Click no scripts will be turned off
 
  Auto Walking Controls
        -Press and hold Right Stick Down and hold Left Stick Click for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Activate the script any time, initial settings are set to press sprint every 10.
                -If sprint is already on the button will still be pressed and as such will turn sprinting off.
 
  Lockpicking Controls
        -Press and hold Right Stick Down and hold D Pad Left for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Max rumble beeds to be set to 6 for Xbox One and 75 for PS4 for this script to work properly
                -Look at the lock to be picked and then activate the script
                -If you are not looking at a lock you will need to press start to get right trigger turned off
 
  Fishing Controls
        -Press and hold Right Stick Down and hold D Pad Up for about 2 seconds or until you feel a rumble to activate the script
            Then press A/Cross while looking at a fishing hole, it will fish it out for you.
 
  Farming Controls
        -Press and hold Right Stick Down and hold D Pad Right for about 2 seconds or until you feel a rumble to activate the script
            **Notes**
                -Stand ontop of something (dresser, nightstand, backpack) then activate the script
                -For best results stand on something flat (Backpacks are not flat, but dressers are) and look
                    down. Spin in 360 degreese to ensure you are looking at the desired object no matter what
                    direction you face. That is not to say you CAN'T loot backpacks, but in my experience my
                    toon falls off of them after 5 - 10 minutes of cycling.
 
  Light Weave Controls
        -Press and hold Right stick down and then hold D Pad Down for about 2 seconds or until you feel a rumble to activate the script
        -Press and hold any ablity button to toggle it being on or off (1 rumble means off, 2 rumbles means on)
        -In order to use your ultimate you must first press and hold down Left Stick Click, then press the buttons to cast ultimate
        -To set a new light weave time in-game preform a light weave attack with D Pad Down held down, or in other words:
            1. With D Pad Down held down
                A. Press right trigger
                B. Then press any ability button(Controller will rumble to acknowledge the input)
                   AND Hold down the ability button until the animation is ready to be blocked
        -If you hold Left Stick Click then while light weave is active no light weave abilities will be used
            **NOTES**
                -You can turn light weaving on and off for specific buttons regardless if the light weaving
                    script is currently active or not.
                -Your settings will be save even with the Titan One turned off. Hold start for 4 seconds to
                    clear your settings back to the initial settings.
 
*/
       
 
/*  ////////////////////////////////
    //Section 2: NOTES ON SETTINGS//
    ////////////////////////////////
  Misc Settings
        -Rumble Notification defines the rumble strength of notifications. These notifications
            will happen every time user enters a menu or changes a setting. Set this high enough
            that you will feel the rumble indication.
                1. Three Rumbles means a script is being turn on or off
                2. Two rumbles means a light weave ability is toggled on or light weave time is now set.
                3. One Rumble means that a light weave ability is toggled off
 
  Lockpick Settings
        -Max_Rumble defines when to move to the next pin of the lock. Set to 6 if on Xbox One or
            set to 75 if you are on PS4.
 
  Auto Farming Settings
        -Log In Timer dictates the time inbetween pressing A to select your character and logging out
        -Lot Out Timer dictates the time inbetween pressing log out in game and pressing A to log back
            in (Remember it takes 9 extra seconds if you are in an unsafe zone)
        -Max Random decides how greatly the times to log in and out can be raised (Set to 0 to dissable)
 
  Auto Walk Settings
        -SprintSpeed defines after how many seconds to press the sprint button, this can be
            deactivated by setting to 0.
 
  Light Weaving Settings
        -LightWeaveTime defines how many Miliseconds to wait after pressing right trigger before
            casting an ability. Because this script runs every 5 MS this should be set in an
            increment of 5 MS.
        -LWTime defines how many seconds you must hold a skill button to toggle it being on or off.
        -The LW_Action skills define if light weaving is set to on or off for that particular skill,
            this can be changed in game. But you may modify them here if you know what you want for
            starting points every time you load the script.
 
   */
//////////////////////
    //Section 3: Settings// some of the following settings are configured via the Interactive Configuration !
    ///////////////////////
    int Block_Button = XB1_LB;
    int Bash_Time[6] = {
        100, // wait time for "no weaving button"
        100, // wait time for "Button_Two(Xbox One: X  ||  PS4: Square)" in weaving combo
        100, // wait time for "Button_Three(Xbox One: Y  ||  PS4: Triangle)" in weaving combo
        100, // wait time for "Button_Four(Xbox One: B  ||  PS4: Circle)" in weaving combo
        100, // wait time for "Left Bumper" in weaving combo
        100, // wait time for "Right Bumper" in weaving combo
    };
 
  //Misc Settings
    int RumbleNotification = 20; //The rumble strength for all notifications
 
  //Auto Lockpick Settings   
    int Max_Rumble = 6; //set to 6 for xbox one and 75 for PS4 (Lockpick rumble detection)
 
  //Auto Walk Settings
    int SprintSpeed = 10; //This is how many seconds inbtween left stick clicks(it will turn sprint off if already sprinting. 0 will dissable.)
 
  //Auto farm scripts
    int LogInTimer = 35; //Time it takes to log on
    int LogOutTimer = 34; //Time it takes to log off
    int Max_Random = 10; //The amount of time in which logging in or out can change
 
  //Light Weaving Settings
    int LWTime = 4; //Seconds you must hold a button to toggle the lightweave for a skill on or off
    int LightWeaveTime = 70; //The time you wait after hitting right trigger and before using an ability
    int LightWeaveTimePrevious = 70;
    //Initial On-Off values for the light weaving skills
    bool LW_ActionOneOn = TRUE;   //Xbox One: X  ||  PS4: Square  //
    bool LW_ActionTwoOn = TRUE;   //Xbox One: Y  ||  PS4: Triangle//
    bool LW_ActionThreeOn = TRUE; //Xbox One: B  ||  PS4: Circle  //
    bool LW_ActionFourOn = TRUE//Xbox One: LB ||  PS4: L1      //
    bool LW_ActionFiveOn = TRUE//Xbox One: RB ||  PS4: R1      //
 
/*  //=============================\\
    ||DO NOT MODIFY BELOW THIS LINE||
    ||DO NOT MODIFY BELOW THIS LINE||
    ||DO NOT MODIFY BELOW THIS LINE||
    \\=============================//   */

 
/*Button definitions. As these are all the same index on Xbox One and PS4 these
    deffinitions will work on both consoles. Make sure to adjust the settings
    section though!*/

define Button_One = 19//Xbox One: A  ||  PS4: Cross   //
define Button_Two = 20//Xbox One: X  ||  PS4: Square  //
define Button_Three = 17;//Xbox One: Y  ||  PS4: Triangle//
define Button_Four = 18; //Xbox One: B  ||  PS4: Circle  //
define Right_Bumper = 3;
define Right_Trigger = 4;
define Right_Stick_Click = 5;
define Left_Bumper = 6;
define Left_Trigger = 7;
define Left_Stick_Click = 8;
define Select_Button = 1;
define Center_Button = 0;
define Start_Button = 2;
define D_Up = 13;
define D_Right = 16;
define D_Down = 14;
define D_Left = 15;
define LeftStick_X = 11;//Left stick left(-100) and right(+100)
define LeftStick_Y = 12;//Left stick up(-100) and down(+100)
define RightStick_X = 9;//Right stick left(-100) and right(+100)
define RightStick_Y = 10;//Right stick up(-100) and down(+100)
 
//Rumble Packs
define Rumble_Soft = RUMBLE_B;
define Rumble_Hard = RUMBLE_A;
 
//Booleans
int ReadyForInput = TRUE;
int AutoLockPick = FALSE;
int OpeningLock = FALSE;
int Depressing = FALSE;
int LightWeaveOn = FALSE;
int AutoWalk = FALSE;
int Waiting = FALSE;
int logged_In = TRUE;
int AutoFishing = FALSE;
int AutoFarming = FALSE;
 
//Variables
int MSElapsed = 0;
int Randomizer_Timer = 0;
int TumblersToOpen = 0;
int LW_Timer = 0;
int SprintTimer = 0;
int FarmingTimer = 0;
int LW_Button = 0;
int Random_Timer_Inc = 1337;
int Random_Second = 0;
int FishingTimer = 0;
 
init{
    pmem_load();
    pmem_read(0,&LightWeaveTime);
    LightWeaveTimePrevious=LightWeaveTime;
    pmem_read(2,&LW_ActionOneOn);
    pmem_read(3,&LW_ActionTwoOn);
    pmem_read(4,&LW_ActionThreeOn);
    pmem_read(5,&LW_ActionFourOn);
    pmem_read(6,&LW_ActionFiveOn);
    printf("lw time: %d | combo button state (enabled=1, disabled=0) | 1:%d , 2:%d , 3:%d , 4:%d , 5:%d",LightWeaveTime,LW_ActionOneOn,LW_ActionTwoOn,LW_ActionThreeOn,LW_ActionFourOn,LW_ActionFiveOn);
 
    pmem_read(21,&Bash_Time[1]);
    pmem_read(23,&Bash_Time[2]);
    pmem_read(25,&Bash_Time[3]);
    pmem_read(27,&Bash_Time[4]);
    pmem_read(29,&Bash_Time[5]);
    printf("bash times| 1:%d , 2:%d , 3:%d , 4:%d , 5:%d",Bash_Time[1],Bash_Time[2],Bash_Time[3],Bash_Time[4],Bash_Time[5]);
}
 
main {
    //vm_tctrl(-5); //This should run every 5 MS now
    //set_val(TRACE_1, LightWeaveTime);
    //Initiate the Light weaving script timer which also controls random second timer   
    LW_Timer = LW_Timer + get_rtime();
    if(LW_Timer >= 1337) {
        LW_Timer = 0;
        Randomizer_Timer = Randomizer_Timer + 1;
        if(Randomizer_Timer > Max_Random){Randomizer_Timer = 0;}
    }
 
    //Fishing Script
    if(AutoFishing && get_rumble(Rumble_Soft) > 0){FishingTimer = FishingTimer + get_rtime();}
    else if(AutoFishing && !get_rumble(Rumble_Soft) <= 0){
        FishingTimer = 0;}
    if(AutoFishing && FishingTimer >= 1500){
        combo_run(ReCast_Fishing);
    }
 
    //Initiate the real time timer
    MSElapsed = MSElapsed + get_rtime();
    if(MSElapsed >= 1000){
        MSElapsed = 0;
        FarmingTimer = FarmingTimer + 1;
        if(FarmingTimer >= 1200){FarmingTimer = 0;}
    }
    //Reset all persistant variables if start is held down for 4 seconds
    if(get_ptime(Start_Button) >= 4000 && get_val(Start_Button) == 100 && !get_val(Left_Stick_Click)){
        combo_run(Notification_Rumble);
        combo_run(ResetPvars);
    }
 
    //Reset all on start press if not pressing left stick click
    if(event_press(Start_Button) && !get_val(Left_Stick_Click)){
        combo_run(ResetAll);
        if(AutoLockPick || LightWeaveOn || AutoFarming || AutoFishing){combo_run(Notification_Rumble);}
    }
 
    //D Pad Left activates Auto Lockpick
    if(ReadyForInput && get_ptime(D_Left) >= 2000 && get_val(D_Left) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        AutoLockPick = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Up activates Auto Fish
    if(ReadyForInput && get_ptime(D_Up) >= 2000 && get_val(D_Up) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        AutoFishing = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Right activates Farming
    if(ReadyForInput && get_ptime(D_Right) >= 2000 && get_val(D_Right) == 100 && get_val(Right_Stick_Click)){
        Random_Second = Randomizer_Timer;
        ReadyForInput = FALSE;
        FarmingTimer = LogInTimer - 3;
        AutoFarming = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Down activates Light Weaving
    if(ReadyForInput && get_ptime(D_Down) >= 2000 && get_val(D_Down) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        LightWeaveOn = TRUE;
        combo_run(Notification_Rumble);
    }
    //Toggle for light weave abilities
    if(get_ptime(Button_Two) >= (LWTime * 1000) && get_val(Button_Two) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionOneOn = !LW_ActionOneOn;
        pmem_write(2,LW_ActionOneOn); pmem_save();
        if(LW_ActionOneOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionOneOn){
            combo_run(Off_Rumble);}}
    if(get_ptime(Button_Three) >= (LWTime * 1000) && get_val(Button_Three) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionTwoOn = !LW_ActionTwoOn;
        pmem_write(3,LW_ActionTwoOn); pmem_save();
        if(LW_ActionTwoOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionTwoOn){
            combo_run(Off_Rumble);}}
    if(get_ptime(Button_Four) >= (LWTime * 1000) && get_val(Button_Four) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionThreeOn = !LW_ActionThreeOn;
        pmem_write(4,LW_ActionThreeOn); pmem_save();
        if(LW_ActionThreeOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionThreeOn){
            combo_run(Off_Rumble);}}
    if(get_ptime(Left_Bumper) >= (LWTime * 1000) && get_val(Left_Bumper) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionFourOn = !LW_ActionFourOn;
        pmem_write(5,LW_ActionFourOn); pmem_save();
        if(LW_ActionFourOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionFourOn){
            combo_run(Off_Rumble);}}
    if(get_ptime(Right_Bumper) >= (LWTime * 1000) && get_val(Right_Bumper) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionFiveOn = !LW_ActionFiveOn;
        pmem_write(6,LW_ActionFiveOn); pmem_save();
        if(LW_ActionFiveOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionFiveOn){
            combo_run(Off_Rumble);}
    }
 
    //LockPick Scripts
    if(ReadyForInput && AutoLockPick){
        AutoLockPick = FALSE;
        combo_run(InitOpenChestScript);}
    if(ReadyForInput && OpeningLock){set_val(Right_Trigger, 100);}
    if(ReadyForInput && OpeningLock && get_rumble(Rumble_Soft) > Max_Rumble && !Depressing){
        Depressing = TRUE;
        combo_run(OpenChestScript);
    }
 
    //Auto Farming Scripts
    if(ReadyForInput && AutoFarming && (FarmingTimer >= LogInTimer + Random_Second) && logged_In){
        Random_Second = Randomizer_Timer;
        FarmingTimer = 0;
        logged_In = FALSE;
        combo_run(LogOutCombo);}
    if(ReadyForInput && AutoFarming && (FarmingTimer >= LogOutTimer + Random_Second) && !logged_In){
        Random_Second = Randomizer_Timer;
        FarmingTimer = 0;
        logged_In = TRUE;
        combo_run(LogInCombo);
    }
 
    //Light Weaving scripts
    if(get_val(D_Down) && event_press(Right_Trigger)){
        LW_Timer = 0;}
    if(get_val(D_Down) && (event_press(Button_Four) || event_press(Button_Two) || event_press(Button_Three) || event_press(Right_Bumper) || event_press(Left_Bumper))){
        LightWeaveTime = LW_Timer;
        printf("lw time now set to: %d",LightWeaveTime);
        pmem_write(0,LightWeaveTimePrevious); pmem_save();
        combo_run(On_Rumble);
        }
    if(get_val(D_Down) && (event_release(Button_Four) || event_release(Button_Two) || event_release(Button_Three) || event_release(Right_Bumper) || event_release(Left_Bumper))){
        printf("bash times old| 1:%d , 2:%d , 3:%d , 4:%d , 5:%d",Bash_Time[1],Bash_Time[2],Bash_Time[3],Bash_Time[4],Bash_Time[5]);
        if (event_release(Button_Two)) Bash_Time[1]=time_active(Button_Two);
        if (event_release(Button_Three)) Bash_Time[2]=time_active(Button_Three);
        if (event_release(Button_Four)) Bash_Time[3]=time_active(Button_Four);
        if (event_release(Left_Bumper)) Bash_Time[4]=time_active(Left_Bumper);
        if (event_release(Right_Bumper)) Bash_Time[5]=time_active(Right_Bumper);
        printf("bash times now| 1:%d , 2:%d , 3:%d , 4:%d , 5:%d",Bash_Time[1],Bash_Time[2],Bash_Time[3],Bash_Time[4],Bash_Time[5]);
        pmem_write(21,Bash_Time[1]);pmem_write(22,Bash_Time[2]);pmem_write(23,Bash_Time[3]);pmem_write(24,Bash_Time[4]);pmem_write(25,Bash_Time[5]);
        pmem_save();
 
    }
    if(LightWeaveOn && !get_val(Left_Stick_Click)){   
    //If user inputs a skill button press with light weave on
        if(event_press(Button_Two) || event_press(Button_Three) || event_press(Button_Four) || event_press(Left_Bumper) || event_press(Right_Bumper)){
            LW_Button = 0;
            if(get_val(Button_Two) && LightWeaveOn && LW_ActionOneOn){LW_Button = 1;}
            else if(get_val(Button_Three) && LightWeaveOn && LW_ActionTwoOn){LW_Button = 2;}
            else if(get_val(Button_Four) && LightWeaveOn && LW_ActionThreeOn){LW_Button = 3;}
            else if(get_val(Left_Bumper) && LightWeaveOn && LW_ActionFourOn){LW_Button = 4;}
            else if(get_val(Right_Bumper) && LightWeaveOn && LW_ActionFiveOn){LW_Button = 5;}
            if(LW_Button > 0){combo_run(LW_Combo);}
        }
        if(LW_ActionOneOn){block(Button_Two, 300);}
        if(LW_ActionTwoOn){block(Button_Three, 300);}
        if(LW_ActionThreeOn){block(Button_Four, 300);}
        if(LW_ActionFourOn){block(Left_Bumper, 300);}
        if(LW_ActionFiveOn){block(Right_Bumper, 300);}
    }
}
 
combo InitOpenChestScript
{
//Open chest, move to far left tumbler. Set 5 tumblers left, move on to next script.
    set_val(Button_One, 100);    wait(200);
    set_val(Button_One, 0);    wait(750);
    set_val(LeftStick_X, -100);    wait(400);
    set_val(LeftStick_X, 0);
    TumblersToOpen = 5;
    OpeningLock = TRUE;
}
 
combo OpenChestScript
{
    set_val(Right_Trigger, 0);
    if(TumblersToOpen > 1){
        set_val(LeftStick_X, 100);
    }
    wait(200);
    set_val(LeftStick_X, 0);
    if(TumblersToOpen < 2){
        set_val(Right_Trigger, 0);
        OpeningLock = FALSE;//Once all pins are depressed turn off the script
    }
    TumblersToOpen = TumblersToOpen - 1;
    Depressing = FALSE;
}
 
combo ReCast_Fishing
{
    set_val(Button_One, 100);   wait(100);
    set_val(Button_One, 0);     wait(2600);
    set_val(Button_One, 100);   wait(100);
    set_val(Button_One, 0)
    FishingTimer = 0;
}
 
combo LogInCombo
{
    set_val(Button_One, 100);   wait(200);
    set_val(Button_One, 0);    wait(100);
    FarmingTimer = 0;
    logged_In = FALSE;
}
 
combo LogOutCombo
{
    //Look down, press A
    set_val(RightStick_Y, 100);    wait(1200);
    set_val(RightStick_Y, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(200);
 
    //Open menu, press right trigger, and log out.
    set_val(Start_Button, 100);    wait(100);
    set_val(Start_Button, 0);    wait(250);
    set_val(Right_Trigger, 100);    wait(100);
    set_val(Right_Trigger, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(100);
 
    FarmingTimer = 0;
    logged_In = TRUE;
}
 
combo LW_Combo
{
    set_val(Right_Trigger, 100);    wait(100);
    set_val(Right_Trigger, 0);      wait(LightWeaveTime);
    if(LW_Button == 1){set_val(Button_Two, 100);}
    else if(LW_Button == 2){set_val(Button_Three, 100);}
    else if(LW_Button == 3){set_val(Button_Four, 100);}
    else if(LW_Button == 4){set_val(Left_Bumper, 100);}
    else if(LW_Button == 5){set_val(Right_Bumper, 100);}
    wait(100);
    set_val(Button_One, 0);
    set_val(Button_Three, 0);
    set_val(Button_Four, 0);
    set_val(Right_Bumper, 0);
    set_val(Left_Bumper, 0);
    wait(Bash_Time[LW_Button]);
    set_val(Block_Button, 100);   wait(75);
    set_val(Block_Button, 0);   wait(100);
}
 
combo Notification_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(200);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(200);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(1150);
 
    ReadyForInput = TRUE;
}
 
combo On_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(500);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(2000);   
    Waiting = FALSE;
}
 
combo Off_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(2000);
    Waiting = FALSE;
}
 
combo ResetAll
{
    set_val(Right_Trigger, 0);
    set_val(LeftStick_Y, 0);
 
    ReadyForInput = TRUE;
    AutoLockPick = FALSE;
    OpeningLock = FALSE;
    Depressing = FALSE;
    LightWeaveOn = FALSE;
    AutoWalk = FALSE;
    Waiting = FALSE;
    AutoFarming = FALSE;
    AutoFishing = FALSE;
}
 
combo ResetPvars
{
    LightWeaveTime = LightWeaveTimePrevious;
    LW_ActionOneOn = TRUE;   //Xbox One: X  ||  PS4: Square  //
    LW_ActionTwoOn = TRUE;   //Xbox One: Y  ||  PS4: Triangle//
    LW_ActionThreeOn = TRUE; //Xbox One: B  ||  PS4: Circle  //
    LW_ActionFourOn = TRUE//Xbox One: LB ||  PS4: L1      //
    LW_ActionFiveOn = TRUE//Xbox One: RB ||  PS4: R1      //
    pmem_write(0,LightWeaveTimePrevious);
    pmem_write(2,LW_ActionOneOn); pmem_write(3,LW_ActionTwoOn);
    pmem_write(4,LW_ActionThreeOn);    pmem_write(5,LW_ActionFourOn);
    pmem_write(6,LW_ActionFiveOn);
    pmem_save();
}
 
/* ic
<cfgdesc>
 
[Elder Scrolls Online With Block Canceling for TITAN TWO]
control = info
shortdesc = <<<MULTILINE
<b>! This is a modified version for the Titan Two !</b>
 
Original Titan One Script by Elvish &nbsp;&nbsp;&nbsp;<a href="https://www.consoletuner.com/gpclib/?s=1017">Original Script @ GPC Library</a>&nbsp;&nbsp;&nbsp;<a href="https://www.consoletuner.com/forum/viewtopic.php?f=6&t=1814">Original Script Forum Topic</a>
MULTILINE
 
[Notes     <-- click to expand]
collapsible = 2
control = info
shortdesc = <<<MULTILINE
<b>! This is a modified version for the Titan Two !</b>
 
Original Titan One Script by Elvish &nbsp;&nbsp;&nbsp;<a href="https://www.consoletuner.com/gpclib/?s=1017">Original Script @ GPC Library</a>&nbsp;&nbsp;&nbsp;<a href="https://www.consoletuner.com/forum/viewtopic.php?f=6&t=1814">Original Script Forum Topic</a>
 
<b>Important</b>
The notes does not apply to 100% to this T2 version of the script. Some values are configured via the Interactive Configuration instead !
Notes:
///////////////////////
//Section 1: CONTROLS//
///////////////////////
 
  Reset Controls
        -Press Start to turn scripts off
            1. If you hold down Left Stick Click while pressing start no scripts will be turned off
        -Press and hold Start for 4 seconds to reset any persistant variables.
            1. This currently consists of the light weave time, and the initial on/off settings for the
                light weave skills.
            **NOTES**
                -If you are holding Left Stick Click no scripts will be turned off
 
  Auto Walking Controls
        -Press and hold Right Stick Down and hold Left Stick Click for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Activate the script any time, initial settings are set to press sprint every 10.
                -If sprint is already on the button will still be pressed and as such will turn sprinting off.
 
  Lockpicking Controls
        -Press and hold Right Stick Down and hold D Pad Left for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Max rumble beeds to be set to 6 for Xbox One and 75 for PS4 for this script to work properly
                -Look at the lock to be picked and then activate the script
                -If you are not looking at a lock you will need to press start to get right trigger turned off
 
  Fishing Controls
        -Press and hold Right Stick Down and hold D Pad Up for about 2 seconds or until you feel a rumble to activate the script
            Then press A/Cross while looking at a fishing hole, it will fish it out for you.
 
  Farming Controls
        -Press and hold Right Stick Down and hold D Pad Right for about 2 seconds or until you feel a rumble to activate the script
            **Notes**
                -Stand ontop of something (dresser, nightstand, backpack) then activate the script
                -For best results stand on something flat (Backpacks are not flat, but dressers are) and look
                    down. Spin in 360 degreese to ensure you are looking at the desired object no matter what
                    direction you face. That is not to say you CAN'T loot backpacks, but in my experience my
                    toon falls off of them after 5 - 10 minutes of cycling.
 
  Light Weave Controls
        -Press and hold Right stick down and then hold D Pad Down for about 2 seconds or until you feel a rumble to activate the script
        -Press and hold any ablity button to toggle it being on or off (1 rumble means off, 2 rumbles means on)
        -In order to use your ultimate you must first press and hold down Left Stick Click, then press the buttons to cast ultimate
        -To set a new light weave time in-game preform a light weave attack with D Pad Down held down, or in other words:
            1. With D Pad Down held down
                A. Press right trigger
                B. Then press any ability button(Controller will rumble to acknowledge the input)
                   AND Hold down the ability button until the animation is ready to be blocked
        -If you hold Left Stick Click then while light weave is active no light weave abilities will be used
            **NOTES**
                -You can turn light weaving on and off for specific buttons regardless if the light weaving
                    script is currently active or not.
                -Your settings will be save even with the Titan One turned off. Hold start for 4 seconds to
                    clear your settings back to the initial settings.
 
////////////////////////////////
//Section 2: NOTES ON SETTINGS//
////////////////////////////////
  Misc Settings
        -Rumble Notification defines the rumble strength of notifications. These notifications
            will happen every time user enters a menu or changes a setting. Set this high enough
            that you will feel the rumble indication.
                1. Three Rumbles means a script is being turn on or off
                2. Two rumbles means a light weave ability is toggled on or light weave time is now set.
                3. One Rumble means that a light weave ability is toggled off
 
  Lockpick Settings
        -Max_Rumble defines when to move to the next pin of the lock. Set to 6 if on Xbox One or
            set to 75 if you are on PS4.
 
  Auto Farming Settings
        -Log In Timer dictates the time inbetween pressing A to select your character and logging out
        -Lot Out Timer dictates the time inbetween pressing log out in game and pressing A to log back
            in (Remember it takes 9 extra seconds if you are in an unsafe zone)
        -Max Random decides how greatly the times to log in and out can be raised (Set to 0 to dissable)
 
  Auto Walk Settings
        -SprintSpeed defines after how many seconds to press the sprint button, this can be
            deactivated by setting to 0.
 
  Light Weaving Settings
        -LightWeaveTime defines how many Miliseconds to wait after pressing right trigger before
            casting an ability.
        -LWTime defines how many seconds you must hold a skill button to toggle it being on or off.
        -The LW_Action skills define if light weaving is set to on or off for that particular skill,
            this can be changed in game. But you may modify them here if you know what you want for
            starting points every time you load the script.
MULTILINE
 
 
[LightWeaveTime]
shortdesc = The time you wait after hitting right trigger and before using an ability
byteoffset = 0
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[bash 0]
shortdesc = dummy
collapsible = 3
byteoffset = 19
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[bash 1]
byteoffset = 2
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = enable lw combo for "Button_Two (Xbox One: X  ||  PS4: Square)"
 
[bash 1 time]
group = true
shortdesc = wait time
byteoffset = 21
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[bash 2]
byteoffset = 3
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = enable lw combo for "Button_Three (Xbox One: Y  ||  PS4: Triangle)"
 
[bash 2 time]
group = true
shortdesc = wait time
byteoffset = 23
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[bash 3]
byteoffset = 4
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = enable lw combo for "Button_Four (Xbox One: B  ||  PS4: Circle)"
 
[bash 3 time]
group = true
shortdesc = wait time
byteoffset = 25
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[bash 4]
byteoffset = 5
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = enable lw combo for "Left Bumper"
 
[bash 4 time]
group = true
shortdesc = wait time
byteoffset = 27
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[bash 5]
byteoffset = 6
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = enable lw combo for "Right Bumper"
 
[bash 5 time]
group = true
shortdesc = wait time
byteoffset = 29
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
</cfgdesc>
*/
I guess I should create a seperate thread for the T2 script ? It confusing right now with all the T2 related versions.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Elder Scrolls Online GamePack!

Postby Vonburner » Sat Oct 19, 2019 1:32 pm

Lol yeah it is I’m new to T1 and T2 I was on device before upgrading. I’ll give it a try and be a test dummy. Also, T2 Version would made it easier to script and change things on da fly lol
User avatar
Vonburner
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Wed Oct 09, 2019 1:47 am

Re: Elder Scrolls Online GamePack!

Postby Vonburner » Sat Oct 19, 2019 5:06 pm

Ive been trying it out changing the values and almost no difference it seem to still be going faster then the skills are they both will try to shoot lol
User avatar
Vonburner
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Wed Oct 09, 2019 1:47 am

Re: Elder Scrolls Online GamePack!

Postby Scachi » Sat Oct 19, 2019 7:27 pm

Vonburner wrote:Ive been trying it out changing the values and almost no difference it seem to still be going faster then the skills are they both will try to shoot lol

The configuration of the individual bash times have to be configured via the Interactive Configuration (gear like icon in the slot you installed the script o). You may have to adjust the weave time there too if 100 is too fast.
After adjusting the values hit the "Save and Run" button in the Interactive Configuration for the changes to take effect.

I have added some more text output message to the gtuner iv output panel when you are running this script.
It will write out the times that it is currently using

If this version isn't helping you you have to stick with the previous version that was working for you and adjust the wait time for your slowest skill to work for all then or find someone that has the game to do the script so they can actually test it ingame.
Code: Select all
#pragma METAINFO("Elder Scrolls Online", 2, 1, "Elvish orgT1, Scachi convT2")
#include <titanone.gph>
///////////////////////////////////////////////////////////
//Elder Scrolls Online Gamepack V2.1 With Block Canceling//
///////////////////////////////////////////////////////////
// https://www.consoletuner.com/gpclib/?s=1017
// viewtopic.php?f=6&t=1814
///////////////////////////////////////////////////////////
/*  ///////////////////////
    //Section 1: CONTROLS//
    ///////////////////////
 
  Reset Controls
        -Press Start to turn scripts off
            1. If you hold down Left Stick Click while pressing start no scripts will be turned off
        -Press and hold Start for 4 seconds to reset any persistant variables.
            1. This currently consists of the light weave time, and the initial on/off settings for the
                light weave skills.
            **NOTES**
                -If you are holding Left Stick Click no scripts will be turned off
 
  Auto Walking Controls
        -Press and hold Right Stick Down and hold Left Stick Click for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Activate the script any time, initial settings are set to press sprint every 10.
                -If sprint is already on the button will still be pressed and as such will turn sprinting off.
 
  Lockpicking Controls
        -Press and hold Right Stick Down and hold D Pad Left for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Max rumble beeds to be set to 6 for Xbox One and 75 for PS4 for this script to work properly
                -Look at the lock to be picked and then activate the script
                -If you are not looking at a lock you will need to press start to get right trigger turned off
 
  Fishing Controls
        -Press and hold Right Stick Down and hold D Pad Up for about 2 seconds or until you feel a rumble to activate the script
            Then press A/Cross while looking at a fishing hole, it will fish it out for you.
 
  Farming Controls
        -Press and hold Right Stick Down and hold D Pad Right for about 2 seconds or until you feel a rumble to activate the script
            **Notes**
                -Stand ontop of something (dresser, nightstand, backpack) then activate the script
                -For best results stand on something flat (Backpacks are not flat, but dressers are) and look
                    down. Spin in 360 degreese to ensure you are looking at the desired object no matter what
                    direction you face. That is not to say you CAN'T loot backpacks, but in my experience my
                    toon falls off of them after 5 - 10 minutes of cycling.
 
  Light Weave Controls
        -Press and hold Right stick down and then hold D Pad Down for about 2 seconds or until you feel a rumble to activate the script
        -Press and hold any ablity button to toggle it being on or off (1 rumble means off, 2 rumbles means on)
        -In order to use your ultimate you must first press and hold down Left Stick Click, then press the buttons to cast ultimate
        -To set a new light weave time in-game preform a light weave attack with D Pad Down held down, or in other words:
            1. With D Pad Down held down
                A. Press right trigger
                B. Then press any ability button(Controller will rumble to acknowledge the input)
                   AND Hold down the ability button until the animation is ready to be blocked
        -If you hold Left Stick Click then while light weave is active no light weave abilities will be used
            **NOTES**
                -You can turn light weaving on and off for specific buttons regardless if the light weaving
                    script is currently active or not.
                -Your settings will be save even with the Titan One turned off. Hold start for 4 seconds to
                    clear your settings back to the initial settings.
 
*/
       
 
/*  ////////////////////////////////
    //Section 2: NOTES ON SETTINGS//
    ////////////////////////////////
  Misc Settings
        -Rumble Notification defines the rumble strength of notifications. These notifications
            will happen every time user enters a menu or changes a setting. Set this high enough
            that you will feel the rumble indication.
                1. Three Rumbles means a script is being turn on or off
                2. Two rumbles means a light weave ability is toggled on or light weave time is now set.
                3. One Rumble means that a light weave ability is toggled off
 
  Lockpick Settings
        -Max_Rumble defines when to move to the next pin of the lock. Set to 6 if on Xbox One or
            set to 75 if you are on PS4.
 
  Auto Farming Settings
        -Log In Timer dictates the time inbetween pressing A to select your character and logging out
        -Lot Out Timer dictates the time inbetween pressing log out in game and pressing A to log back
            in (Remember it takes 9 extra seconds if you are in an unsafe zone)
        -Max Random decides how greatly the times to log in and out can be raised (Set to 0 to dissable)
 
  Auto Walk Settings
        -SprintSpeed defines after how many seconds to press the sprint button, this can be
            deactivated by setting to 0.
 
  Light Weaving Settings
        -LightWeaveTime defines how many Miliseconds to wait after pressing right trigger before
            casting an ability. Because this script runs every 5 MS this should be set in an
            increment of 5 MS.
        -LWTime defines how many seconds you must hold a skill button to toggle it being on or off.
        -The LW_Action skills define if light weaving is set to on or off for that particular skill,
            this can be changed in game. But you may modify them here if you know what you want for
            starting points every time you load the script.
 
   */
//////////////////////
    //Section 3: Settings// some of the following settings are configured via the Interactive Configuration !
    ///////////////////////
    int Block_Button = XB1_LB;
    int Bash_Time[6] = {
        100, // wait time for "no weaving button"
        100, // wait time for "Button_Two(Xbox One: X  ||  PS4: Square)" in weaving combo
        100, // wait time for "Button_Three(Xbox One: Y  ||  PS4: Triangle)" in weaving combo
        100, // wait time for "Button_Four(Xbox One: B  ||  PS4: Circle)" in weaving combo
        100, // wait time for "Left Bumper" in weaving combo
        100, // wait time for "Right Bumper" in weaving combo
    };
 
  //Misc Settings
    uint8 RumbleNotification = 20; //The rumble strength for all notifications
 
  //Auto Lockpick Settings   
    uint8 Max_Rumble = 6; //set to 6 for xbox one and 75 for PS4 (Lockpick rumble detection)
 
  //Auto Walk Settings
    int SprintSpeed = 10; //This is how many seconds inbtween left stick clicks(it will turn sprint off if already sprinting. 0 will dissable.)
 
  //Auto farm scripts
    int LogInTimer = 35; //Time it takes to log on
    int LogOutTimer = 34; //Time it takes to log off
    int Max_Random = 10; //The amount of time in which logging in or out can change
 
  //Light Weaving Settings
    int LWTime = 4; //Seconds you must hold a button to toggle the lightweave for a skill on or off
    int LightWeaveTime = 70; //The time you wait after hitting right trigger and before using an ability
    int LightWeaveTimePrevious = 70;
    //Initial On-Off values for the light weaving skills
    bool LW_ActionOneOn = TRUE;   //Xbox One: X  ||  PS4: Square  //
    bool LW_ActionTwoOn = TRUE;   //Xbox One: Y  ||  PS4: Triangle//
    bool LW_ActionThreeOn = TRUE; //Xbox One: B  ||  PS4: Circle  //
    bool LW_ActionFourOn = TRUE//Xbox One: LB ||  PS4: L1      //
    bool LW_ActionFiveOn = TRUE//Xbox One: RB ||  PS4: R1      //
 
/*  //=============================\\
    ||DO NOT MODIFY BELOW THIS LINE||
    ||DO NOT MODIFY BELOW THIS LINE||
    ||DO NOT MODIFY BELOW THIS LINE||
    \\=============================//   */

 
/*Button definitions. As these are all the same index on Xbox One and PS4 these
    deffinitions will work on both consoles. Make sure to adjust the settings
    section though!*/

define Button_One = 19//Xbox One: A  ||  PS4: Cross   //
define Button_Two = 20//Xbox One: X  ||  PS4: Square  //
define Button_Three = 17;//Xbox One: Y  ||  PS4: Triangle//
define Button_Four = 18; //Xbox One: B  ||  PS4: Circle  //
define Right_Bumper = 3;
define Right_Trigger = 4;
define Right_Stick_Click = 5;
define Left_Bumper = 6;
define Left_Trigger = 7;
define Left_Stick_Click = 8;
define Select_Button = 1;
define Center_Button = 0;
define Start_Button = 2;
define D_Up = 13;
define D_Right = 16;
define D_Down = 14;
define D_Left = 15;
define LeftStick_X = 11;//Left stick left(-100) and right(+100)
define LeftStick_Y = 12;//Left stick up(-100) and down(+100)
define RightStick_X = 9;//Right stick left(-100) and right(+100)
define RightStick_Y = 10;//Right stick up(-100) and down(+100)
 
//Rumble Packs
define Rumble_Soft = RUMBLE_B;
define Rumble_Hard = RUMBLE_A;
 
//Booleans
int ReadyForInput = TRUE;
int AutoLockPick = FALSE;
int OpeningLock = FALSE;
int Depressing = FALSE;
int LightWeaveOn = FALSE;
int AutoWalk = FALSE;
int Waiting = FALSE;
int logged_In = TRUE;
int AutoFishing = FALSE;
int AutoFarming = FALSE;
 
//Variables
int MSElapsed = 0;
int Randomizer_Timer = 0;
int TumblersToOpen = 0;
int LW_Timer = 0;
int SprintTimer = 0;
int FarmingTimer = 0;
int LW_Button = 0;
int Random_Timer_Inc = 1337;
int Random_Second = 0;
int FishingTimer = 0;
 
init{
    pmem_load();
    pmem_read(0,&LightWeaveTime);
    LightWeaveTimePrevious=LightWeaveTime;
    pmem_read(2,&LW_ActionOneOn);
    pmem_read(3,&LW_ActionTwoOn);
    pmem_read(4,&LW_ActionThreeOn);
    pmem_read(5,&LW_ActionFourOn);
    pmem_read(6,&LW_ActionFiveOn);
    pmem_read(7,&RumbleNotification);
    pmem_read(8,&Max_Rumble);
    if (Max_Rumble==0) Max_Rumble=75; // ps4
    else Max_Rumble=6; // xbox one
    printf("lw time: %d | lockpicking maxrumble: %d | combo button state (enabled=1, disabled=0) | 1:%d , 2:%d , 3:%d , 4:%d , 5:%d",LightWeaveTime,Max_Rumble,LW_ActionOneOn,LW_ActionTwoOn,LW_ActionThreeOn,LW_ActionFourOn,LW_ActionFiveOn);
 
    pmem_read(21,&Bash_Time[1]);
    pmem_read(23,&Bash_Time[2]);
    pmem_read(25,&Bash_Time[3]);
    pmem_read(27,&Bash_Time[4]);
    pmem_read(29,&Bash_Time[5]);
    printf("bash times| 1:%d , 2:%d , 3:%d , 4:%d , 5:%d",Bash_Time[1],Bash_Time[2],Bash_Time[3],Bash_Time[4],Bash_Time[5]);
}
 
main {
    //vm_tctrl(-5); //This should run every 5 MS now
    //set_val(TRACE_1, LightWeaveTime);
    //Initiate the Light weaving script timer which also controls random second timer   
    LW_Timer = LW_Timer + get_rtime();
    if(LW_Timer >= 1337) {
        LW_Timer = 0;
        Randomizer_Timer = Randomizer_Timer + 1;
        if(Randomizer_Timer > Max_Random){Randomizer_Timer = 0;}
    }
 
    //Fishing Script
    if(AutoFishing && get_rumble(Rumble_Soft) > 0){FishingTimer = FishingTimer + get_rtime();}
    else if(AutoFishing && !get_rumble(Rumble_Soft) <= 0){
        FishingTimer = 0;}
    if(AutoFishing && FishingTimer >= 1500){
        combo_run(ReCast_Fishing);
    }
 
    //Initiate the real time timer
    MSElapsed = MSElapsed + get_rtime();
    if(MSElapsed >= 1000){
        MSElapsed = 0;
        FarmingTimer = FarmingTimer + 1;
        if(FarmingTimer >= 1200){FarmingTimer = 0;}
    }
    //Reset all persistant variables if start is held down for 4 seconds
    if(get_ptime(Start_Button) >= 4000 && get_val(Start_Button) == 100 && !get_val(Left_Stick_Click)){
        combo_run(Notification_Rumble);
        combo_run(ResetPvars);
    }
 
    //Reset all on start press if not pressing left stick click
    if(event_press(Start_Button) && !get_val(Left_Stick_Click)){
        combo_run(ResetAll);
        if(AutoLockPick || LightWeaveOn || AutoFarming || AutoFishing){combo_run(Notification_Rumble);}
    }
 
    //D Pad Left activates Auto Lockpick
    if(ReadyForInput && get_ptime(D_Left) >= 2000 && get_val(D_Left) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        AutoLockPick = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Up activates Auto Fish
    if(ReadyForInput && get_ptime(D_Up) >= 2000 && get_val(D_Up) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        AutoFishing = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Right activates Farming
    if(ReadyForInput && get_ptime(D_Right) >= 2000 && get_val(D_Right) == 100 && get_val(Right_Stick_Click)){
        Random_Second = Randomizer_Timer;
        ReadyForInput = FALSE;
        FarmingTimer = LogInTimer - 3;
        AutoFarming = TRUE;
        combo_run(Notification_Rumble);
    }
    //D Pad Down activates Light Weaving
    if(ReadyForInput && get_ptime(D_Down) >= 2000 && get_val(D_Down) == 100 && get_val(Right_Stick_Click)){
        ReadyForInput = FALSE;
        LightWeaveOn = TRUE;
        combo_run(Notification_Rumble);
    }
    //Toggle for light weave abilities
    if(get_ptime(Button_Two) >= (LWTime * 1000) && get_val(Button_Two) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionOneOn = !LW_ActionOneOn;
        pmem_write(2,LW_ActionOneOn); pmem_save();
        if(LW_ActionOneOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionOneOn){
            combo_run(Off_Rumble);}}
    if(get_ptime(Button_Three) >= (LWTime * 1000) && get_val(Button_Three) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionTwoOn = !LW_ActionTwoOn;
        pmem_write(3,LW_ActionTwoOn); pmem_save();
        if(LW_ActionTwoOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionTwoOn){
            combo_run(Off_Rumble);}}
    if(get_ptime(Button_Four) >= (LWTime * 1000) && get_val(Button_Four) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionThreeOn = !LW_ActionThreeOn;
        pmem_write(4,LW_ActionThreeOn); pmem_save();
        if(LW_ActionThreeOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionThreeOn){
            combo_run(Off_Rumble);}}
    if(get_ptime(Left_Bumper) >= (LWTime * 1000) && get_val(Left_Bumper) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionFourOn = !LW_ActionFourOn;
        pmem_write(5,LW_ActionFourOn); pmem_save();
        if(LW_ActionFourOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionFourOn){
            combo_run(Off_Rumble);}}
    if(get_ptime(Right_Bumper) >= (LWTime * 1000) && get_val(Right_Bumper) == 100 && !Waiting){
        Waiting = TRUE;
        LW_ActionFiveOn = !LW_ActionFiveOn;
        pmem_write(6,LW_ActionFiveOn); pmem_save();
        if(LW_ActionFiveOn){
            combo_run(On_Rumble);}
        else if(!LW_ActionFiveOn){
            combo_run(Off_Rumble);}
    }
 
    //LockPick Scripts
    if(ReadyForInput && AutoLockPick){
        AutoLockPick = FALSE;
        combo_run(InitOpenChestScript);}
    if(ReadyForInput && OpeningLock){set_val(Right_Trigger, 100);}
    if(ReadyForInput && OpeningLock && get_rumble(Rumble_Soft) > Max_Rumble && !Depressing){
        Depressing = TRUE;
        combo_run(OpenChestScript);
    }
 
    //Auto Farming Scripts
    if(ReadyForInput && AutoFarming && (FarmingTimer >= LogInTimer + Random_Second) && logged_In){
        Random_Second = Randomizer_Timer;
        FarmingTimer = 0;
        logged_In = FALSE;
        combo_run(LogOutCombo);}
    if(ReadyForInput && AutoFarming && (FarmingTimer >= LogOutTimer + Random_Second) && !logged_In){
        Random_Second = Randomizer_Timer;
        FarmingTimer = 0;
        logged_In = TRUE;
        combo_run(LogInCombo);
    }
 
    //Light Weaving scripts
    if(get_val(D_Down) && event_press(Right_Trigger)){
        LW_Timer = 0;}
    if(get_val(D_Down) && (event_press(Button_Four) || event_press(Button_Two) || event_press(Button_Three) || event_press(Right_Bumper) || event_press(Left_Bumper))){
        LightWeaveTime = LW_Timer;
        printf("lw time now set to: %d",LightWeaveTime);
        pmem_write(0,LightWeaveTimePrevious); pmem_save();
        combo_run(On_Rumble);
        }
    if(get_val(D_Down) && (event_release(Button_Four) || event_release(Button_Two) || event_release(Button_Three) || event_release(Right_Bumper) || event_release(Left_Bumper))){
        printf("bash times old| 1:%d , 2:%d , 3:%d , 4:%d , 5:%d",Bash_Time[1],Bash_Time[2],Bash_Time[3],Bash_Time[4],Bash_Time[5]);
        if (event_release(Button_Two)) Bash_Time[1]=time_active(Button_Two);
        if (event_release(Button_Three)) Bash_Time[2]=time_active(Button_Three);
        if (event_release(Button_Four)) Bash_Time[3]=time_active(Button_Four);
        if (event_release(Left_Bumper)) Bash_Time[4]=time_active(Left_Bumper);
        if (event_release(Right_Bumper)) Bash_Time[5]=time_active(Right_Bumper);
        printf("bash times now| 1:%d , 2:%d , 3:%d , 4:%d , 5:%d",Bash_Time[1],Bash_Time[2],Bash_Time[3],Bash_Time[4],Bash_Time[5]);
        pmem_write(21,Bash_Time[1]);pmem_write(22,Bash_Time[2]);pmem_write(23,Bash_Time[3]);pmem_write(24,Bash_Time[4]);pmem_write(25,Bash_Time[5]);
        pmem_save();
 
    }
    if(LightWeaveOn && !get_val(Left_Stick_Click)){   
    //If user inputs a skill button press with light weave on
        if(event_press(Button_Two) || event_press(Button_Three) || event_press(Button_Four) || event_press(Left_Bumper) || event_press(Right_Bumper)){
            LW_Button = 0;
            if(get_val(Button_Two) && LightWeaveOn && LW_ActionOneOn){LW_Button = 1;}
            else if(get_val(Button_Three) && LightWeaveOn && LW_ActionTwoOn){LW_Button = 2;}
            else if(get_val(Button_Four) && LightWeaveOn && LW_ActionThreeOn){LW_Button = 3;}
            else if(get_val(Left_Bumper) && LightWeaveOn && LW_ActionFourOn){LW_Button = 4;}
            else if(get_val(Right_Bumper) && LightWeaveOn && LW_ActionFiveOn){LW_Button = 5;}
            if(LW_Button > 0){combo_run(LW_Combo);}
        }
        if(LW_ActionOneOn){block(Button_Two, 300);}
        if(LW_ActionTwoOn){block(Button_Three, 300);}
        if(LW_ActionThreeOn){block(Button_Four, 300);}
        if(LW_ActionFourOn){block(Left_Bumper, 300);}
        if(LW_ActionFiveOn){block(Right_Bumper, 300);}
    }
}
 
combo InitOpenChestScript
{
//Open chest, move to far left tumbler. Set 5 tumblers left, move on to next script.
    set_val(Button_One, 100);    wait(200);
    set_val(Button_One, 0);    wait(750);
    set_val(LeftStick_X, -100);    wait(400);
    set_val(LeftStick_X, 0);
    TumblersToOpen = 5;
    OpeningLock = TRUE;
}
 
combo OpenChestScript
{
    set_val(Right_Trigger, 0);
    if(TumblersToOpen > 1){
        set_val(LeftStick_X, 100);
    }
    wait(200);
    set_val(LeftStick_X, 0);
    if(TumblersToOpen < 2){
        set_val(Right_Trigger, 0);
        OpeningLock = FALSE;//Once all pins are depressed turn off the script
    }
    TumblersToOpen = TumblersToOpen - 1;
    Depressing = FALSE;
}
 
combo ReCast_Fishing
{
    set_val(Button_One, 100);   wait(100);
    set_val(Button_One, 0);     wait(2600);
    set_val(Button_One, 100);   wait(100);
    set_val(Button_One, 0)
    FishingTimer = 0;
}
 
combo LogInCombo
{
    set_val(Button_One, 100);   wait(200);
    set_val(Button_One, 0);    wait(100);
    FarmingTimer = 0;
    logged_In = FALSE;
}
 
combo LogOutCombo
{
    //Look down, press A
    set_val(RightStick_Y, 100);    wait(1200);
    set_val(RightStick_Y, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(200);
 
    //Open menu, press right trigger, and log out.
    set_val(Start_Button, 100);    wait(100);
    set_val(Start_Button, 0);    wait(250);
    set_val(Right_Trigger, 100);    wait(100);
    set_val(Right_Trigger, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(100);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(100);
 
    FarmingTimer = 0;
    logged_In = TRUE;
}
 
combo LW_Combo
{    printf("LW_Button %d, Wait time to be used: %d",LW_Button,Bash_Time[LW_Button]); wait(0);
    set_val(Right_Trigger, 100);    wait(100);
    set_val(Right_Trigger, 0);      wait(LightWeaveTime);
    if(LW_Button == 1){set_val(Button_Two, 100);}
    else if(LW_Button == 2){set_val(Button_Three, 100);}
    else if(LW_Button == 3){set_val(Button_Four, 100);}
    else if(LW_Button == 4){set_val(Left_Bumper, 100);}
    else if(LW_Button == 5){set_val(Right_Bumper, 100);}
    wait(100);
    set_val(Button_One, 0); set_val(Button_Three, 0); set_val(Button_Four, 0);
    set_val(Right_Bumper, 0); set_val(Left_Bumper, 0);
    wait(Bash_Time[LW_Button]);
    set_val(Block_Button, 100);   wait(75);
    set_val(Block_Button, 0);   wait(100);
}
 
combo Notification_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(200);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(200);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(150);
    set_rumble(Rumble_Hard, 0);                     wait(1150);
 
    ReadyForInput = TRUE;
}
 
combo On_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(500);
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(2000);   
    Waiting = FALSE;
}
 
combo Off_Rumble
{
    set_rumble(Rumble_Hard, RumbleNotification);    wait(200);
    set_rumble(Rumble_Hard, 0);                     wait(2000);
    Waiting = FALSE;
}
 
combo ResetAll
{
    set_val(Right_Trigger, 0);
    set_val(LeftStick_Y, 0);
 
    ReadyForInput = TRUE;
    AutoLockPick = FALSE;
    OpeningLock = FALSE;
    Depressing = FALSE;
    LightWeaveOn = FALSE;
    AutoWalk = FALSE;
    Waiting = FALSE;
    AutoFarming = FALSE;
    AutoFishing = FALSE;
}
 
combo ResetPvars
{
    LightWeaveTime = LightWeaveTimePrevious;
    LW_ActionOneOn = TRUE;   //Xbox One: X  ||  PS4: Square  //
    LW_ActionTwoOn = TRUE;   //Xbox One: Y  ||  PS4: Triangle//
    LW_ActionThreeOn = TRUE; //Xbox One: B  ||  PS4: Circle  //
    LW_ActionFourOn = TRUE//Xbox One: LB ||  PS4: L1      //
    LW_ActionFiveOn = TRUE//Xbox One: RB ||  PS4: R1      //
    pmem_write(0,LightWeaveTimePrevious);
    pmem_write(2,LW_ActionOneOn); pmem_write(3,LW_ActionTwoOn);
    pmem_write(4,LW_ActionThreeOn);    pmem_write(5,LW_ActionFourOn);
    pmem_write(6,LW_ActionFiveOn);
    pmem_save();
}
 
/* ic
<cfgdesc>
 
[Elder Scrolls Online With Block Canceling for TITAN TWO]
control = info
shortdesc = <<<MULTILINE
<b>! This is a modified version for the Titan Two !</b>
 
Original Titan One Script by Elvish &nbsp;&nbsp;&nbsp;<a href="https://www.consoletuner.com/gpclib/?s=1017">Original Script @ GPC Library</a>&nbsp;&nbsp;&nbsp;<a href="https://www.consoletuner.com/forum/viewtopic.php?f=6&t=1814">Original Script Forum Topic</a>
MULTILINE
 
[Notes     <-- click to expand]
collapsible = 2
control = info
shortdesc = <<<MULTILINE
<b>! This is a modified version for the Titan Two !</b>
 
Original Titan One Script by Elvish &nbsp;&nbsp;&nbsp;<a href="https://www.consoletuner.com/gpclib/?s=1017">Original Script @ GPC Library</a>&nbsp;&nbsp;&nbsp;<a href="https://www.consoletuner.com/forum/viewtopic.php?f=6&t=1814">Original Script Forum Topic</a>
 
<b>Important</b>
The notes does not apply to 100% to this T2 version of the script. Some values are configured via the Interactive Configuration instead !
Notes:
///////////////////////
//Section 1: CONTROLS//
///////////////////////
 
  Reset Controls
        -Press Start to turn scripts off
            1. If you hold down Left Stick Click while pressing start no scripts will be turned off
        -Press and hold Start for 4 seconds to reset any persistant variables.
            1. This currently consists of the light weave time, and the initial on/off settings for the
                light weave skills.
            **NOTES**
                -If you are holding Left Stick Click no scripts will be turned off
 
  Auto Walking Controls
        -Press and hold Right Stick Down and hold Left Stick Click for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Activate the script any time, initial settings are set to press sprint every 10.
                -If sprint is already on the button will still be pressed and as such will turn sprinting off.
 
  Lockpicking Controls
        -Press and hold Right Stick Down and hold D Pad Left for about 2 seconds or until you feel a rumble to activate the script
            **NOTES**
                -Max rumble beeds to be set to 6 for Xbox One and 75 for PS4 for this script to work properly
                -Look at the lock to be picked and then activate the script
                -If you are not looking at a lock you will need to press start to get right trigger turned off
 
  Fishing Controls
        -Press and hold Right Stick Down and hold D Pad Up for about 2 seconds or until you feel a rumble to activate the script
            Then press A/Cross while looking at a fishing hole, it will fish it out for you.
 
  Farming Controls
        -Press and hold Right Stick Down and hold D Pad Right for about 2 seconds or until you feel a rumble to activate the script
            **Notes**
                -Stand ontop of something (dresser, nightstand, backpack) then activate the script
                -For best results stand on something flat (Backpacks are not flat, but dressers are) and look
                    down. Spin in 360 degreese to ensure you are looking at the desired object no matter what
                    direction you face. That is not to say you CAN'T loot backpacks, but in my experience my
                    toon falls off of them after 5 - 10 minutes of cycling.
 
  Light Weave Controls
        -Press and hold Right stick down and then hold D Pad Down for about 2 seconds or until you feel a rumble to activate the script
        -Press and hold any ablity button to toggle it being on or off (1 rumble means off, 2 rumbles means on)
        -In order to use your ultimate you must first press and hold down Left Stick Click, then press the buttons to cast ultimate
        -To set a new light weave time in-game preform a light weave attack with D Pad Down held down, or in other words:
            1. With D Pad Down held down
                A. Press right trigger
                B. Then press any ability button(Controller will rumble to acknowledge the input)
                   AND Hold down the ability button until the animation is ready to be blocked
        -If you hold Left Stick Click then while light weave is active no light weave abilities will be used
            **NOTES**
                -You can turn light weaving on and off for specific buttons regardless if the light weaving
                    script is currently active or not.
                -Your settings will be save even with the Titan One turned off. Hold start for 4 seconds to
                    clear your settings back to the initial settings.
 
////////////////////////////////
//Section 2: NOTES ON SETTINGS//
////////////////////////////////
  Misc Settings
        -Rumble Notification defines the rumble strength of notifications. These notifications
            will happen every time user enters a menu or changes a setting. Set this high enough
            that you will feel the rumble indication.
                1. Three Rumbles means a script is being turn on or off
                2. Two rumbles means a light weave ability is toggled on or light weave time is now set.
                3. One Rumble means that a light weave ability is toggled off
 
  Lockpick Settings
        -Max_Rumble defines when to move to the next pin of the lock. Set to 6 if on Xbox One or
            set to 75 if you are on PS4.
 
  Auto Farming Settings
        -Log In Timer dictates the time inbetween pressing A to select your character and logging out
        -Lot Out Timer dictates the time inbetween pressing log out in game and pressing A to log back
            in (Remember it takes 9 extra seconds if you are in an unsafe zone)
        -Max Random decides how greatly the times to log in and out can be raised (Set to 0 to dissable)
 
  Auto Walk Settings
        -SprintSpeed defines after how many seconds to press the sprint button, this can be
            deactivated by setting to 0.
 
  Light Weaving Settings
        -LightWeaveTime defines how many Miliseconds to wait after pressing right trigger before
            casting an ability.
        -LWTime defines how many seconds you must hold a skill button to toggle it being on or off.
        -The LW_Action skills define if light weaving is set to on or off for that particular skill,
            this can be changed in game. But you may modify them here if you know what you want for
            starting points every time you load the script.
MULTILINE
 
[General Setup]
collapsible = 1
control = info
shortdesc = <<<MULTILINE
General Script Configuration
MULTILINE
 
[Rumble Force]
group = true
shortdesc = <<<MULTILINE
 
<b>Rumble Notifications</b> - Intensity (20..100)
MULTILINE
byteoffset = 7
bitsize = 8
control = spinbox
default = 20
minimum = 10
maximum = 100
step = 1
 
[Auto Lockpick Settings]
group = true
shortdesc = <<<MULTILINE
 
<b>Auto Lockpick Settings</b> - Select your console:
MULTILINE
byteoffset = 8
bitsize = 8
control = radiobox
default = 0
item     = PS4
item     = Xbox One
 
 
[LightWeave Time]
shortdesc = The time to wait after hitting right trigger and before using an ability
byteoffset = 0
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[bash 0]
shortdesc = dummy
collapsible = 3
byteoffset = 19
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[Lightweave for Button_Two (Xbox One: X  ||  PS4: Square)]
byteoffset = 2
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = Enable
 
[bash 1 time]
group = true
shortdesc = wait time (50..1000)
byteoffset = 21
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[Lightweave for Button_Three (Xbox One: Y  ||  PS4: Triangle)]
byteoffset = 3
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = Enable
 
[bash 2 time]
group = true
shortdesc = wait time (50..1000)
byteoffset = 23
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[Lightweave for Button_Four (Xbox One: B  ||  PS4: Circle)]
byteoffset = 4
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = Enable lw combo for "Button_Four (Xbox One: B  ||  PS4: Circle)"
 
[bash 3 time]
group = true
shortdesc = wait time (50..1000)
byteoffset = 25
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[Lightweave for Left Bumper]
byteoffset = 5
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = Enable
 
[bash 4 time]
group = true
shortdesc = wait time (50..1000)
byteoffset = 27
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
 
[Lightweave for Right Bumper]
byteoffset = 6
bitsize = 1
bitoffset = 0
control = checkbox
default = 1
item     = Enable
 
[bash 5 time]
group = true
shortdesc = wait time (50..1000)
byteoffset = 29
bitsize = 16
control = spinbox
default = 100
minimum = 50
maximum = 1000
step    = 1
</cfgdesc>
*/
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

PreviousNext

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 64 guests