PS4 - Auto Delete Recieved Friend Requests

This simple script will manually delete received friend requests for you so you can sit back, eat a sandwhich, and let your lovely device do all the work for you.
Version1.00
AuthorLoui2
Publish DateMon, 16 Oct 2017 - 00:29
Last UpdateMon, 16 Oct 2017 - 00:29
Downloads68
RATE


0

0

Code: Select all
/*
PS4 Friend Request Auto Delete
------------------------------
READ ME!!!!!!
Description: Used to automatically delete all recieved friend requests. Great for when you have hundreds of friend requests and want to deny them all without manually doing it.
 
             Note: At the creation of this script, there is and/or was no way to delete all the friend requests all at once. This may have changed, making this script basically useless.
                    If the bulk delete feature has been added at the time of reading this, then I hope that at least this script will serve good for learning purposes.
 
Instructions:
1. Change the settings down below to your preference/need.
2. Go to friend request menu.
3. Highlight the first friend request.
4. Enable the script by pressing the share button.
5. The script should now press the options button, then it will press the delete button on the menu that comes up, and then it will wait a bit before proceeding to avoid problems from lag/errors.
 
Tips:
1. If you press the share button while the script is running, it will pause the script. You can safely enable it again to continue where you left off.
2. After the script finishes deleting the amount of friend requests, you will have to reload the script if you want to start deleting again.
 
 
Warning: The menus may have changed since the release of this script and therefore you may need to adjust the "delete" combo.
*/

 
 
 
//------Settings------
//The amount of time to wait after deleting a friend request. I use 20000 to avoid errors (sometimes when it deletes a request, the request may take time to disappear and if it tries to remove it again you will get an error. Remove the next request to fix.)
int WaitTime = 20000//Note: time is in miliseconds (1000 miliseconds = 1 second).
 
//Set this equal to the amount of friend requests you have.
int amount = 3;
//--------------------
 
 
//Don't mess with these variables unless you know what you are doing.
int active = FALSE;
int i = 0;
 
 
main
{   
    if(event_press(PS4_SHARE))
    {
        active = !active
    }
 
    //Blocks the share menu
    if(get_val(PS4_SHARE) == 100)
    {
        set_val(PS4_SHARE, 0)
    }
 
    if(active)
    {
        color(0,1,0,0)
    }
    else
    {
        color(1,0,0,0)
    }
 
    if(active && i < amount)
    {
        //set_val(TRACE_1, i);  //Shows value of variable i in device monitor
        combo_run(delete)
    }
 
    if(i == amount)
    {
        color(1,0,0,0)
        active = 0
    }
 
}
combo delete
{
    set_val(PS4_OPTIONS, 100)
    wait(100)
    set_val(PS4_OPTIONS, 0)
    wait(100)
    set_val(PS4_DOWN, 100)
    wait(100)
    set_val(PS4_DOWN, 0)
    wait(100)
    set_val(PS4_DOWN, 100)
    wait(100)
    set_val(PS4_DOWN, 0)
    wait(100)
    set_val(PS4_CROSS, 100)
    wait(100)
    set_val(PS4_CROSS, 0)
    wait(WaitTime)
    i = i + 1
}
 
//Set LED Colors
function color(c1, c2, c3, c4)
{
    set_led(LED_1, c1);
    set_led(LED_2, c2);
    set_led(LED_3, c3);
    set_led(LED_4, c4);
}