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?):
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 directionCode: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;
Thanks in advance!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 } }![]()






