Elder Scrolls Online GamePack!

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

Re: Elder Scrolls Online GamePack!

Postby Elvish » Thu Sep 17, 2015 5:37 am

Well if all of your spells are the exact same cast times here you go:
Code: Select all
//////////////////////////////////////
//Elder Scrolls Online Gamepack V2.1//
//////////////////////////////////////

/*  ///////////////////////
    //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 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(XB1_LT, 100);   wait(20);
    set_val(XB1_RT, 100);   wait(100);
    set_val(XB1_RT, 0);     wait(20);
    set_val(XB1_LT, 0);
}

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      //   
}


Just modfiy "int Bash_Time = 100;" until you get the desired timing. This should bash at the end of every light weave. I removed auto walking to fit this in
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Elder Scrolls Online GamePack! Ver 1.1

Postby Mekolame » Thu Sep 24, 2015 7:08 pm

[quote="Elvish"]

Today I have been working on making an auto farming script that works across as many of your characters as you want it to. I ran it for a while last night to see that it would work, and it is coming along well. But I need to do more testing before I want to release it. The thought is that with the new farming script you can set up as many of your characters as you want (1-8) on top of different objects to farm different things. I put a character on a nightstand, one on a dresser, one on some crates, and one on a dwemer pot. I was able to get a dwemer motif, a few blue race motifs, ingredients, recopies, and random other things. That should be ready for release tomorrow!

Did you make this to auto loot on as many characters as possible? I can't find that script.

Thanks
User avatar
Mekolame
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Wed Aug 19, 2015 7:32 am

Re: Elder Scrolls Online GamePack!

Postby Robert Goulet » Wed Oct 28, 2015 8:43 am

How would I go about changing it from a bash cancel to a block cancel? (less harsh on my Stam resource) I tried making my own script with no luck. Any tips?
Robert Goulet
Private First Class
Private First Class
 
Posts: 2
Joined: Wed Oct 28, 2015 5:59 am

Re: Elder Scrolls Online GamePack!

Postby Elvish » Wed Oct 28, 2015 8:00 pm

I assume you are talking about my post just 2 posts above yours Robert? If so here is a modification for you:
Code: Select all
///////////////////////////////////////////////////////////
//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      //   
}


As it has been some time since I have played this game I do not recall what button is used to block. Just change line 98 to configure the button which needs pressed.
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Elder Scrolls Online GamePack!

Postby Robert Goulet » Fri Oct 30, 2015 3:36 pm

Yes! That works great. I was trying to make my own where I only light attack on my B and Y abilities and can block cast them all ( I also am able to easily adjust the delay between the button presses). With the one above I liked the toggle you put in to take out the light weaves off as needed; But, it also takes the block cancels off.

To the other poster who mentioned his light weave would turn off after awhile. I noticed if you hit the start button when you check your inventory the script would turn off. I was able to turn it back on with the command down on the d-pad and right stick click.

This is what I tried to make work. the Ultimate remap works, the X combo works, but nothing after that. I've never used any kind of script program before any tips would be greatly appreciated! :innocent_smile_1:
Code: Select all


    // D-Pad Right remap for Ultimate
main {
         
        if(get_val(XB1_RIGHT)) {
        set_val(XB1_RB, 100);
        set_val(XB1_LB, 100);
        }
        // Block Cancelling

    if (get_val(XB1_X)) {
        combo_run(macro1);
    }
}

combo macro1 {
    set_val(XB1_X, 100);
    wait(300);
    set_val(XB1_LT, 100);
    wait(100);
     
   
     if (get_val(XB1_Y)) {
        combo_run(macro2);
    }
   
}
       
combo macro2 {
    set_val(XB1_RT, 100);
    wait(300);
    set_val(XB1_Y, 100);
    wait(300);
    set_val(XB1_LT, 100);
    wait(100);
}
         
     if (get_val(XB1_B)) {
         combo_run(macro3);
    }
}

combo macro3 {
    set_val(XB1_RT, 100);
    wait(300);
    set_val(XB1_B, 100);
    wait(300);
    set_val(XB1_LT, 100);
    wait(100);
   
       //
     if (get_val(XB1_RB)) {
        combo_run(macro4);
    }
}

combo macro4 {
    set_val(XB1_RB, 100);
    wait(300);
    set_val(XB1_LT, 100);
    wait(100);       
   
    //
    if (get_val(XB1_LB)) {
        combo_run(macro5);
    }
}

combo macro5 {
    set_val(XB1_LB, 100);
    wait(300);
    set_val(XB1_LT, 100);
    wait(100);
    //   
}
Robert Goulet
Private First Class
Private First Class
 
Posts: 2
Joined: Wed Oct 28, 2015 5:59 am

Re: Elder Scrolls Online GamePack!

Postby Elvish » Fri Oct 30, 2015 5:59 pm

Robert Goulet wrote:Yes! That works great. I was trying to make my own where I only light attack on my B and Y abilities and can block cast them all ( I also am able to easily adjust the delay between the button presses). With the one above I liked the toggle you put in to take out the light weaves off as needed; But, it also takes the block cancels off.

To the other poster who mentioned his light weave would turn off after awhile. I noticed if you hit the start button when you check your inventory the script would turn off. I was able to turn it back on with the command down on the d-pad and right stick click.


So you want to turn light weaving off, but block cancel every time either way?
And yes, I have the script written to turn off light weaving when you hit pause because it will screw up any menu interactions you make.

As for the script you posted, I could fix it for you but it sounds as though you want to learn and not have it done for you, correct?
Anyway, when it comes to scripts on the titan one you have one main function where most of your calculations should take place. When you press a button the main function is what should be the initial check for the button press. For example:
Code: Select all
combo macro1 {
    set_val(XB1_X, 100);
    wait(300);
    set_val(XB1_LT, 100);
    wait(100);
     
   
     if (get_val(XB1_Y)) {
        combo_run(macro2);
    }
   
}


This is saying "If the user is currently running macro1 check if they are pressing Y. If they are then run macro2"

While the following:
Code: Select all
main {
         
    if(get_val(XB1_RIGHT)) {
        set_val(XB1_RB, 100);
        set_val(XB1_LB, 100);
    }
        // Block Cancelling

    if (get_val(XB1_X)) {
        combo_run(macro1);
    }
}


Says "for as long as user presses XB1_Right press down both XB1_RB and XB1_LB" AS WELL AS: "For as long as user holds XB1_X run macro1"(it will run until the end and start over)

To fix this issue you would place all of your button checks into your main function. There are however instances where the user may want to check to see if certain buttons are held down inside of their combos, but this type of script does not need that. (unless you want to be able to pick between a block cancel or a bash cancel)
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Elder Scrolls Online GamePack!

Postby kingulator » Tue Nov 17, 2015 1:59 am

Hey man, I saw your gamepack and bought a titan one just because of how cool it is.

I was hoping I could ask you to make me a really simple script.

The script is pretty simple, or at least I think it is, I just don't know how to program.

Basically I want a script that uses one skill ~15 times then a second skill ~10 times, on and off on a constant loop.

My goal is to use steel tornado and life drain on repeat to farm two groups of mobs afk.

Is this possible and is it simple?
User avatar
kingulator
Staff Sergeant
Staff Sergeant
 
Posts: 15
Joined: Tue Nov 17, 2015 1:55 am

Re: Elder Scrolls Online GamePack!

Postby DragonDarknesx » Sun Jun 11, 2017 5:33 am

Wow it's been a while. Well I've got back to ESO a few days ago and wanted to use your game pack. I've downloaded the version from the game library and somehow there are a few small mistakes. If I use the fishing script it catches it but it doesn't throw it out again :/ and I've got Problem with the autofarming. I don't know what I'm doing wrong there. But much more interesting than chest farming would be nood farming.

So only if you're still into this, may you make me a small pack? No need for weaving, lockpicking and autorun. Just fishing with another 'A', so it can run all alone and something for the noods (and maybe another script for the chests, but here it could be my fault. Haven't looked into it and set its settings right)
User avatar
DragonDarknesx
Sergeant
Sergeant
 
Posts: 6
Joined: Sun Aug 09, 2015 2:58 pm

Re: Elder Scrolls Online GamePack!

Postby knutter539 » Wed Mar 14, 2018 12:02 pm

I just bought a Titan Two and when i try to load this script into the Tuner i am getting syntax errors for 'define'. I'm guessing the language is different between the Titan One and Two, but i am not sure. Is there an easy way for me to adapt your script to run on the Titan Two?
User avatar
knutter539
Corporal
Corporal
 
Posts: 5
Joined: Wed Mar 14, 2018 12:00 pm

Re: Elder Scrolls Online GamePack!

Postby J2Kbr » Thu Mar 15, 2018 9:39 am

knutter539 wrote:I just bought a Titan Two and when i try to load this script into the Tuner i am getting syntax errors for 'define'. I'm guessing the language is different between the Titan One and Two, but i am not sure. Is there an easy way for me to adapt your script to run on the Titan Two?

To enable the Titan One back compatibility script support on the Titan Two, first copy-and-paste the script code on Gtuner IV and then add the line below at the very beginning of the script.
Code: Select all
#include <titanone.gph>
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

PreviousNext

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 46 guests