[1.10] %dmg granted by StrBonus and DexBonus

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

Post Reply
leekun
Dark Alliance Beta Test
Warrior
Posts: 21
Joined: Wed Jul 19, 2017 9:41 pm

[1.10] %dmg granted by StrBonus and DexBonus

Post by leekun » Fri Jun 15, 2018 2:37 am

First sorry for my english.

I want Strength and Energy to behave the same way like Diablo 1, Strength increases melee dmg (1h and 2h dmg) while Energy increases throw dmg (throw dmg in my mod was renamed into range dmg, It controls how much dmg spell and arrow missiles do)
In order to do this I have to search the codes to change the stats required by StrBonus and DexBonus columns in weapons.txt.
I successfully found the codes responsible for both melee and throw dmg displays in D2Client while I only managed to find the codes for melee dmg BUT not throw dmg in D2Game. I've found 2 functions that look like they're related to the dmg but I don't know what to do in the functions.

Code: Select all

6FC549F0   > 83EC 08        SUB ESP,8
6FC549F3   . 56             PUSH ESI
6FC549F4   . 57             PUSH EDI
6FC549F5   . 8BF1           MOV ESI,ECX
6FC549F7   . E8 F6720C00    CALL <JMP.&D2Common.#10613>
6FC549FC   . 85F6           TEST ESI,ESI
6FC549FE   . 8BF8           MOV EDI,EAX
6FC54A00   . 75 05          JNZ SHORT D2GAME.6FC54A07
6FC54A02   . 83C8 FF        OR EAX,FFFFFFFF
6FC54A05   . EB 03          JMP SHORT D2GAME.6FC54A0A
6FC54A07   > 8B46 04        MOV EAX,DWORD PTR DS:[ESI+4]
6FC54A0A   > 50             PUSH EAX
6FC54A0B   . E8 1E6D0C00    CALL <JMP.&D2Common.#10600>
6FC54A10   . 85FF           TEST EDI,EDI
6FC54A12   . 75 08          JNZ SHORT D2GAME.6FC54A1C
6FC54A14   . 5F             POP EDI
6FC54A15   . 33C0           XOR EAX,EAX
6FC54A17   . 5E             POP ESI
6FC54A18   . 83C4 08        ADD ESP,8
6FC54A1B   . C3             RETN
6FC54A1C   > 85C0           TEST EAX,EAX
6FC54A1E   . 75 06          JNZ SHORT D2GAME.6FC54A26
6FC54A20   . 5F             POP EDI
6FC54A21   . 5E             POP ESI
6FC54A22   . 83C4 08        ADD ESP,8
6FC54A25   . C3             RETN
6FC54A26   > 8B3F           MOV EDI,DWORD PTR DS:[EDI]
6FC54A28   . 53             PUSH EBX
6FC54A29   . 55             PUSH EBP
6FC54A2A   . 56             PUSH ESI
6FC54A2B   . E8 60710C00    CALL <JMP.&D2Common.#10691>
6FC54A30   . 85FF           TEST EDI,EDI
6FC54A32   . 8BC8           MOV ECX,EAX
6FC54A34   . 7F 04          JG SHORT D2GAME.6FC54A3A
6FC54A36   . 33C0           XOR EAX,EAX
6FC54A38   . EB 2E          JMP SHORT D2GAME.6FC54A68
6FC54A3A   > 8D47 FF        LEA EAX,DWORD PTR DS:[EDI-1]
6FC54A3D   . 85C7           TEST EDI,EAX
6FC54A3F   . 74 1F          JE SHORT D2GAME.6FC54A60
6FC54A41   . 8B01           MOV EAX,DWORD PTR DS:[ECX]
6FC54A43   . BA C590C66A    MOV EDX,6AC690C5
6FC54A48   . F7E2           MUL EDX
6FC54A4A   . 8B59 04        MOV EBX,DWORD PTR DS:[ECX+4]
6FC54A4D   . 33ED           XOR EBP,EBP
6FC54A4F   . 03C3           ADD EAX,EBX
6FC54A51   . 13D5           ADC EDX,EBP
6FC54A53   . 8901           MOV DWORD PTR DS:[ECX],EAX
6FC54A55   . 8951 04        MOV DWORD PTR DS:[ECX+4],EDX
6FC54A58   . 33D2           XOR EDX,EDX
6FC54A5A   . F7F7           DIV EDI
6FC54A5C   . 8BC2           MOV EAX,EDX
6FC54A5E   . EB 08          JMP SHORT D2GAME.6FC54A68
6FC54A60   > E8 8BA1FFFF    CALL D2GAME.6FC4EBF0
6FC54A65   . 4F             DEC EDI
6FC54A66   . 23C7           AND EAX,EDI
6FC54A68   > 50             PUSH EAX
6FC54A69   . 56             PUSH ESI
6FC54A6A   . E8 15710C00    CALL <JMP.&D2Common.#10733>
6FC54A6F   . 33ED           XOR EBP,EBP
6FC54A71   . 56             PUSH ESI
6FC54A72   . 896C24 18      MOV DWORD PTR SS:[ESP+18],EBP
6FC54A76   . E8 476F0C00    CALL <JMP.&D2Common.#10811>
6FC54A7B   . 85C0           TEST EAX,EAX
6FC54A7D   . 0F84 A9000000  JE D2GAME.6FC54B2C
6FC54A83   . 85F6           TEST ESI,ESI
6FC54A85   . 75 05          JNZ SHORT D2GAME.6FC54A8C
6FC54A87   . 83C8 FF        OR EAX,FFFFFFFF
6FC54A8A   . EB 03          JMP SHORT D2GAME.6FC54A8F
6FC54A8C   > 8B46 04        MOV EAX,DWORD PTR DS:[ESI+4]
6FC54A8F   > 50             PUSH EAX
6FC54A90   . E8 996C0C00    CALL <JMP.&D2Common.#10600>
6FC54A95   . 85C0           TEST EAX,EAX
6FC54A97   . 0F84 8F000000  JE D2GAME.6FC54B2C
6FC54A9D   . 33C9           XOR ECX,ECX
6FC54A9F   . 8A88 12010000  MOV CL,BYTE PTR DS:[EAX+112]
6FC54AA5   . B8 56555555    MOV EAX,55555556
6FC54AAA   . F7E9           IMUL ECX
6FC54AAC   . 8BC2           MOV EAX,EDX
6FC54AAE   . C1E8 1F        SHR EAX,1F
6FC54AB1   . 03D0           ADD EDX,EAX
6FC54AB3   . 8BDA           MOV EBX,EDX
6FC54AB5   . 895C24 10      MOV DWORD PTR SS:[ESP+10],EBX
6FC54AB9   . 75 09          JNZ SHORT D2GAME.6FC54AC4
6FC54ABB   . BB 01000000    MOV EBX,1
6FC54AC0   . 895C24 10      MOV DWORD PTR SS:[ESP+10],EBX
6FC54AC4   > 8BFB           MOV EDI,EBX
6FC54AC6   . 8D4E 20        LEA ECX,DWORD PTR DS:[ESI+20]
6FC54AC9   . D1EF           SHR EDI,1
6FC54ACB   . 85FF           TEST EDI,EDI
6FC54ACD   . 7F 04          JG SHORT D2GAME.6FC54AD3
6FC54ACF   . 33C0           XOR EAX,EAX
6FC54AD1   . EB 38          JMP SHORT D2GAME.6FC54B0B
6FC54AD3   > 8D57 FF        LEA EDX,DWORD PTR DS:[EDI-1]
6FC54AD6   . 85D7           TEST EDI,EDX
6FC54AD8   . 74 27          JE SHORT D2GAME.6FC54B01
6FC54ADA   . 8B01           MOV EAX,DWORD PTR DS:[ECX]
6FC54ADC   . BA C590C66A    MOV EDX,6AC690C5
6FC54AE1   . F7E2           MUL EDX
6FC54AE3   . 8B59 04        MOV EBX,DWORD PTR DS:[ECX+4]
6FC54AE6   . 33ED           XOR EBP,EBP
6FC54AE8   . 03C3           ADD EAX,EBX
6FC54AEA   . 8B5C24 10      MOV EBX,DWORD PTR SS:[ESP+10]
6FC54AEE   . 13D5           ADC EDX,EBP
6FC54AF0   . 8901           MOV DWORD PTR DS:[ECX],EAX
6FC54AF2   . 8951 04        MOV DWORD PTR DS:[ECX+4],EDX
6FC54AF5   . 33D2           XOR EDX,EDX
6FC54AF7   . F7F7           DIV EDI
6FC54AF9   . 8B6C24 14      MOV EBP,DWORD PTR SS:[ESP+14]
6FC54AFD   . 8BC2           MOV EAX,EDX
6FC54AFF   . EB 0A          JMP SHORT D2GAME.6FC54B0B
6FC54B01   > E8 EAA0FFFF    CALL D2GAME.6FC4EBF0
6FC54B06   . 8D4F FF        LEA ECX,DWORD PTR DS:[EDI-1]
6FC54B09   . 23C1           AND EAX,ECX
6FC54B0B   > 03F8           ADD EDI,EAX
6FC54B0D   . 85FF           TEST EDI,EDI
6FC54B0F   . 77 05          JA SHORT D2GAME.6FC54B16
6FC54B11   . BF 01000000    MOV EDI,1
6FC54B16   > 6A 00          PUSH 0
6FC54B18   . 57             PUSH EDI
6FC54B19   . 6A 48          PUSH 48
6FC54B1B   . 56             PUSH ESI
6FC54B1C   . E8 876D0C00    CALL <JMP.&D2Common.#10517>
6FC54B21   . 6A 00          PUSH 0
6FC54B23   . 53             PUSH EBX
6FC54B24   . 6A 49          PUSH 49
6FC54B26   . 56             PUSH ESI
6FC54B27   . E8 7C6D0C00    CALL <JMP.&D2Common.#10517>
6FC54B2C   > 6A 2D          PUSH 2D
6FC54B2E   . 56             PUSH ESI
6FC54B2F   . E8 986D0C00    CALL <JMP.&D2Common.#10731>
6FC54B34   . 85C0           TEST EAX,EAX
6FC54B36   . 0F84 6C010000  JE D2GAME.6FC54CA8
6FC54B3C   . 6A 00          PUSH 0
6FC54B3E   . 6A 16          PUSH 16
6FC54B40   . 56             PUSH ESI
6FC54B41   . E8 6A6B0C00    CALL <JMP.&D2Common.#10521>
6FC54B46   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54B49   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54B4C   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54B4F   . B8 1F85EB51    MOV EAX,51EB851F
6FC54B54   . F7E9           IMUL ECX
6FC54B56   . C1FA 05        SAR EDX,5
6FC54B59   . 8BC2           MOV EAX,EDX
6FC54B5B   . C1E8 1F        SHR EAX,1F
6FC54B5E   . 03D0           ADD EDX,EAX
6FC54B60   . 83FA 02        CMP EDX,2
6FC54B63   . 7D 05          JGE SHORT D2GAME.6FC54B6A
6FC54B65   . BA 02000000    MOV EDX,2
6FC54B6A   > 6A 00          PUSH 0
6FC54B6C   . 52             PUSH EDX
6FC54B6D   . 6A 16          PUSH 16
6FC54B6F   . 56             PUSH ESI
6FC54B70   . E8 336D0C00    CALL <JMP.&D2Common.#10517>
6FC54B75   . 6A 00          PUSH 0
6FC54B77   . 6A 15          PUSH 15
6FC54B79   . 56             PUSH ESI
6FC54B7A   . E8 316B0C00    CALL <JMP.&D2Common.#10521>
6FC54B7F   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54B82   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54B85   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54B88   . B8 1F85EB51    MOV EAX,51EB851F
6FC54B8D   . F7E9           IMUL ECX
6FC54B8F   . C1FA 05        SAR EDX,5
6FC54B92   . 8BCA           MOV ECX,EDX
6FC54B94   . C1E9 1F        SHR ECX,1F
6FC54B97   . 03D1           ADD EDX,ECX
6FC54B99   . 83FA 01        CMP EDX,1
6FC54B9C   . 7D 05          JGE SHORT D2GAME.6FC54BA3
6FC54B9E   . BA 01000000    MOV EDX,1
6FC54BA3   > 6A 00          PUSH 0
6FC54BA5   . 52             PUSH EDX
6FC54BA6   . 6A 15          PUSH 15
6FC54BA8   . 56             PUSH ESI
6FC54BA9   . E8 FA6C0C00    CALL <JMP.&D2Common.#10517>
6FC54BAE   . 6A 00          PUSH 0
6FC54BB0   . 6A 18          PUSH 18
6FC54BB2   . 56             PUSH ESI
6FC54BB3   . E8 F86A0C00    CALL <JMP.&D2Common.#10521>
6FC54BB8   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54BBB   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54BBE   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54BC1   . B8 1F85EB51    MOV EAX,51EB851F
6FC54BC6   . F7E9           IMUL ECX
6FC54BC8   . C1FA 05        SAR EDX,5
6FC54BCB   . 8BC2           MOV EAX,EDX
6FC54BCD   . C1E8 1F        SHR EAX,1F
6FC54BD0   . 03D0           ADD EDX,EAX
6FC54BD2   . 83FA 02        CMP EDX,2
6FC54BD5   . 7D 05          JGE SHORT D2GAME.6FC54BDC
6FC54BD7   . BA 02000000    MOV EDX,2
6FC54BDC   > 6A 00          PUSH 0
6FC54BDE   . 52             PUSH EDX
6FC54BDF   . 6A 18          PUSH 18
6FC54BE1   . 56             PUSH ESI
6FC54BE2   . E8 C16C0C00    CALL <JMP.&D2Common.#10517>
6FC54BE7   . 6A 00          PUSH 0
6FC54BE9   . 6A 17          PUSH 17
6FC54BEB   . 56             PUSH ESI
6FC54BEC   . E8 BF6A0C00    CALL <JMP.&D2Common.#10521>
6FC54BF1   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54BF4   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54BF7   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54BFA   . B8 1F85EB51    MOV EAX,51EB851F
6FC54BFF   . F7E9           IMUL ECX
6FC54C01   . C1FA 05        SAR EDX,5
6FC54C04   . 8BCA           MOV ECX,EDX
6FC54C06   . C1E9 1F        SHR ECX,1F
6FC54C09   . 03D1           ADD EDX,ECX
6FC54C0B   . 83FA 01        CMP EDX,1
6FC54C0E   . 7D 05          JGE SHORT D2GAME.6FC54C15
6FC54C10   . BA 01000000    MOV EDX,1
6FC54C15   > 6A 00          PUSH 0
6FC54C17   . 52             PUSH EDX
6FC54C18   . 6A 17          PUSH 17
6FC54C1A   . 56             PUSH ESI
6FC54C1B   . E8 886C0C00    CALL <JMP.&D2Common.#10517>
6FC54C20   . 56             PUSH ESI
6FC54C21   . E8 5A6D0C00    CALL <JMP.&D2Common.#10759>
6FC54C26   . 85C0           TEST EAX,EAX
6FC54C28   . 0F84 BE000000  JE D2GAME.6FC54CEC
6FC54C2E   . 6A 00          PUSH 0
6FC54C30   . 68 9F000000    PUSH 9F
6FC54C35   . 56             PUSH ESI
6FC54C36   . E8 3F6D0C00    CALL <JMP.&D2Common.#10520>
6FC54C3B   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54C3E   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54C41   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54C44   . B8 1F85EB51    MOV EAX,51EB851F
6FC54C49   . F7E9           IMUL ECX
6FC54C4B   . C1FA 05        SAR EDX,5
6FC54C4E   . 8BC2           MOV EAX,EDX
6FC54C50   . C1E8 1F        SHR EAX,1F
6FC54C53   . 03D0           ADD EDX,EAX
6FC54C55   . 83FA 02        CMP EDX,2
6FC54C58   . 7D 05          JGE SHORT D2GAME.6FC54C5F
6FC54C5A   . BA 02000000    MOV EDX,2
6FC54C5F   > 6A 00          PUSH 0
6FC54C61   . 52             PUSH EDX
6FC54C62   . 68 9F000000    PUSH 9F
6FC54C67   . 56             PUSH ESI
6FC54C68   . E8 3B6C0C00    CALL <JMP.&D2Common.#10517>
6FC54C6D   . 6A 00          PUSH 0
6FC54C6F   . 68 A0000000    PUSH 0A0
6FC54C74   . 56             PUSH ESI
6FC54C75   . E8 006D0C00    CALL <JMP.&D2Common.#10520>
6FC54C7A   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54C7D   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54C80   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54C83   . B8 1F85EB51    MOV EAX,51EB851F
6FC54C88   . F7E9           IMUL ECX
6FC54C8A   . C1FA 05        SAR EDX,5
6FC54C8D   . 8BCA           MOV ECX,EDX
6FC54C8F   . C1E9 1F        SHR ECX,1F
6FC54C92   . 03D1           ADD EDX,ECX
6FC54C94   . 83FA 01        CMP EDX,1
6FC54C97   . 7D 05          JGE SHORT D2GAME.6FC54C9E
6FC54C99   . BA 01000000    MOV EDX,1
6FC54C9E   > 6A 00          PUSH 0
6FC54CA0   . 52             PUSH EDX
6FC54CA1   . 68 A0000000    PUSH 0A0
6FC54CA6   . EB 3E          JMP SHORT D2GAME.6FC54CE6
6FC54CA8   > 6A 32          PUSH 32
6FC54CAA   . 56             PUSH ESI
6FC54CAB   . E8 1C6C0C00    CALL <JMP.&D2Common.#10731>
6FC54CB0   . 85C0           TEST EAX,EAX
6FC54CB2   . 74 3D          JE SHORT D2GAME.6FC54CF1
6FC54CB4   . 6A 00          PUSH 0
6FC54CB6   . 6A 1F          PUSH 1F
6FC54CB8   . 56             PUSH ESI
6FC54CB9   . E8 F2690C00    CALL <JMP.&D2Common.#10521>
6FC54CBE   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54CC1   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54CC4   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54CC7   . B8 1F85EB51    MOV EAX,51EB851F
6FC54CCC   . F7E9           IMUL ECX
6FC54CCE   . C1FA 05        SAR EDX,5
6FC54CD1   . 8BC2           MOV EAX,EDX
6FC54CD3   . C1E8 1F        SHR EAX,1F
6FC54CD6   . 03D0           ADD EDX,EAX
6FC54CD8   . 85D2           TEST EDX,EDX
6FC54CDA   . 7F 05          JG SHORT D2GAME.6FC54CE1
6FC54CDC   . BA 01000000    MOV EDX,1
6FC54CE1   > 6A 00          PUSH 0
6FC54CE3   . 52             PUSH EDX
6FC54CE4   . 6A 1F          PUSH 1F
6FC54CE6   > 56             PUSH ESI
6FC54CE7   . E8 BC6B0C00    CALL <JMP.&D2Common.#10517>
6FC54CEC   > BD 01000000    MOV EBP,1
6FC54CF1   > 8BC5           MOV EAX,EBP
6FC54CF3   . 5D             POP EBP
6FC54CF4   . 5B             POP EBX
6FC54CF5   . 5F             POP EDI
6FC54CF6   . 5E             POP ESI
6FC54CF7   . 83C4 08        ADD ESP,8
6FC54CFA   . C3             RETN

Code: Select all

6FC54D00   > 83EC 08        SUB ESP,8
6FC54D03   . 56             PUSH ESI
6FC54D04   . 57             PUSH EDI
6FC54D05   . 895424 0C      MOV DWORD PTR SS:[ESP+C],EDX
6FC54D09   . 8BF1           MOV ESI,ECX
6FC54D0B   . E8 E26F0C00    CALL <JMP.&D2Common.#10613>
6FC54D10   . 85F6           TEST ESI,ESI
6FC54D12   . 8BF8           MOV EDI,EAX
6FC54D14   . 75 05          JNZ SHORT D2GAME.6FC54D1B
6FC54D16   . 83C8 FF        OR EAX,FFFFFFFF
6FC54D19   . EB 03          JMP SHORT D2GAME.6FC54D1E
6FC54D1B   > 8B46 04        MOV EAX,DWORD PTR DS:[ESI+4]
6FC54D1E   > 50             PUSH EAX
6FC54D1F   . E8 0A6A0C00    CALL <JMP.&D2Common.#10600>
6FC54D24   . 85FF           TEST EDI,EDI
6FC54D26   . 75 08          JNZ SHORT D2GAME.6FC54D30
6FC54D28   . 5F             POP EDI
6FC54D29   . 33C0           XOR EAX,EAX
6FC54D2B   . 5E             POP ESI
6FC54D2C   . 83C4 08        ADD ESP,8
6FC54D2F   . C3             RETN
6FC54D30   > 85C0           TEST EAX,EAX
6FC54D32   . 75 06          JNZ SHORT D2GAME.6FC54D3A
6FC54D34   . 5F             POP EDI
6FC54D35   . 5E             POP ESI
6FC54D36   . 83C4 08        ADD ESP,8
6FC54D39   . C3             RETN
6FC54D3A   > 8B3F           MOV EDI,DWORD PTR DS:[EDI]
6FC54D3C   . 53             PUSH EBX
6FC54D3D   . 55             PUSH EBP
6FC54D3E   . 56             PUSH ESI
6FC54D3F   . E8 4C6E0C00    CALL <JMP.&D2Common.#10691>
6FC54D44   . 85FF           TEST EDI,EDI
6FC54D46   . 8BC8           MOV ECX,EAX
6FC54D48   . 7F 04          JG SHORT D2GAME.6FC54D4E
6FC54D4A   . 33C0           XOR EAX,EAX
6FC54D4C   . EB 2E          JMP SHORT D2GAME.6FC54D7C
6FC54D4E   > 8D47 FF        LEA EAX,DWORD PTR DS:[EDI-1]
6FC54D51   . 85C7           TEST EDI,EAX
6FC54D53   . 74 1F          JE SHORT D2GAME.6FC54D74
6FC54D55   . 8B01           MOV EAX,DWORD PTR DS:[ECX]
6FC54D57   . BA C590C66A    MOV EDX,6AC690C5
6FC54D5C   . F7E2           MUL EDX
6FC54D5E   . 8B59 04        MOV EBX,DWORD PTR DS:[ECX+4]
6FC54D61   . 33ED           XOR EBP,EBP
6FC54D63   . 03C3           ADD EAX,EBX
6FC54D65   . 13D5           ADC EDX,EBP
6FC54D67   . 8901           MOV DWORD PTR DS:[ECX],EAX
6FC54D69   . 8951 04        MOV DWORD PTR DS:[ECX+4],EDX
6FC54D6C   . 33D2           XOR EDX,EDX
6FC54D6E   . F7F7           DIV EDI
6FC54D70   . 8BC2           MOV EAX,EDX
6FC54D72   . EB 08          JMP SHORT D2GAME.6FC54D7C
6FC54D74   > E8 779EFFFF    CALL D2GAME.6FC4EBF0
6FC54D79   . 4F             DEC EDI
6FC54D7A   . 23C7           AND EAX,EDI
6FC54D7C   > 50             PUSH EAX
6FC54D7D   . 56             PUSH ESI
6FC54D7E   . E8 016E0C00    CALL <JMP.&D2Common.#10733>
6FC54D83   . 56             PUSH ESI
6FC54D84   . C74424 14 0000>MOV DWORD PTR SS:[ESP+14],0
6FC54D8C   . E8 316C0C00    CALL <JMP.&D2Common.#10811>
6FC54D91   . 85C0           TEST EAX,EAX
6FC54D93   . BD 01000000    MOV EBP,1
6FC54D98   . 0F84 89000000  JE D2GAME.6FC54E27
6FC54D9E   . 85F6           TEST ESI,ESI
6FC54DA0   . 75 05          JNZ SHORT D2GAME.6FC54DA7
6FC54DA2   . 83C8 FF        OR EAX,FFFFFFFF
6FC54DA5   . EB 03          JMP SHORT D2GAME.6FC54DAA
6FC54DA7   > 8B46 04        MOV EAX,DWORD PTR DS:[ESI+4]
6FC54DAA   > 50             PUSH EAX
6FC54DAB   . E8 7E690C00    CALL <JMP.&D2Common.#10600>
6FC54DB0   . 85C0           TEST EAX,EAX
6FC54DB2   . 74 73          JE SHORT D2GAME.6FC54E27
6FC54DB4   . 33C9           XOR ECX,ECX
6FC54DB6   . 8A88 12010000  MOV CL,BYTE PTR DS:[EAX+112]
6FC54DBC   . 8BC1           MOV EAX,ECX
6FC54DBE   . C1E1 05        SHL ECX,5
6FC54DC1   . 03C8           ADD ECX,EAX
6FC54DC3   . B8 1F85EB51    MOV EAX,51EB851F
6FC54DC8   . F7E9           IMUL ECX
6FC54DCA   . C1FA 05        SAR EDX,5
6FC54DCD   . 8BC2           MOV EAX,EDX
6FC54DCF   . C1E8 1F        SHR EAX,1F
6FC54DD2   . 03D0           ADD EDX,EAX
6FC54DD4   . 8BDA           MOV EBX,EDX
6FC54DD6   . 3BDD           CMP EBX,EBP
6FC54DD8   . 7D 02          JGE SHORT D2GAME.6FC54DDC
6FC54DDA   . 8BDD           MOV EBX,EBP
6FC54DDC   > 8BFB           MOV EDI,EBX
6FC54DDE   . 8D4E 20        LEA ECX,DWORD PTR DS:[ESI+20]
6FC54DE1   . D1EF           SHR EDI,1
6FC54DE3   . 85FF           TEST EDI,EDI
6FC54DE5   . 7F 04          JG SHORT D2GAME.6FC54DEB
6FC54DE7   . 33C0           XOR EAX,EAX
6FC54DE9   . EB 1E          JMP SHORT D2GAME.6FC54E09
6FC54DEB   > 8D57 FF        LEA EDX,DWORD PTR DS:[EDI-1]
6FC54DEE   . 85D7           TEST EDI,EDX
6FC54DF0   . 74 0D          JE SHORT D2GAME.6FC54DFF
6FC54DF2   . E8 F99DFFFF    CALL D2GAME.6FC4EBF0
6FC54DF7   . 33D2           XOR EDX,EDX
6FC54DF9   . F7F7           DIV EDI
6FC54DFB   . 8BC2           MOV EAX,EDX
6FC54DFD   . EB 0A          JMP SHORT D2GAME.6FC54E09
6FC54DFF   > E8 EC9DFFFF    CALL D2GAME.6FC4EBF0
6FC54E04   . 8D4F FF        LEA ECX,DWORD PTR DS:[EDI-1]
6FC54E07   . 23C1           AND EAX,ECX
6FC54E09   > 03F8           ADD EDI,EAX
6FC54E0B   . 85FF           TEST EDI,EDI
6FC54E0D   . 77 02          JA SHORT D2GAME.6FC54E11
6FC54E0F   . 8BFD           MOV EDI,EBP
6FC54E11   > 6A 00          PUSH 0
6FC54E13   . 57             PUSH EDI
6FC54E14   . 6A 48          PUSH 48
6FC54E16   . 56             PUSH ESI
6FC54E17   . E8 8C6A0C00    CALL <JMP.&D2Common.#10517>
6FC54E1C   . 6A 00          PUSH 0
6FC54E1E   . 53             PUSH EBX
6FC54E1F   . 6A 49          PUSH 49
6FC54E21   . 56             PUSH ESI
6FC54E22   . E8 816A0C00    CALL <JMP.&D2Common.#10517>
6FC54E27   > 6A 2D          PUSH 2D
6FC54E29   . 56             PUSH ESI
6FC54E2A   . E8 9D6A0C00    CALL <JMP.&D2Common.#10731>
6FC54E2F   . 85C0           TEST EAX,EAX
6FC54E31   . 0F84 60010000  JE D2GAME.6FC54F97
6FC54E37   . 6A 00          PUSH 0
6FC54E39   . 6A 16          PUSH 16
6FC54E3B   . 56             PUSH ESI
6FC54E3C   . E8 6F680C00    CALL <JMP.&D2Common.#10521>
6FC54E41   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54E44   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54E47   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54E4A   . B8 1F85EB51    MOV EAX,51EB851F
6FC54E4F   . F7E9           IMUL ECX
6FC54E51   . C1FA 05        SAR EDX,5
6FC54E54   . 8BC2           MOV EAX,EDX
6FC54E56   . C1E8 1F        SHR EAX,1F
6FC54E59   . 03D0           ADD EDX,EAX
6FC54E5B   . 83FA 02        CMP EDX,2
6FC54E5E   . 7D 05          JGE SHORT D2GAME.6FC54E65
6FC54E60   . BA 02000000    MOV EDX,2
6FC54E65   > 6A 00          PUSH 0
6FC54E67   . 52             PUSH EDX
6FC54E68   . 6A 16          PUSH 16
6FC54E6A   . 56             PUSH ESI
6FC54E6B   . E8 386A0C00    CALL <JMP.&D2Common.#10517>
6FC54E70   . 6A 00          PUSH 0
6FC54E72   . 6A 15          PUSH 15
6FC54E74   . 56             PUSH ESI
6FC54E75   . E8 36680C00    CALL <JMP.&D2Common.#10521>
6FC54E7A   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54E7D   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54E80   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54E83   . B8 1F85EB51    MOV EAX,51EB851F
6FC54E88   . F7E9           IMUL ECX
6FC54E8A   . C1FA 05        SAR EDX,5
6FC54E8D   . 8BCA           MOV ECX,EDX
6FC54E8F   . C1E9 1F        SHR ECX,1F
6FC54E92   . 03D1           ADD EDX,ECX
6FC54E94   . 3BD5           CMP EDX,EBP
6FC54E96   . 7D 02          JGE SHORT D2GAME.6FC54E9A
6FC54E98   . 8BD5           MOV EDX,EBP
6FC54E9A   > 6A 00          PUSH 0
6FC54E9C   . 52             PUSH EDX
6FC54E9D   . 6A 15          PUSH 15
6FC54E9F   . 56             PUSH ESI
6FC54EA0   . E8 036A0C00    CALL <JMP.&D2Common.#10517>
6FC54EA5   . 6A 00          PUSH 0
6FC54EA7   . 6A 18          PUSH 18
6FC54EA9   . 56             PUSH ESI
6FC54EAA   . E8 01680C00    CALL <JMP.&D2Common.#10521>
6FC54EAF   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54EB2   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54EB5   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54EB8   . B8 1F85EB51    MOV EAX,51EB851F
6FC54EBD   . F7E9           IMUL ECX
6FC54EBF   . C1FA 05        SAR EDX,5
6FC54EC2   . 8BC2           MOV EAX,EDX
6FC54EC4   . C1E8 1F        SHR EAX,1F
6FC54EC7   . 03D0           ADD EDX,EAX
6FC54EC9   . 83FA 02        CMP EDX,2
6FC54ECC   . 7D 05          JGE SHORT D2GAME.6FC54ED3
6FC54ECE   . BA 02000000    MOV EDX,2
6FC54ED3   > 6A 00          PUSH 0
6FC54ED5   . 52             PUSH EDX
6FC54ED6   . 6A 18          PUSH 18
6FC54ED8   . 56             PUSH ESI
6FC54ED9   . E8 CA690C00    CALL <JMP.&D2Common.#10517>
6FC54EDE   . 6A 00          PUSH 0
6FC54EE0   . 6A 17          PUSH 17
6FC54EE2   . 56             PUSH ESI
6FC54EE3   . E8 C8670C00    CALL <JMP.&D2Common.#10521>
6FC54EE8   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54EEB   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54EEE   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54EF1   . B8 1F85EB51    MOV EAX,51EB851F
6FC54EF6   . F7E9           IMUL ECX
6FC54EF8   . C1FA 05        SAR EDX,5
6FC54EFB   . 8BCA           MOV ECX,EDX
6FC54EFD   . C1E9 1F        SHR ECX,1F
6FC54F00   . 03D1           ADD EDX,ECX
6FC54F02   . 3BD5           CMP EDX,EBP
6FC54F04   . 7D 02          JGE SHORT D2GAME.6FC54F08
6FC54F06   . 8BD5           MOV EDX,EBP
6FC54F08   > 6A 00          PUSH 0
6FC54F0A   . 52             PUSH EDX
6FC54F0B   . 6A 17          PUSH 17
6FC54F0D   . 56             PUSH ESI
6FC54F0E   . E8 95690C00    CALL <JMP.&D2Common.#10517>
6FC54F13   . 56             PUSH ESI
6FC54F14   . E8 676A0C00    CALL <JMP.&D2Common.#10759>
6FC54F19   . 85C0           TEST EAX,EAX
6FC54F1B   . 0F84 B7000000  JE D2GAME.6FC54FD8
6FC54F21   . 6A 00          PUSH 0
6FC54F23   . 68 9F000000    PUSH 9F
6FC54F28   . 56             PUSH ESI
6FC54F29   . E8 4C6A0C00    CALL <JMP.&D2Common.#10520>
6FC54F2E   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54F31   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54F34   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54F37   . B8 1F85EB51    MOV EAX,51EB851F
6FC54F3C   . F7E9           IMUL ECX
6FC54F3E   . C1FA 05        SAR EDX,5
6FC54F41   . 8BC2           MOV EAX,EDX
6FC54F43   . C1E8 1F        SHR EAX,1F
6FC54F46   . 03D0           ADD EDX,EAX
6FC54F48   . 83FA 02        CMP EDX,2
6FC54F4B   . 7D 05          JGE SHORT D2GAME.6FC54F52
6FC54F4D   . BA 02000000    MOV EDX,2
6FC54F52   > 6A 00          PUSH 0
6FC54F54   . 52             PUSH EDX
6FC54F55   . 68 9F000000    PUSH 9F
6FC54F5A   . 56             PUSH ESI
6FC54F5B   . E8 48690C00    CALL <JMP.&D2Common.#10517>
6FC54F60   . 6A 00          PUSH 0
6FC54F62   . 68 A0000000    PUSH 0A0
6FC54F67   . 56             PUSH ESI
6FC54F68   . E8 0D6A0C00    CALL <JMP.&D2Common.#10520>
6FC54F6D   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54F70   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54F73   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54F76   . B8 1F85EB51    MOV EAX,51EB851F
6FC54F7B   . F7E9           IMUL ECX
6FC54F7D   . C1FA 05        SAR EDX,5
6FC54F80   . 8BCA           MOV ECX,EDX
6FC54F82   . C1E9 1F        SHR ECX,1F
6FC54F85   . 03D1           ADD EDX,ECX
6FC54F87   . 3BD5           CMP EDX,EBP
6FC54F89   . 7D 02          JGE SHORT D2GAME.6FC54F8D
6FC54F8B   . 8BD5           MOV EDX,EBP
6FC54F8D   > 6A 00          PUSH 0
6FC54F8F   . 52             PUSH EDX
6FC54F90   . 68 A0000000    PUSH 0A0
6FC54F95   . EB 3B          JMP SHORT D2GAME.6FC54FD2
6FC54F97   > 6A 32          PUSH 32
6FC54F99   . 56             PUSH ESI
6FC54F9A   . E8 2D690C00    CALL <JMP.&D2Common.#10731>
6FC54F9F   . 85C0           TEST EAX,EAX
6FC54FA1   . 74 39          JE SHORT D2GAME.6FC54FDC
6FC54FA3   . 6A 00          PUSH 0
6FC54FA5   . 6A 1F          PUSH 1F
6FC54FA7   . 56             PUSH ESI
6FC54FA8   . E8 03670C00    CALL <JMP.&D2Common.#10521>
6FC54FAD   . 8D0440         LEA EAX,DWORD PTR DS:[EAX+EAX*2]
6FC54FB0   . 8D0480         LEA EAX,DWORD PTR DS:[EAX+EAX*4]
6FC54FB3   . 8D0C80         LEA ECX,DWORD PTR DS:[EAX+EAX*4]
6FC54FB6   . B8 1F85EB51    MOV EAX,51EB851F
6FC54FBB   . F7E9           IMUL ECX
6FC54FBD   . C1FA 05        SAR EDX,5
6FC54FC0   . 8BC2           MOV EAX,EDX
6FC54FC2   . C1E8 1F        SHR EAX,1F
6FC54FC5   . 03D0           ADD EDX,EAX
6FC54FC7   . 85D2           TEST EDX,EDX
6FC54FC9   . 7F 02          JG SHORT D2GAME.6FC54FCD
6FC54FCB   . 8BD5           MOV EDX,EBP
6FC54FCD   > 6A 00          PUSH 0
6FC54FCF   . 52             PUSH EDX
6FC54FD0   . 6A 1F          PUSH 1F
6FC54FD2   > 56             PUSH ESI
6FC54FD3   . E8 D0680C00    CALL <JMP.&D2Common.#10517>
6FC54FD8   > 896C24 10      MOV DWORD PTR SS:[ESP+10],EBP
6FC54FDC   > 56             PUSH ESI
6FC54FDD   . E8 D46C0C00    CALL <JMP.&D2Common.#10813>
6FC54FE2   . 8BF8           MOV EDI,EAX
6FC54FE4   . 85FF           TEST EDI,EDI
6FC54FE6   . 7C 64          JL SHORT D2GAME.6FC5504C
6FC54FE8   . 83FF 07        CMP EDI,7
6FC54FEB   . 7D 5F          JGE SHORT D2GAME.6FC5504C
6FC54FED   . 57             PUSH EDI
6FC54FEE   . E8 BD6C0C00    CALL <JMP.&D2Common.#11042>
6FC54FF3   . 8BE8           MOV EBP,EAX
6FC54FF5   . 85ED           TEST EBP,EBP
6FC54FF7   . 7E 53          JLE SHORT D2GAME.6FC5504C
6FC54FF9   . 6A 00          PUSH 0
6FC54FFB   . 57             PUSH EDI
6FC54FFC   . E8 A96C0C00    CALL <JMP.&D2Common.#11041>
6FC55001   . 8BF8           MOV EDI,EAX
6FC55003   . 8B4C24 14      MOV ECX,DWORD PTR SS:[ESP+14]
6FC55007   . 56             PUSH ESI
6FC55008   . 8B59 0C        MOV EBX,DWORD PTR DS:[ECX+C]
6FC5500B   . E8 686B0C00    CALL <JMP.&D2Common.#10875>
6FC55010   . 66:85C0        TEST AX,AX
6FC55013   . 75 17          JNZ SHORT D2GAME.6FC5502C
6FC55015   . 55             PUSH EBP                                 ; /Arg2
6FC55016   . 57             PUSH EDI                                 ; |Arg1
6FC55017   . 8BD3           MOV EDX,EBX                              ; |
6FC55019   . 8BCE           MOV ECX,ESI                              ; |
6FC5501B   . E8 40000000    CALL D2GAME.6FC55060                     ; \D2GAME.6FC55060
6FC55020   . 8B4424 10      MOV EAX,DWORD PTR SS:[ESP+10]
6FC55024   . 5D             POP EBP
6FC55025   . 5B             POP EBX
6FC55026   . 5F             POP EDI
6FC55027   . 5E             POP ESI
6FC55028   . 83C4 08        ADD ESP,8
6FC5502B   . C3             RETN
6FC5502C   > 8B4424 14      MOV EAX,DWORD PTR SS:[ESP+14]
6FC55030   . F680 80000000 >TEST BYTE PTR DS:[EAX+80],20
6FC55037   . 74 05          JE SHORT D2GAME.6FC5503E
6FC55039   . 8B40 0C        MOV EAX,DWORD PTR DS:[EAX+C]
6FC5503C   . EB 02          JMP SHORT D2GAME.6FC55040
6FC5503E   > 33C0           XOR EAX,EAX
6FC55040   > 50             PUSH EAX                                 ; /Arg3
6FC55041   . 55             PUSH EBP                                 ; |Arg2
6FC55042   . 57             PUSH EDI                                 ; |Arg1
6FC55043   . 8BD3           MOV EDX,EBX                              ; |
6FC55045   . 8BCE           MOV ECX,ESI                              ; |
6FC55047   . E8 04D6FFFF    CALL D2GAME.6FC52650                     ; \D2GAME.6FC52650
6FC5504C   > 8B4424 10      MOV EAX,DWORD PTR SS:[ESP+10]
6FC55050   . 5D             POP EBP
6FC55051   . 5B             POP EBX
6FC55052   . 5F             POP EDI
6FC55053   . 5E             POP ESI
6FC55054   . 83C4 08        ADD ESP,8
6FC55057   . C3             RETN
So is there anyone kind enough to find the offsets for throw dmg granted by StrBonus and DexBonus for me

Thanks in advance.

Post Reply

Return to “Code Editing”