-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
%include "macros/patch.inc" | ||
%include "macros/datatypes.inc" | ||
|
||
cextern DisableChat | ||
|
||
; Don't send message to others. | ||
hack 0x0055EF38, 0x0055EF3E | ||
cmp byte[DisableChat], 0 | ||
jz .Reg | ||
jmp 0x0055F056 | ||
|
||
.Reg: | ||
cmp edi, ebx | ||
mov dword[esp + 0x14], ebx | ||
jmp hackend | ||
|
||
; After receiving message, don't play sound if AddMessage returns NULL. | ||
hack 0x0048D97E | ||
cmp eax, 0 | ||
je 0x0048D99A | ||
|
||
.Reg: | ||
mov eax, [0x008871E0] | ||
jmp hackend |