Tutoriel PS4 Trophy Unlocker Script par SC58

GERINO

Ancien Staff
Ancien Staff
6/3/16
345
103
1933
32
#1
:salut: :insomn:

Le développeur SC58 a dévoilé un script sur pastebin pour débloquer les trophés sur PS4. Ce script est écrit en C++.

Pour utiliser ceci vous devrez créez votre propre payload.

Code:
#define SCE_NP_TROPHY_GAME_TITLE_MAX_SIZE               (128)[/COLOR][/CENTER]
[COLOR=rgb(0, 0, 0)][CENTER]#define SCE_NP_TROPHY_GAME_DESCR_MAX_SIZE               (1024)

typedef int32_t SceNpTrophyHandle;
typedef int32_t SceNpTrophyContext;
typedef int32_t SceNpTrophyId;

typedef struct SceNpTrophyGameDetails {
    size_t size;
    uint32_t numGroups;
    uint32_t numTrophies;
    uint32_t numPlatinum;
    uint32_t numGold;
    uint32_t numSilver;
    uint32_t numBronze;
    char title[SCE_NP_TROPHY_GAME_TITLE_MAX_SIZE];
    char description[SCE_NP_TROPHY_GAME_DESCR_MAX_SIZE];
} SceNpTrophyGameDetails;

typedef struct SceNpTrophyGameData {
    size_t size;
    uint32_t unlockedTrophies;
    uint32_t unlockedPlatinum;
    uint32_t unlockedGold;
    uint32_t unlockedSilver;
    uint32_t unlockedBronze;
    uint32_t progressPercentage;
} SceNpTrophyGameData;

int sceNpTrophyGetGameInfo(SceNpTrophyContext context, SceNpTrophyHandle handle, SceNpTrophyGameDetails *details, SceNpTrophyGameData *data);
int sceNpTrophyUnlockTrophy(SceNpTrophyContext context, SceNpTrophyHandle handle, SceNpTrophyId trophyId, SceNpTrophyId *platinumId);

// Maybe Different value?
SceNpTrophyContext context = 1;
SceNpTrophyHandle handle = 1;

int GetTrophyCount()
{
    SceNpTrophyGameDetails details;
    sceNpTrophyGetGameInfo(context, handle, &details, NULL);
    return details.numTrophies;
}

void UnlockAllTrophies()
{
    for (int32_t trophyId = 0; trophyId < GetTrophyCount(); trophyId++)
        sceNpTrophyUnlockTrophy(context, handle, trophyId, NULL);
}

 
S

Son Of Beach

Visiteur
Visiteur
#3
Non c'est pas bug c'est les couleur qu'il faut revoir pour la balise code