My Time At Portia Item Dupe
2 posts
• Page 1 of 1
My Time At Portia Item Dupe
Hello,
I'm trying to create a script where the xbox pushes X then Y and then A. The timing between X and Y is almost split seconds after one another and then pressing A is whenever, but preferably fast. Then it repeats. If you do this right in a Store inventory menu while hovering over an item in your inventory you dupe it. I was trying to automate this with just a toggle, but I am not good at programing. I've tried using a few things I already have, but nothing. Can someone help build this for me?
I'm trying to create a script where the xbox pushes X then Y and then A. The timing between X and Y is almost split seconds after one another and then pressing A is whenever, but preferably fast. Then it repeats. If you do this right in a Store inventory menu while hovering over an item in your inventory you dupe it. I was trying to automate this with just a toggle, but I am not good at programing. I've tried using a few things I already have, but nothing. Can someone help build this for me?
-
Jackoftrades222 - Corporal
- Posts: 5
- Joined: Thu Dec 12, 2019 3:05 pm
Re: My Time At Portia Item Dupe
- Code: Select all
int toggle;
main {
// LB+RB to toggle on/off
if(get_val(XB1_LB) && event_press(XB1_RB)) toggle=!toggle;
if(toggle) combo_run(Dupe);
}
combo Dupe {
set_val(XB1_X, 100);
wait(60);
set_val(XB1_Y, 100);
wait(60);
set_val(XB1_A, 100);
wait(60);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
2 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 80 guests