Andariel Gem Drop 1.13

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
User avatar
b1n
Posts: 64
Joined: Mon Jul 18, 2016 10:55 pm
Contact:

Andariel Gem Drop 1.13

Post by b1n » Fri Oct 15, 2021 4:43 pm

Has anyone ported this code to 1.13?
In my mod gems has a higher value, I want to get rid of Andariel dropping gems

Comprehensive Quest Code and Quest Reward Code Listing
A1Q6 - Andariel gem drop

Code: Select all

6FC9E9D7   |.  C74424 10 [color=#6400ff]02[/color]000000        MOV DWORD PTR SS:[ESP+10],2 <--- number of chipped gems
6FC9E9DF   |>  8B4E 04                   /MOV ECX,DWORD PTR DS:[ESI+4]
6FC9E9E2   |.  E8 9956FFFF               |CALL D2Game.6FC94080
6FC9E9E7   |.  8BC8                      |MOV ECX,EAX
6FC9E9E9   |.  BA C590C66A               |MOV EDX,6AC690C5
6FC9E9EE   |.  33ED                      |XOR EBP,EBP
6FC9E9F0   |.  8B01                      |MOV EAX,DWORD PTR DS:[ECX]
6FC9E9F2   |.  8B59 04                   |MOV EBX,DWORD PTR DS:[ECX+4]
6FC9E9F5   |.  F7E2                      |MUL EDX
6FC9E9F7   |.  03C3                      |ADD EAX,EBX
6FC9E9F9   |.  55                        |PUSH EBP
6FC9E9FA   |.  13D5                      |ADC EDX,EBP
6FC9E9FC   |.  8901                      |MOV DWORD PTR DS:[ECX],EAX
6FC9E9FE   |.  8951 04                   |MOV DWORD PTR DS:[ECX+4],EDX
6FC9EA01   |.  33D2                      |XOR EDX,EDX
6FC9EA03   |.  B9 07000000               |MOV ECX,7
6FC9EA08   |.  6A FF                     |PUSH -1
6FC9EA0A   |.  F7F1                      |DIV ECX
6FC9EA0C   |.  8B47 08                   |MOV EAX,DWORD PTR DS:[EDI+8]
6FC9EA0F   |.  55                        |PUSH EBP
6FC9EA10   |.  8B0C95 [color=#6400ff]0040D36F[/color]           |MOV ECX,DWORD PTR DS:[EDX*4+6FD34000] <--- chippie table
6FC9EA17   |.  8D5424 20                 |LEA EDX,DWORD PTR SS:[ESP+20]
6FC9EA1B   |.  8988 B8000000             |MOV DWORD PTR DS:[EAX+B8],ECX
6FC9EA21   |.  8B4E 04                   |MOV ECX,DWORD PTR DS:[ESI+4]
6FC9EA24   |.  52                        |PUSH EDX
6FC9EA25   |.  8B57 08                   |MOV EDX,DWORD PTR DS:[EDI+8]
6FC9EA28   |.  6A 02                     |PUSH 2
6FC9EA2A   |.  E8 9114FBFF               |CALL D2Game.6FC4FEC0
6FC9EA2F   |.  8B4424 10                 |MOV EAX,DWORD PTR SS:[ESP+10]
6FC9EA33   |.  48                        |DEC EAX
6FC9EA34   |.  894424 10                 |MOV DWORD PTR SS:[ESP+10],EAX
6FC9EA38   |.^ 75 A5                     \JNZ SHORT D2Game.6FC9E9DF
6FC9EA3A   |.  8B4E 04                   MOV ECX,DWORD PTR DS:[ESI+4]
6FC9EA3D   |.  E8 3E56FFFF               CALL D2Game.6FC94080
6FC9EA42   |.  8BC8                      MOV ECX,EAX
6FC9EA44   |.  BA C590C66A               MOV EDX,6AC690C5
6FC9EA49   |.  55                        PUSH EBP 
6FC9EA4A   |.  6A FF                     PUSH -1
6FC9EA4C   |.  8B01                      MOV EAX,DWORD PTR DS:[ECX]
6FC9EA4E   |.  8B59 04                   MOV EBX,DWORD PTR DS:[ECX+4]
6FC9EA51   |.  F7E2                      MUL EDX
6FC9EA53   |.  03C3                      ADD EAX,EBX
6FC9EA55   |.  55                        PUSH EBP
6FC9EA56   |.  13D5                      ADC EDX,EBP
6FC9EA58   |.  8901                      MOV DWORD PTR DS:[ECX],EAX
6FC9EA5A   |.  8951 04                   MOV DWORD PTR DS:[ECX+4],EDX
6FC9EA5D   |.  33D2                      XOR EDX,EDX
6FC9EA5F   |.  B9 07000000               MOV ECX,7
6FC9EA64   |.  F7F1                      DIV ECX
6FC9EA66   |.  8B47 08                   MOV EAX,DWORD PTR DS:[EDI+8]
6FC9EA69   |.  8B0C95 [color=#6400ff]1C40D36F[/color]           MOV ECX,DWORD PTR DS:[EDX*4+6FD3401C] <--- std gem table
6FC9EA70   |.  8D5424 20                 LEA EDX,DWORD PTR SS:[ESP+20]
6FC9EA74   |.  8988 B8000000             MOV DWORD PTR DS:[EAX+B8],ECX
6FC9EA7A   |.  8B4E 04                   MOV ECX,DWORD PTR DS:[ESI+4]
6FC9EA7D   |.  52                        PUSH EDX
6FC9EA7E   |.  8B57 08                   MOV EDX,DWORD PTR DS:[EDI+8]
6FC9EA81   |.  6A 02                     PUSH 2
6FC9EA83   |.  E8 3814FBFF               CALL D2Game.6FC4FEC0
D2Evo

Post Reply

Return to “Code Editing”