Many of you dreamed about sliding notice messages like usko, in private servers there can't be box for it but we can make something like this. All you wanted to convert some stuff like forgotten temple's notices but now we can do it! :)
Original code- 00498B59 > 80FB 11 CMP BL,11 // check for noticeall command
- 00498B5C 0F84 D6010000 JE 00498D38
- 00498B62 . 80FB 07 CMP BL,7 // check for notice command
- 00498B65 . 0F84 CD010000 JE 00498D38
复制代码 Modified code- 00498B59 > 80FB 11 CMP BL,11 // check for noticeall command
- 00498B5C 0F84 D6010000 JE 00499218 // if this is noticeall go to our new code cave
- 00498B62 . 80FB 07 CMP BL,7 // check for notice command
- 00498B65 . 0F84 CD010000 JE 00498D38
复制代码 Our code-cave- 00499218 > 8B86 98800000 MOV EAX,DWORD PTR DS:[ESI+8098]
- 0049921E . C685 DCFBFFFF >MOV BYTE PTR SS:[EBP-424],10
- 00499225 . C685 DDFBFFFF >MOV BYTE PTR SS:[EBP-423],8 // sliding notice
- 0049922C ^E9 1BFBFFFF JMP 00498D4C // jmp back to original routine
复制代码 Well with this modified code your GM's can now send sliding notices by using /noticeall command :)
For using this patch you must use an assembler which support editing.You can use OllyDBG for it.
Have fun.
1.310- 0047EF79 0F84 D6CF0200 JE 004ABF55
- 004ABF55 8B86 98800000 MOV EAX,DWORD PTR DS: [ESI+8098]
- 004ABF5B E9 91640100 JMP 004C23F1
- 004C23F1 C685 DCFBFFFF 10 MOV BYTE PTR SS: [EBP-424],10
- 004C23F8 E9 34430000 JMP 004C6731
- 004C6731 C685 DDFBFFFF 08 MOV BYTE PTR SS: [EBP-423],8
- 004C6738 E9 2C8AFBFF JMP 0047F169
复制代码 |