搜索
 找回密码
 加入

[1.298, 1.310] Adding a sliding notice command for GMs (/noticeall)

Twisted 2011-10-3 20:52:19 1196
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
  1. 00498B59   > 80FB 11            CMP BL,11 // check for noticeall command
  2. 00498B5C         0F84 D6010000  JE 00498D38
  3. 00498B62   . 80FB 07            CMP BL,7 // check for notice command
  4. 00498B65   . 0F84 CD010000  JE 00498D38
复制代码
Modified code
  1. 00498B59   > 80FB 11            CMP BL,11 // check for noticeall command
  2. 00498B5C         0F84 D6010000  JE 00499218 // if this is noticeall go to our new code cave
  3. 00498B62   . 80FB 07            CMP BL,7 // check for notice command
  4. 00498B65   . 0F84 CD010000  JE 00498D38
复制代码
Our code-cave
  1. 00499218   > 8B86 98800000  MOV EAX,DWORD PTR DS:[ESI+8098]
  2. 0049921E   . C685 DCFBFFFF >MOV BYTE PTR SS:[EBP-424],10
  3. 00499225   . C685 DDFBFFFF >MOV BYTE PTR SS:[EBP-423],8 // sliding notice
  4. 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
  1. 0047EF79   0F84 D6CF0200  JE 004ABF55

  2. 004ABF55   8B86 98800000        MOV EAX,DWORD PTR DS: [ESI+8098]
  3. 004ABF5B   E9 91640100          JMP 004C23F1

  4. 004C23F1   C685 DCFBFFFF 10     MOV BYTE PTR SS: [EBP-424],10
  5. 004C23F8   E9 34430000          JMP 004C6731

  6. 004C6731   C685 DDFBFFFF 08     MOV BYTE PTR SS: [EBP-423],8
  7. 004C6738   E9 2C8AFBFF          JMP 0047F169
复制代码
相关推荐
 如何解决Notice Count Overflow?已解决。

 1299 GM Commands

0 回复

高级模式
游客