Script Request
4 posts
• Page 1 of 1
Script Request
I would be very grateful if someone could help me with a script. I'm not familiar with the coding for it but I've been mixing examples together and got close a couple times. The script needs to press X (Xbox One) wait 30 seconds then press X again immediately, very short pause then repeat. It would be for a fishing bot for Trove so it would be like, Press X to use fishing pole immediately, wait 30 seconds for bite then press X to reel it in immediately, repeat. It seems there may need to be a short pause after reeling in.
Press X
Wait 30 seconds
Press X
short pause (3 seconds?)
repeat
RB as toggle combo
Sorry if I repeated it too many times just really trying to get this down its been driving me crazy.
Press X
Wait 30 seconds
Press X
short pause (3 seconds?)
repeat
RB as toggle combo
Sorry if I repeated it too many times just really trying to get this down its been driving me crazy.
-
Kathetos - Private First Class
- Posts: 2
- Joined: Mon Nov 30, 2015 6:46 pm
Re: Script Request
Hello
you've done a great job explaining what you wanted to accomplish.
When requests are made so clearly, it is no trouble at all writing up a script.
See if this works:
Note:
the wait() command has a maximum input of 4000 (4 seconds)
thus the need for me to create the 'countdown' combo, which counts out the full 30seconds in 1 second increments "wait(1000)"
you've done a great job explaining what you wanted to accomplish.
When requests are made so clearly, it is no trouble at all writing up a script.
See if this works:
- Code: Select all
/* *
Gone Fishing
*/
int enable=0;
int timer=0;
main {
//toggle switch
if(event_press(XB1_RB))enable=!enable;
if(enable){
if(!timer){//if timer is 0
combo_run(cast);
}else if(timer<30){ //count out 30secs
combo_run(countdown);
}else{ //reel in fish
combo_run(reelin);
}
}else{//disabled, stop all
combo_stop(cast);
combo_stop(countdown);
combo_stop(reelin);
timer=0;
}
set_val(TRACE_1,timer);
}
combo cast{ //hits X to cast fishing line
set_val(XB1_X,100);
wait(200);
set_val(XB1_X,0);
wait(200);
timer=1; //initiate timer
}
combo countdown{ //counts out 1 second at a time
wait(1000);
timer=timer+1;
}
combo reelin{ //hit x to reel in fishing line
set_val(XB1_X,100);
wait(200);
set_val(XB1_X,0);
wait(3000); //wait 3 seconds and reset timer
timer=0;
}
Note:
the wait() command has a maximum input of 4000 (4 seconds)
thus the need for me to create the 'countdown' combo, which counts out the full 30seconds in 1 second increments "wait(1000)"
-
xenologer - Command Sergeant Major
- Posts: 147
- Joined: Thu Dec 29, 2016 12:31 am
Re: Script Request
xenologer wrote:Hello
you've done a great job explaining what you wanted to accomplish.
When requests are made so clearly, it is no trouble at all writing up a script.
See if this works:
- Code: Select all
/* *
Gone Fishing
*/
int enable=0;
int timer=0;
main {
//toggle switch
if(event_press(XB1_RB))enable=!enable;
if(enable){
if(!timer){//if timer is 0
combo_run(cast);
}else if(timer<30){ //count out 30secs
combo_run(countdown);
}else{ //reel in fish
combo_run(reelin);
}
}else{//disabled, stop all
combo_stop(cast);
combo_stop(countdown);
combo_stop(reelin);
timer=0;
}
set_val(TRACE_1,timer);
}
combo cast{ //hits X to cast fishing line
set_val(XB1_X,100);
wait(200);
set_val(XB1_X,0);
wait(200);
timer=1; //initiate timer
}
combo countdown{ //counts out 1 second at a time
wait(1000);
timer=timer+1;
}
combo reelin{ //hit x to reel in fishing line
set_val(XB1_X,100);
wait(200);
set_val(XB1_X,0);
wait(3000); //wait 3 seconds and reset timer
timer=0;
}
Note:
the wait() command has a maximum input of 4000 (4 seconds)
thus the need for me to create the 'countdown' combo, which counts out the full 30seconds in 1 second increments "wait(1000)"
This just about knocks it out of the park, thanks man! I've been trying to get this combo down all day. I'd show you what I came up with but I think I'd be embarrassed lol. Seems the only hiccups are the range you are from the water and this game's horrible lag on console. I think this script could get pretty popular if Trove takes off on console, credit is all yours
-
Kathetos - Private First Class
- Posts: 2
- Joined: Mon Nov 30, 2015 6:46 pm
Re: Script Request
Hello is there a updated script? For console PS4
-
Soulsnacher - Private
- Posts: 1
- Joined: Mon May 09, 2022 6:34 pm
4 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 43 guests