Release [C#/C++] BO2 Notification

Discussion in 'Call of Duty: Black Ops 2 Scripts' started by NotMyFaultv2, Aug 2, 2017.

  1. NotMyFaultv2

    NotMyFaultv2 Well-Known Member

    17
    15
    218
    Credits:
    151
    Thanks to Pyrex BLJ for helping and for converting it to C++ with me. :grinning:

    Code:
     private void Notify(string textHeader, string text, string Shader)
     {
                PS3.SetMemory(0x1C1FE73, new byte[] { 0x28 });
                PS3.Extension.WriteString(0x01C1FC65, textHeader);
                PS3.Extension.WriteString(0x01C1FE65, Shader);
                PS3.Extension.WriteString(0x1C1FD65, text);
                PS3.SetMemory(0x1C1FF66, new byte[] { 0x00, 0x00, 0x00, 0x00, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 });
                PS3.SetMemory(0x0D50025, new byte[] { 0x20 });
                System.Threading.Thread.Sleep(2500);
                PS3.SetMemory(0x1C1FF66, new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 });
                PS3.Extension.WriteString(0x1C1FD65, "");
    }
    

    Code:
    void Thread(uint64_t nothing) {
         sleep(3000);
         unsigned char byte32off[32] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };     unsigned char byte32off2[32] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
         write_process(0x1C1FF66, &byte32off, 32);
         write_process(0x1C1FD65, &byte32off2, 32);
         write_process(0x1C1FC65, &byte32off2, 32);
         write_process(0x01C1FE65, &byte32off2, 32);
         sys_ppu_thread_exit(nothing);
     }
    
    sys_ppu_thread_t Sleeping; 
    
    void Notify(char *notifTitle, char *notifBody, char *notifShader) {
         unsigned char byte28[1] = { 0x28 };
         unsigned char byte32on[32] = { 0x00, 0x00, 0x00, 0x00, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
         unsigned char byte20[1] = { 0x20 };
         write_process(0x1C1FE73, &byte28, 1);
         PS3Lib::WriteString(0x01C1FC65, notifTitle);
         PS3Lib::WriteString(0x01C1FE65, notifShader);
         PS3Lib::WriteString(0x1C1FD65, notifBody);
         write_process(0x1C1FF66, &byte32on, 32);
         write_process(0x0D50025, &byte20, 1);
         sys_ppu_thread_create(&Sleeping, Thread, 0, 10, 0x0A, 0, "Sleep");
    }
    

    [​IMG]

    Call: Notify("Notification Header", "Notification Text", "menu_camo_mtx_dragon");
     
    Last edited: Aug 7, 2017
  2. The Dark Side

    The Dark Side Former Staff Member

    995
    828
    398
    Credits:
    3,676
    Show us what this does? Screenshot?
     
    RosticGamer99 and CabCon like this.
  3. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    571
    329
    378
    Credits:
    3,090
    its the little one at the bottom center, normally shows after you invite someone
     
  4. candy

    candy G59 Terrorist Donator

    1,265
    831
    398
    Credits:
    7,077
    Can't say much about this as from what Dora said, the thread itself is lacking or shouldnt be it's own thread alone.
     
    The Dark Side likes this.
  5. RisikCFW

    RisikCFW Known Member

    1
    1
    103
    Credits:
    16
    Thanks
     
    Pyrex BLJ likes this.
  6. NotMyFaultv2

    NotMyFaultv2 Well-Known Member

    17
    15
    218
    Credits:
    151
    Through this up fast, will add a screenshot of what it displays.
     
    The Dark Side and CabCon like this.
  7. Tusta

    Tusta Head Member Donator

    20
    10
    14
    Credits:
    3,249
    Nice!
     
  8. Richi987

    Richi987 Well-Known Member

    77
    42
    218
    Credits:
    1,301
    Awesome Thanks :wink:
     
    Pyrex BLJ likes this.
  9. NV

    NV Well-Known Member

    28
    36
    218
    Credits:
    524
    Damn, that's look sick! Great job bro!
     
    Pyrex BLJ likes this.
  10. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    571
    329
    378
    Credits:
    3,090
    updated with c++ function
     
    RosticGamer99 and NV like this.
  11. God

    God Skiddy

    342
    246
    243
    Credits:
    1,072
    why the thread though
     
    The Dark Side likes this.
  12. The Dark Side

    The Dark Side Former Staff Member

    995
    828
    398
    Credits:
    3,676
    that sweet sweet credits
     
  13. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    571
    329
    378
    Credits:
    3,090
    sleeping without threading just freezes the game for the amount of time you want to sleep
     
  14. God

    God Skiddy

    342
    246
    243
    Credits:
    1,072
    ah
     
  15. big money

    big money New Member

    6
    1
    3
    Credits:
    56
    can this be used in game? don't work for me but its been a long time away from sprx for me. I do get a error at sys_ppu_thread_t. thanks for any help
     
    Last edited: Feb 12, 2018
  16. zommer0532

    zommer0532 Well-Known Member

    167
    82
    238
    Credits:
    975
    Please login or register to view links or downloads!
     
  17. DevOps

    DevOps Well-Known Member

    2
    1
    203
    Credits:
    75


    Code:
    0x3779EC - void UI_OpenToastPopup(int localClientNum, const char *toastPopupIconName, const char *toastPopupTitle, const char *toastPopupDesc, int toastPopupDuration)

    Code:
    Example
    
    UI_OpenToastPopup(0, "menu_camo_mtx_dragon", "DevOps Says:", "Choo Choo Haha", 2500);
    
     
  18. PhucedMODZ

    PhucedMODZ Trial Moderator Staff Member Donator

    178
    95
    313
    Credits:
    1,312
    anybody happen to have this for rgh?
     
  19. PayM12

    PayM12 New Member

    1
    0
    1
    Credits:
    66
    How do I use this code:
    private void Notify(string textHeader, string text, string Shader)
    {
    PS3.SetMemory(0x1C1FE73, new byte[] { 0x28 });
    PS3.Extension.WriteString(0x01C1FC65, textHeader);
    PS3.Extension.WriteString(0x01C1FE65, Shader);
    PS3.Extension.WriteString(0x1C1FD65, text);
    PS3.SetMemory(0x1C1FF66, new byte[] { 0x00, 0x00, 0x00, 0x00, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 });
    PS3.SetMemory(0x0D50025, new byte[] { 0x20 });
    System.Threading.Thread.Sleep(2500);
    PS3.SetMemory(0x1C1FF66, new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 });
    PS3.Extension.WriteString(0x1C1FD65, "");
    }
     
  20. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    571
    329
    378
    Credits:
    3,090
    You call it like this
    Notify("Notification Header", "Notification Text", "Notification shader");
     

Share This Page