SystemMsg separation from ChatMsg - 1.04D

Results 1 to 4 of 4
  1. #1
    <NULL> Acnathon is offline
    MemberRank
    Apr 2007 Join Date
    RaGEZONELocation
    463Posts

    SystemMsg separation from ChatMsg - 1.04D

    Hi all.
    Im trying to separate SysMsg from ChatMsg in 1.04D main. (Using code from Client Addons Source 1.0.0.2)

    1.) So far i have these offsets (Could someone correct them if any is wrong?):
    Code:
    const int GetDisplayMsgType = 0x0078B770;
    const int SetDisplayMsgType = 0x0078B720;
    
    const int ShowChatMsgs = 0x00788930;
    
    const int ShowChatMsgsCall_Hook = 0x0078AF6C;
    
    const int NewCall = 0x009CFF45;
    
    const int FixSysMsg1_Hook = 0x00789617;
    const int FixSysMsg1_FALSE = FixSysMsg1_Hook+5; 
    const int FixSysMsg1_TRUE = 0x007896D4;
    
    const int FixSysMsg2_Hook = 0x00789913;
    const int FixSysMsg2_FALSE = FixSysMsg2_Hook+5; 
    const int FixSysMsg2_TRUE = 0x00789A0A;
    
    const int FixSysMsg3_Hook = 0x00789C5C;
    const int FixSysMsg3_FALSE = FixSysMsg3_Hook+5; 
    const int FixSysMsg3_TRUE = 0x00789D1F;
    2.) Not sure how to modify the next piece to fit on 1.04D so maybe someone could show an example or point me in the right direction

    Code:
    int SystChatSepar = GetPrivateProfileIntA("SystChatSepar", "CoordY", 150, ".\\Custom\\Settings.ini");
    
    __declspec(naked) void ShowSysMsgs()
    {
        __asm {
        call GetDisplayMsgType
        mov dwMsgType, eax
        MOV ECX, DWORD PTR SS:[EBP-4]
        MOV EAX, DWORD PTR DS:[ECX+0xB4]
        MOV dwYpos, EAX
        MOV EAX, DWORD PTR DS:[ECX+0xC4]
        MOV dwHeight, EAX
        // ----
        MOV EDX, [SystChatSepar]
        MOV DWORD PTR DS:[ECX+0xB4], EDX
        MOV DWORD PTR DS:[ECX+0xC4], 0x64
        MOV EAX, DWORD PTR DS:[ECX+0xC8]
        MOV dwMsgCnt, EAX
        MOV DWORD PTR DS:[ECX+0xC8], 6
        MOV EAX, DWORD PTR DS:[ECX+0xD4]
        MOV dwScrollPos, EAX
        PUSH 3
        MOV ECX, DWORD PTR SS:[EBP-4]
        CALL SetDisplayMsgType
        MOV ECX, DWORD PTR SS:[EBP-4]
        CALL ShowChatMsgs
        MOV ECX, DWORD PTR SS:[EBP-4]
        PUSH dwMsgType
        CALL SetDisplayMsgType
        MOV ECX, DWORD PTR SS:[EBP-4]
        MOV EAX, dwYpos
        MOV DWORD PTR DS:[ECX+0xB4], EAX
        MOV EAX, dwHeight
        MOV DWORD PTR DS:[ECX+0xC4], EAX
        MOV EAX, dwMsgCnt
        MOV DWORD PTR DS:[ECX+0xC8], EAX
        MOV EAX, dwScrollPos
        MOV DWORD PTR DS:[ECX+0xD4], EAX
        MOV ECX, DWORD PTR SS:[EBP-4]
        CALL ShowChatMsgs
        retn
     }
    }
    Thanks in advance!


  2. #2
    <NULL> Acnathon is offline
    MemberRank
    Apr 2007 Join Date
    RaGEZONELocation
    463Posts

    Re: SystemMsg separation from ChatMsg - 1.04D

    Hmm nobody have ideas?
    *This happens if i hook it that way:
    screen-06_15-05_17-0000.jpg

  3. #3
    Member Arievlis is offline
    MemberRank
    Jun 2012 Join Date
    ...Location
    62Posts

    Re: SystemMsg separation from ChatMsg - 1.04D

    Could you please post the files: "Client Addons 1.0.0.2 Source"?
    Because the file is broken link in the topic from Brain.

    Gabriel "Oroch" Silveira - Arievlis "Oroch" Leirbag

  4. #4
    <NULL> Acnathon is offline
    MemberRank
    Apr 2007 Join Date
    RaGEZONELocation
    463Posts

    Re: SystemMsg separation from ChatMsg - 1.04D

    Uhh yeah ill upload it i just need to wait for to get back my external hdd. I hope il get it today so ill upload it.



Advertisement