ScriptUO

Scripting Resources & Utilities => Inactive scripting projects => UO Machine Corner => Topic started by: xenoglyph on October 15, 2009, 01:02:20 AM

Title: woot! made always light patch for newer clients
Post by: xenoglyph on October 15, 2009, 01:02:20 AM
client 7.0.1.1:

original:
Code: [Select]
00463700  /$ 83EC 08               SUB ESP,8
00463703  |. 8B5424 0C             MOV EDX,DWORD PTR SS:[ESP+C]
00463707  |. 8D4424 03             LEA EAX,DWORD PTR SS:[ESP+3]
0046370B  |. 50                    PUSH EAX
0046370C  |. 8D4C24 08             LEA ECX,DWORD PTR SS:[ESP+8]
00463710  |. 51                    PUSH ECX
00463711  |. 52                    PUSH EDX
00463712  |. C74424 10 00000000    MOV DWORD PTR SS:[ESP+10],0
0046371A  |. E8 51980100           CALL client.0047CF70
0046371F  |. 8A4C24 0F             MOV CL,BYTE PTR SS:[ESP+F]
00463723  |. 0FB6C1                MOVZX EAX,CL
00463726  |. 83C4 0C               ADD ESP,0C
00463729  |. 3905 14097300         CMP DWORD PTR DS:[730914],EAX
0046372F  |. 74 1E                 JE SHORT client.0046374F
00463731  |. 80F9 1F               CMP CL,1F
00463734  |. 73 19                 JNB SHORT client.0046374F
00463736  |. 8B0D E0728300         MOV ECX,DWORD PTR DS:[8372E0]
0046373C  |. 85C9                  TEST ECX,ECX
0046373E  |. A3 14097300           MOV DWORD PTR DS:[730914],EAX
00463743  |. 74 05                 JE SHORT client.0046374A
00463745  |. E8 B6340B00           CALL client.00516C00
0046374A  |> E8 117AFFFF           CALL client.0045B160
0046374F  |> 83C4 08               ADD ESP,8
00463752  \. C3                    RETN

patch:
Code: [Select]
0046372F     EB 1E                 JMP SHORT client.0046374F
Title: Re: woot! made always light patch for newer clients
Post by: _C2_ on October 15, 2009, 05:10:15 AM
Wow!  TY!  I hate the buggy lick spawn area that you can even wear a night sight piece and it still goes nutz in the light department.  I hope this works in there too.
Title: Re: woot! made always light patch for newer clients
Post by: xenoglyph on October 15, 2009, 11:58:09 PM
here's a patcher + source, should support future clients for a while:

http://www.runuo.com/forums/third-party-program-support/98774-always-light-patch-all-ml-sa-2d-clients.html
Title: Re: woot! made always light patch for newer clients
Post by: Bsakirazb on March 31, 2015, 08:42:52 PM
Your message made me think of it.