ROM Hack Pokemon Brilliant Diamond & Shining Pearl Cheat Database

  • Thread starter Thread starter OblivionReign
  • Start date Start date
  • Views Views 2,054,466
  • Replies Replies 6,632
  • Likes Likes 146
Can someone test this code for me, i'm not there in the story yet:

Code:
[Enable Haihu Event (On)]
04000000 01B43FB4 52800021
[Enable Haihu Event (Off)]
04000000 01B43FB4 1A9F07E1

This code should enable the 3 ingame mystery gift events...
Code:
    [Token(Token = "0x6000C60"), Address(RVA = "0x25F8AC0", Offset = "0x25F8BC1", VA = "0x25F8AC0")]
    public static void ReceiveItemGift(ushort itemId)
    {
        switch ( itemId )
        {
            case 452: //Oak's Letter
                FlagWork.SetWork(276, 1); break; //276 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D18
            case 455: //Azure Flute
                FlagWork.SetWork(277, 1); break; //277 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D05
            case 454: //Member Card
                FlagWork.SetWork(275, 1); break; //275 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D30
        }
    }

But i'm not sure if the function "Dpr.EvScript.EvDataManager$$EvCmdIsHaihuEventEnable" is ever called.
 
someone could write a code that would give 0 stickers of each, thanks to you this will allow you to unlock users who cannot get the stickers provided by the games

[All Stickers x99]
580F0000 0472AD60
580F1000 000000B8
580F1000 00000000
580F1000 00000340
780F0000 0000002C
30DD0000 00000060
640F1000 00000000 00000001
680F1000 00000063 00000063
31DD0000
Stickers cant soft lock you. Iv had max stickers the whole game. You dont have to recieve them
 
Can someone test this code for me, i'm not there in the story yet:

Code:
[Enable Haihu Event (On)]
04000000 01B43FB4 52800021
[Enable Haihu Event (Off)]
04000000 01B43FB4 1A9F07E1

This code should enable the 3 ingame mystery gift events...
Code:
    [Token(Token = "0x6000C60"), Address(RVA = "0x25F8AC0", Offset = "0x25F8BC1", VA = "0x25F8AC0")]
    public static void ReceiveItemGift(ushort itemId)
    {
        switch ( itemId )
        {
            case 452: //Oak's Letter
                FlagWork.SetWork(276, 1); break; //276 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D18
            case 455: //Azure Flute
                FlagWork.SetWork(277, 1); break; //277 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D05
            case 454: //Member Card
                FlagWork.SetWork(275, 1); break; //275 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D30
        }
    }

But i'm not sure if the function "Dpr.EvScript.EvDataManager$$EvCmdIsHaihuEventEnable" is ever called.
I just tried it and nothing happened
 
Can someone test this code for me, i'm not there in the story yet:

Code:
[Enable Haihu Event (On)]
04000000 01B43FB4 52800021
[Enable Haihu Event (Off)]
04000000 01B43FB4 1A9F07E1

This code should enable the 3 ingame mystery gift events...
Code:
    [Token(Token = "0x6000C60"), Address(RVA = "0x25F8AC0", Offset = "0x25F8BC1", VA = "0x25F8AC0")]
    public static void ReceiveItemGift(ushort itemId)
    {
        switch ( itemId )
        {
            case 452: //Oak's Letter
                FlagWork.SetWork(276, 1); break; //276 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D18
            case 455: //Azure Flute
                FlagWork.SetWork(277, 1); break; //277 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D05
            case 454: //Member Card
                FlagWork.SetWork(275, 1); break; //275 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D30
        }
    }

But i'm not sure if the function "Dpr.EvScript.EvDataManager$$EvCmdIsHaihuEventEnable" is ever called.
Alright I tested it but nothing really happened, tried without having the members card/Oak's letter on the inventory and then adding it to the inventory via cheat, door of the Inn is closed and nothing happens on the Shaymin's route. So unless I'm missing a step events don't get triggered.

Fwiw, I have nat pokedex, used latest Ryujinx and only with the "Haihu Event (On)" code.
 
  • Like
Reactions: lattechan
Can someone test this code for me, i'm not there in the story yet:

Code:
[Enable Haihu Event (On)]
04000000 01B43FB4 52800021
[Enable Haihu Event (Off)]
04000000 01B43FB4 1A9F07E1

This code should enable the 3 ingame mystery gift events...
Code:
    [Token(Token = "0x6000C60"), Address(RVA = "0x25F8AC0", Offset = "0x25F8BC1", VA = "0x25F8AC0")]
    public static void ReceiveItemGift(ushort itemId)
    {
        switch ( itemId )
        {
            case 452: //Oak's Letter
                FlagWork.SetWork(276, 1); break; //276 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D18
            case 455: //Azure Flute
                FlagWork.SetWork(277, 1); break; //277 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D05
            case 454: //Member Card
                FlagWork.SetWork(275, 1); break; //275 = EvWork.WORK_INDEX.HAIHUEVENT_ID_D30
        }
    }

But i'm not sure if the function "Dpr.EvScript.EvDataManager$$EvCmdIsHaihuEventEnable" is ever called.
Unfortunately the scripts are actually incomplete and arceus doesn't actually have a proper spawn point anymore and his item was removed from the game
 
  • Like
Reactions: lattechan
anybody got the code for disabling affection mechanics for 1.1 yuzu? I've been able to get no exp share and evolution cheat working but for some reason, the code for disabling affection isn't working
 
Unfortunately the scripts are actually incomplete and arceus doesn't actually have a proper spawn point anymore and his item was removed from the game

It was worth a shot, atleast the other 2 events should work.
Now i try this with a different option, if i can't change it via code hacking, let's try memory hacking ^^.

I don't have noexes running currently so it's a bit slower, but i guess i have the correct memory location, for now no cheat code, because it could ruin some saves, but here the pointer path:

Code:
main.nso + 4E5E160 = MethodInfo_26B6DB0
+0x18 = klass
+0xB8 = static_fields
+0x0
+0x20 = PlayerWork.fields._saveData.intValues
intValues is a il2cpp uint32 class, so:
+0x18 = max_length (should be 500)
+0x20 = m_Items
m_Items[FlagId] should then allow us to modify event flags directly...
Code:
275 = intValues +0x46C 
276 = intValues +0x470
277 = intValues +0x474
if someone wants to try it, i can't because im just after the 4. gym in the story.
 
So I tried the encounter code and works perfectly, the real question being can you use it to trigger Chimchar with it's HA IronFist? I've been trying to use Gardevoir with Trace ability but haven't had luck with it, I know it would be a lot easier with PkHex but I doubt that is coming anytime soon and will probably be out next week.
 
It was worth a shot, atleast the other 2 events should work.
Now i try this with a different option, if i can't change it via code hacking, let's try memory hacking ^^.

I don't have noexes running currently so it's a bit slower, but i guess i have the correct memory location, for now no cheat code, because it could ruin some saves, but here the pointer path:

Code:
main.nso + 4E5E160 = MethodInfo_26B6DB0
+0x18 = klass
+0xB8 = static_fields
+0x0
+0x20 = PlayerWork.fields._saveData.intValues
intValues is a il2cpp uint32 class, so:
+0x18 = max_length (should be 500)
+0x20 = m_Items
m_Items[FlagId] should then allow us to modify event flags directly...
Code:
275 = intValues +0x46C
276 = intValues +0x470
277 = intValues +0x474
if someone wants to try it, i can't because im just after the 4. gym in the story.
But it cant be done with a code?
 
So I tried the encounter code and works perfectly, the real question being can you use it to trigger Chimchar with it's HA IronFist? I've been trying to use Gardevoir with Trace ability but haven't had luck with it, I know it would be a lot easier with PkHex but I doubt that is coming anytime soon and will probably be out next week.
yes just combine the two codes
[wild modifier]
code
[force HA]
code
etc
search thread for hidden ability (idk what slot iron fist is but youll find the post)
 
  • Like
Reactions: Misledz

Site & Scene News

Popular threads in this forum