Path of Exile. Auto flask and Auto loot.

Gtuner IV general support. Operation, questions, updates, feature request.

Path of Exile. Auto flask and Auto loot.

Postby Maxxgold » Fri May 14, 2021 10:14 pm

Code: Select all
 
I would like to combine 2 scripts for a Path of Exile Gamepack. The first one would be pressing and holding L3 on a PS5 controller and pressing X, to spam x for auto looting, and the second one is posted below. It runs through all of your flasks. It would be nice to get one vibration for each script as confirmation that the script is running, and two vibrations for off.

Any help would be appreciated, and no hurry. I have them each set to a memory slot now :innocent_smile_1:


Code: Select all
#include <ps5.gph>
 
bool toggle;
 
main {
    if(event_active(PS5_RIGHT)) {
        toggle = !toggle;
    }
 
    if(toggle) combo_run(myCombo);
}
 
combo myCombo {
    set_val(PS5_L1, 100);
    wait(100);
    set_val(PS5_R1, 100);
    wait(100);
    set_val(PS5_LEFT, 100);
    wait(100);
    set_val(PS5_UP, 4000);
    wait(100);
    set_val(PS5_RIGHT, 100);
    wait(100);
}
Last edited by Maxxgold on Sat May 15, 2021 1:35 pm, edited 2 times in total.
User avatar
Maxxgold
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 265
Joined: Mon Aug 01, 2016 8:43 pm

Re: Need some help combining a script.

Postby Mad » Fri May 14, 2021 10:36 pm

Code: Select all
#include <ps5.gph>
bool toggle;
bool loot;
main {
    if(event_active(PS5_RIGHT)) {
        toggle = !toggle;
    }
    if(is_active(PS5_L3) && event_active(PS5_CROSS)) {
        loot = !loot;
    }
 
    if(toggle) combo_run(myCombo);
    if(loot) combo_run(autoloot);
}
combo autoloot {
    set_val(PS5_CROSS, 100);
    wait(100);
    set_val(PS5_CROSS, 0);
    wait(100);
}
 
combo myCombo {
    set_val(PS5_L1, 100);
    wait(100);
    set_val(PS5_R1, 100);
    wait(100);
    set_val(PS5_LEFT, 100);
    wait(100);
    set_val(PS5_UP, 4000);
    wait(100);
    set_val(PS5_RIGHT, 100);
    wait(100);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Need some help combining a script.

Postby Maxxgold » Fri May 14, 2021 10:40 pm

Damn, you are fast. I’ll load it up, and give it a go. Thank you :smile0517:
User avatar
Maxxgold
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 265
Joined: Mon Aug 01, 2016 8:43 pm

Re: Need some help combining a script.

Postby Maxxgold » Fri May 14, 2021 11:05 pm

Ok, it works perfect. You do have to stand right on some loot or it will fire the ability set to “X,” but it works great. Once you stand on loot and enable it, it picks up all the loot, and doesn’t use the ability.

Any way to get one vibration for on, and two for off on each script? It’s not necessary, but it would be nice to get some feedback. Either way, thank you very much.
User avatar
Maxxgold
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 265
Joined: Mon Aug 01, 2016 8:43 pm

Re: Path of Exile. Auto flask and loot.

Postby Mad » Sat May 15, 2021 12:47 am

Code: Select all
#include <ps5.gph>
bool toggle;
bool loot;
main {
    if(event_active(PS5_RIGHT)) {
        toggle = !toggle;
        if(toggle) combo_run(Rumble1);
        else combo_run(Rumble2);
    }
    if(is_active(PS5_L3) && event_active(PS5_CROSS)) {
        loot = !loot;
        if(loot) combo_run(Rumble1);
        else combo_run(Rumble2);
    }
 
    if(toggle) combo_run(myCombo);
    if(loot) combo_run(autoloot);
}
combo autoloot {
    set_val(PS5_CROSS, 100);
    wait(100);
    set_val(PS5_CROSS, 0);
    wait(100);
}
 
combo myCombo {
    set_val(PS5_L1, 100);
    wait(100);
    set_val(PS5_R1, 100);
    wait(100);
    set_val(PS5_LEFT, 100);
    wait(100);
    set_val(PS5_UP, 4000);
    wait(100);
    set_val(PS5_RIGHT, 100);
    wait(100);
}
 
combo Rumble1 {
    ffb_set(FFB_1, 100f, 250);
    wait(0);
    wait(500);
    ffb_reset();
}
 
combo Rumble2 {
    call(Rumble1);
    call(Rumble1);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Path of Exile. Auto flask and loot.

Postby Maxxgold » Sat May 15, 2021 11:26 am

:smile0208: :smile0517:
User avatar
Maxxgold
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 265
Joined: Mon Aug 01, 2016 8:43 pm

Re: Path of Exile. Auto flask and loot.

Postby Maxxgold » Sat May 15, 2021 12:32 pm

If anyone is using this, the best way to auto loot, is to leave X set to nothing. This may not be optimal in all setups. Alternatively, you can leave X unbound on the R2 and L2 settings, and then just hold R2 or L2 for looting. I’ll see if I can think of a better way to improve this, but it does work well with X unbound.

When you leave X empty and turn on auto X, you can kill and loot efficiently. You can also set X on the L2 and R2 to an ability, and every time you press the R2 or L2, that ability will trigger. I have Snipers Mark set to X on R2, and all,I have to do is pull the trigger, and Snipers Mark gets set on an enemy.
User avatar
Maxxgold
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 265
Joined: Mon Aug 01, 2016 8:43 pm

Re: Path of Exile. Auto flask and Auto loot.

Postby Maxxgold » Mon May 17, 2021 1:44 am

This is the final version, at least at this point. :a1chill_angry1: Thanks for all your help Mad :smile0202: :smile0203:

When Auto-Flask is enabled, your controller will turn Red. When Auto-Loot is enabled, your controller will turn Green. When both are enabled, your controller will turn Yellow. When one script is turned off, the controller will change color to the script that is running. When Auto-loot or Auto-flask is turned on your controller will rumble once. When they are turned off your controller will rumble twice.

Path of Exile is a super fast paced game, and it is easy to forget what is turned on. You have to be careful next to portals, NPC’s, or anything that “X” can interact with. If you are standing next to a portal, and Auto-loot is on, you will waste maps jumping back and forth, killing your limited supply of portals, which is why I need to know exactly which script is running when I’m near something I can interact with.

I get clear of everything, and then turn on the Auto-loot and Auto-Flask. :a1chill_angry1:



Code: Select all
 #pragma METAINFO("Path of Exile 2", 1, 0, "Maxxgold")
 
#ifndef set_led // IMPORTANT: Don't delete this line.
#define set_led(LED_INDENTIFER, INTENSITY) led_set(LED_INDENTIFER, (fix32) INTENSITY, NULL);
#define RED   LED_2
#define GREEN LED_3   
#define BLUE  LED_1
#endif // IMPORTANT: Don't delete this line.
 
#include <ps5.gph>
bool toggle;
bool loot;
main {
    if(event_active(PS5_RIGHT)) {
        toggle = !toggle;
        if(toggle) {
            combo_run(Rumble1);
            set_led(RED, 100);
        }
        else {
            combo_run(Rumble2);
            led_reset();
            if(loot) set_led(GREEN, 100);
        }
    }
    if(is_active(PS5_L3) && event_active(PS5_CROSS)) {
        loot = !loot;
        if(loot) {
            combo_run(Rumble1);
            set_led(GREEN, 100);
        }
        else {
            combo_run(Rumble2);
            led_reset();
            if(toggle) set_led(RED, 100);
        }
    }
 
    if(toggle) combo_run(myCombo);
    if(loot) combo_run(autoloot);
}
combo autoloot {
    set_val(PS5_CROSS, 100);
    wait(100);
    set_val(PS5_CROSS, 0);
    wait(100);
}
 
combo myCombo {
    set_val(PS5_L1, 100);
    wait(100);
    set_val(PS5_R1, 100);
    wait(100);
    set_val(PS5_LEFT, 100);
    wait(100);
    set_val(PS5_UP, 4000);
    wait(100);
    set_val(PS5_RIGHT, 100);
    wait(100);
}
 
combo Rumble1 {
    ffb_set(FFB_1, 100f, 250);
    wait(0);
    wait(500);
    ffb_reset();
}
 
combo Rumble2 {
    call(Rumble1);
    call(Rumble1);
}
User avatar
Maxxgold
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 265
Joined: Mon Aug 01, 2016 8:43 pm


Return to Gtuner IV Support

Who is online

Users browsing this forum: Google [Bot] and 90 guests