Release [C#/C++] BO2 Notification

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

  1. NotMyFaultv2

    NotMyFaultv2 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

    980
    812
    398
    Credits:
    3,511
    Show us what this does? Screenshot?
     
    RosticGamer99 and CabCon like this.
  3. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    542
    317
    378
    Credits:
    2,861
    its the little one at the bottom center, normally shows after you invite someone
     
  4. candy

    candy G59 Terrorist Donator

    1,192
    779
    398
    Credits:
    6,430
    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 New Member

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

    NotMyFaultv2 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

    14
    16
    14
    Credits:
    3,198
    Nice!
     
  8. Richi987

    Richi987 Active Member

    73
    41
    218
    Credits:
    1,242
    Awesome Thanks :wink:
     
    Pyrex BLJ likes this.
  9. NV

    NV Member

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

    Pyrex BLJ Moderator Staff Member Premium Member

    542
    317
    378
    Credits:
    2,861
    updated with c++ function
     
    RosticGamer99 and NV like this.
  11. God

    God Skiddy

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

    The Dark Side Former Staff Member

    980
    812
    398
    Credits:
    3,511
    that sweet sweet credits
     
  13. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member Premium Member

    542
    317
    378
    Credits:
    2,861
    sleeping without threading just freezes the game for the amount of time you want to sleep
     
  14. God

    God Skiddy

    342
    244
    243
    Credits:
    1,026
    ah
     
  15. big money

    big money 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 Known Member

    166
    81
    238
    Credits:
    956
    Please login or register to view links or downloads!
     
  17. DevOps

    DevOps New Member

    2
    1
    203
    Credits:
    72


    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 Known Member Donator

    163
    90
    213
    Credits:
    1,215
    anybody happen to have this for rgh?
     

Share This Page