Elder Scrolls Online GamePack!

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

Elder Scrolls Online GamePack!

Postby Elvish » Wed Jun 17, 2015 4:37 am

http://www.consoletuner.com/gpclib/?s=1017

I just dropped a large update to the script (8/5/2015)
Features:
-Auto Walking
-Auto Lockpicking
-Auto Fishing
-Auto Farming
-Auto Light Weaving

Below are the notes which are also included inside the script. Please read through these before asking any questions.
Code: Select all
/*  ///////////////////////
    //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

  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.
Last edited by Elvish on Thu Aug 06, 2015 2:39 am, edited 9 times in total.
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Elder Scrolls Online GamePack?

Postby perfecthuntr » Wed Jun 17, 2015 5:01 am

Thanks for this. I'm sure it will be useful for many users who play this game. I don't have it, nor do I have an Xbox One, but this is great regardless. Thanks again!
ConsoleTuner Support Team
User avatar
perfecthuntr
Major
Major
 
Posts: 897
Joined: Wed Jan 14, 2015 8:35 am
Location: Tennessee

Re: Elder Scrolls Online GamePack?

Postby BuM » Wed Jun 17, 2015 5:44 am

So this lockpicking script wont work on ps4 if its converted if so can you do it? I been looking an attempting to make a few scripts but they are way to big an im not sure how to reduce the size of the script! :(
User avatar
BuM
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Tue May 12, 2015 2:38 am

Re: Elder Scrolls Online GamePack?

Postby perfecthuntr » Wed Jun 17, 2015 7:06 am

There are many techniques that can be applied to reduce the size of your scripts. We can help with that if you want to post your raw code.
ConsoleTuner Support Team
User avatar
perfecthuntr
Major
Major
 
Posts: 897
Joined: Wed Jan 14, 2015 8:35 am
Location: Tennessee

Re: Elder Scrolls Online GamePack?

Postby Elvish » Wed Jun 17, 2015 12:57 pm

I have a busy day today, but yeah I can convert some of it to work on PS4. The problem is I can't test the PS4 code. For example, on my auto lockpick script I hold right trigger until the rumble reaches a certain value, and that may be different on the PS4. I would need you to test if after I convert it BuM. Would you be willing to do that?

I will have time to work on it in about 12 hours from now
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Elder Scrolls Online GamePack?

Postby BuM » Wed Jun 17, 2015 3:57 pm

Sounds good I can test for you Elvish. All i need is the lockpick part of the script.
User avatar
BuM
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Tue May 12, 2015 2:38 am

Re: Elder Scrolls Online GamePack?

Postby Elvish » Wed Jun 17, 2015 10:59 pm

Alright! So I did a bit of work and I would love if you would let me know if this works on PS4. If it does not work let me know what is happening so I can make some adjustments. Thanks!

Ok so here is what I came up with. I removed all of the fluff from the previous script I had written. What is left is simply an auto lockpicking script. Simply look at a chest, click and hold left stick down, then press right stick. This will initiate the lockpicking. If you are not looking at a chest the script will get stuck holding down right trigger, simply click it and it should be fixed. (I figure if you only want this one script just the stick press combo is fine instead of adding a menu because you theoretically will never press both sticks down at the same time)

Code: Select all
define A_Button = PS4_CROSS;
define Right_Trigger = PS4_R2;
define Left_Stick_Down = PS4_L3;
define Right_Stick_Down = PS4_R3;

define D_Pad_Up = PS4_UP;
define D_Pad_Right = PS4_RIGHT;
define D_Pad_Down = PS4_DOWN;
define D_Pad_Left = PS4_LEFT;

define LeftStick_Left_Right = PS4_LX;

/* Rumble packs */
define Rumble_Right = RUMBLE_B;
/* Notes:
- Right_Rumble value will continue to rise by 4 after Max_Rumble is hit(I found ending at 10 is perfect)
- 200 MS at 100 stick intensity moves over 1 tumbler

*/


int OpeningLock = FALSE;
int Max_Rumble = 6;
int TumblersToOpen;

main{
    if(get_val(Left_Stick_Down) == 100 && event_press(Right_Stick_Down)){
        combo_run(InitOpenChestScript);
    }
    if(OpeningLock && event_press(Right_Trigger)){
        combo_run(ResetAll);
    }
   
    //Lockpicking scripts
    if(OpeningLock){
        set_val(Right_Trigger, 100);
    }
    if(get_rumble(Rumble_Right) > Max_Rumble && OpeningLock && TumblersToOpen > 0){
        combo_run(OpenChestScript);
    }
}

combo InitOpenChestScript
{
    //Wait for lock to load then move to far left tumbler.
    set_val(A_Button, 100);
    wait(200);
    set_val(A_Button, 0);
    wait(750);
    set_val(LeftStick_Left_Right, -100);
    wait(400);
    set_val(LeftStick_Left_Right, 0);
    TumblersToOpen = 5;
    OpeningLock = TRUE;
}

combo OpenChestScript
{
    //Stop right trigger press and move to next tumbler.
    set_val(Right_Trigger, 0);
    set_val(LeftStick_Left_Right, 100);
    wait(200);
    set_val(LeftStick_Left_Right, 0);
    TumblersToOpen = TumblersToOpen - 1;
    if(TumblersToOpen <= 0){OpeningLock = FALSE;}//Once all pins are depressed turn off the script
}

combo ResetAll
{
    set_val(A_Button, 0);
    set_val(Right_Trigger, 0);
    set_val(Left_Stick_Down, 0);
    set_val(Right_Stick_Down, 0);

    set_val(D_Pad_Up , 0);
    set_val(D_Pad_Right, 0);
    set_val(D_Pad_Down, 0);
    set_val(D_Pad_Left, 0);
    set_val(A_Button, 0);
   
    OpeningLock = FALSE;
}
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Elder Scrolls Online GamePack?

Postby BuM » Thu Jun 18, 2015 12:04 am

Okay so all it did was just barely press the pin down cause the controller vibrates when you intially press the pin the rumble needs to be more. The start works good but im not real sure how to end it I clicked again but it keep going. Is there someway to make the start an stop just by holding the D Pad Left or something?



*Alright i figured out the stop just any button press ends the script and with a lil trial an error plus a few broken lockpicks i figured it out the max rumble is 75 an it worked perfectly!

Thanks Elvish!
User avatar
BuM
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Tue May 12, 2015 2:38 am

Re: Elder Scrolls Online GamePack?

Postby Elvish » Thu Jun 18, 2015 11:55 pm

So here is a script I wrote to farm myself some racial motifs, but it could be used for other things as well.

Stand ontop of a nightstand or dresser, log out, and hover over the character you just logged out of. Click and hold the A button for 2 seconds. This will activate the script loop. Log in/Loot all from stand under you/Log out. The script will press the X button, so make sure you do not have an offensive ability equiped there or you may end up hitting a friendly.
Code: Select all
/*PS4 Definitions
define Button_One = PS4_CROSS;
define Button_Two = PS4_SQUARE;
define Button_Three = PS4_TRIANGLE;
define Button_Four = PS4_CIRCLE;
define Right_Bumper = PS4_R1;
define Right_Trigger = PS4_R2;
define Right_Stick_Down/R3 = PS4_R3;
define Left_Bumper = PS4_L1;
define Left_Trigger = PS4_L2;
define Left_Stick_Click = PS4_L3;
define Select_Button = PS4_SHARE;
define Center_Button = PS4_PS;
define Start_Button = PS4_OPTIONS;
define D_Pad_Up = PS4_UP;
define D_Pad_Right = PS4_RIGHT;
define D_Pad_Down = PS4_DOWN;
define D_Pad_Left = PS4_LEFT;
define LeftStick_X = PS4_LX;
//Left stick left(-100) and right(+100)
define LeftStick_Y = PS4_LY;//Left stick up(-100) and down(+100)
define RightStick_X = PS4_RX;//Right stick left(-100) and right(+100)
define RightStick_Y = PS4_RY;//Right stick up(-100) and down(+100)

/*Xbox one definitions*/
define Button_One = XB1_A;
define Button_Two = XB1_X;
define Button_Three = XB1_Y;
define Button_Four = XB1_B;
define Right_Bumper = XB1_RB;
define Right_Trigger = XB1_RT;
define Right_Stick_Click = XB1_RS;
define Left_Bumper = XB1_LB;
define Left_Trigger = XB1_LT;
define Left_Stick_Click = XB1_LS;
define Select_Button = XB1_VIEW;
define Center_Button = XB1_XBOX;
define Start_Button = XB1_MENU;
define D_Up = XB1_UP;
define D_Right = XB1_RIGHT;
define D_Down = XB1_DOWN;
define D_Left = XB1_LEFT;
define LeftStick_X = XB1_LX;//Left stick left(-100) and right(+100)
define LeftStick_Y = XB1_LY;//Left stick up(-100) and down(+100)
define RightStick_X = XB1_RX;//Right stick left(-100) and right(+100)
define RightStick_Y = XB1_RY;//Right stick up(-100) and down(+100)

//Booleans
int Waiting = FALSE;
int RunAction = FALSE;
int LogOut = FALSE;
int LogIn = FALSE;
int StopWatch = FALSE;

//Init wait times


int SecondsToWait = 0;
int TimeToLogIn = 40; //This is in seconds, and it includes the time it takes to run the combo script
int TimeToLogOut = 40; //This is in seconds, and it includes the time it takes to run the combo script
int TimeToAction = 5; //The time frame between the start of action script and the beggining of logout script

main
{
    set_val(TRACE_1, SecondsToWait);
    if(event_press(Select_Button)){
        combo_run(ResetAll);
    }
    if(Waiting && !StopWatch && SecondsToWait <= 0){
        Waiting = FALSE;
    }
    else if(Waiting && !StopWatch && SecondsToWait > 0){
        StopWatch = TRUE;
        Waiting = TRUE;
        combo_run(OneSecondWait);
    }
   
    if(get_ptime(Button_One) >= 2000 && get_val(Button_One) == 100){
        Waiting = TRUE;
        SecondsToWait = 3;
        LogIn = TRUE;
    }
   
    if(!Waiting && LogIn){
        Waiting = TRUE;
        LogIn = FALSE;
        SecondsToWait = TimeToLogIn;
        combo_run(LogInCombo);
        RunAction = TRUE;
    }
   
    if(!Waiting && RunAction){
        Waiting = TRUE;
        RunAction = FALSE;
        SecondsToWait = TimeToAction;
        combo_run(RunActionCombo);
        LogOut = TRUE;
    }
   
    if(!Waiting && LogOut){
        Waiting = TRUE;
        LogOut = FALSE;
        SecondsToWait = TimeToLogOut;
        combo_run(LogOutCombo);
        LogIn = TRUE;
    }
}   

combo OneSecondWait
{
    wait(1000);
    set_val(TRACE_1, SecondsToWait);
    SecondsToWait = SecondsToWait - 1;
    StopWatch = FALSE;
}

combo LogOutCombo
{
    set_val(Button_Four, 100);  wait(100);
    set_val(Button_Four, 0);    wait(500);
    set_val(Button_Four, 100);    wait(100);
    set_val(Button_Four, 0);    wait(500);
    set_val(Button_Four, 100);    wait(100);
    set_val(Button_Four, 0);    wait(500);
    set_val(Start_Button, 100);    wait(100);
    set_val(Start_Button, 0);    wait(720);
    set_val(D_Down, 100);    wait(100);
    set_val(D_Down, 0);    wait(130);
    set_val(D_Down, 100);    wait(100);
    set_val(D_Down, 0);    wait(170);
    set_val(D_Down, 100);    wait(100);
    set_val(D_Down, 0);    wait(140);
    set_val(D_Down, 100);    wait(100);
    set_val(D_Down, 0);    wait(120);
    set_val(D_Down, 100);    wait(100);
    set_val(D_Down, 0);    wait(120);
    set_val(D_Down, 100);    wait(100);
    set_val(D_Down, 0);    wait(120);
    set_val(D_Down, 100);    wait(100);
    set_val(D_Down, 0);    wait(150);
    set_val(D_Down, 100);    wait(100);
    set_val(D_Down, 0);    wait(440);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(780);
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);
}

combo LogInCombo
{
    set_val(Button_One, 100);    wait(100);
    set_val(Button_One, 0);    wait(80);
}

combo ResetAll
{
    Waiting = FALSE;
    RunAction = FALSE;
    LogOut = FALSE;
    LogIn = FALSE;
}

//Replace this combo with whatever you want to do in between logins
combo RunActionCombo
{
    set_val(XB1_RY, 47);
    wait(20);
    set_val(XB1_RY, 81);
    wait(30);
    set_val(XB1_RY, 100);
    wait(1180);
    set_val(XB1_RY, 79);
    wait(10);
    set_val(XB1_RY, 0);
    wait(210);
    set_val(XB1_A, 100);
    wait(90);
    set_val(XB1_A, 0);
    wait(550);
    set_val(XB1_X, 100);
    wait(110);
    set_val(XB1_X, 0);
}
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Elder Scrolls Online GamePack?

Postby Omnicide » Fri Jun 19, 2015 5:16 am

okay, so for the auto lockpick, where do i change it to 75 for it to work on ps4? and thanks for the auto loot farm script!
User avatar
Omnicide
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Thu May 28, 2015 8:03 pm

Next

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 61 guests