1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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
    14
    118
    Credits:
    145
    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 Sectional Moderator Staff Member

    958
    795
    398
    Credits:
    3,277
    Show us what this does? Screenshot?
     
    RosticGamer99 and CabCon like this.
  3. Pyrex BLJ

    Pyrex BLJ Console Section Trial Moderator Staff Member

    468
    288
    378
    Credits:
    2,464
    its the little one at the bottom center, normally shows after you invite someone
     
  4. Candy

    Candy G59 Terrorist Donator

    1,006
    686
    398
    Credits:
    5,525
    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
    14
    118
    Credits:
    145
    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
    14
    14
    Credits:
    3,154
    Nice!
     
  8. Richi987

    Richi987 Active Member

    72
    40
    218
    Credits:
    1,151
    Awesome Thanks :wink:
     
    Pyrex BLJ likes this.
  9. NV

    NV Member

    27
    33
    118
    Credits:
    456
    Damn, that's look sick! Great job bro!
     
    Pyrex BLJ likes this.
  10. Pyrex BLJ

    Pyrex BLJ Console Section Trial Moderator Staff Member

    468
    288
    378
    Credits:
    2,464
    updated with c++ function
     
    RosticGamer99 and NV like this.
  11. God

    God Skiddy

    342
    242
    243
    Credits:
    925
    why the thread though
     
    The Dark Side likes this.
  12. The Dark Side

    The Dark Side Sectional Moderator Staff Member

    958
    795
    398
    Credits:
    3,277
    that sweet sweet credits
     
  13. Pyrex BLJ

    Pyrex BLJ Console Section Trial Moderator Staff Member

    468
    288
    378
    Credits:
    2,464
    sleeping without threading just freezes the game for the amount of time you want to sleep
     
  14. God

    God Skiddy

    342
    242
    243
    Credits:
    925
    ah
     
  15. big money

    big money Member

    6
    1
    3
    Credits:
    51
    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

    155
    76
    138
    Credits:
    848
    Please login or register to view links or downloads!
     
  17. DevOps

    DevOps New Member

    2
    1
    103
    Credits:
    45


    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);
    
     

Share This Page