My Time At Portia Item Dupe

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

My Time At Portia Item Dupe

Postby Jackoftrades222 » Thu Dec 12, 2019 3:10 pm

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?
User avatar
Jackoftrades222
Corporal
Corporal
 
Posts: 5
Joined: Thu Dec 12, 2019 3:05 pm

Re: My Time At Portia Item Dupe

Postby Mad » Thu Dec 12, 2019 7:52 pm

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
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 80 guests