[1.13c] Force 4 random affixes on crafted items

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
strafano
Posts: 92
Joined: Mon Feb 19, 2018 12:43 am
Italy

[1.13c] Force 4 random affixes on crafted items

Post by strafano » Fri Oct 15, 2021 2:20 am

Is it possible to force 100% chance of 4 random affixes in crafted items?

jessedazebra
Junior Member
Paladin
Posts: 144
Joined: Sun Nov 11, 2012 9:46 am
Zimbabwe

Re: [1.13c] Force 4 random affixes on crafted items

Post by jessedazebra » Sat Oct 16, 2021 12:57 pm

.
Last edited by jessedazebra on Sat Feb 19, 2022 9:40 am, edited 1 time in total.

strafano
Posts: 92
Joined: Mon Feb 19, 2018 12:43 am
Italy

Re: [1.13c] Force 4 random affixes on crafted items

Post by strafano » Wed Oct 20, 2021 3:42 pm

jessedazebra wrote:
Sat Oct 16, 2021 12:57 pm
Unread post by jessedazebra » Sat Oct 16, 2021 12:57 pm

I believe it is, check this out, should be it. I made that edit long time ago, but didn't save the address. So I compared D2Game.dll from my mod with default one.
Code: Select all

00014C70 BF 01000000 MOV EDI,1
00014C75 7E 05 JLE SHORT 00014C7C
00014C77 BF 02000000 MOV EDI,2
00014C7C 83F8 32 CMP EAX,32
00014C7F 7E 05 JLE SHORT 00014C86
00014C81 BF 03000000 MOV EDI,3
00014C86 83F8 46 CMP EAX,46
Change to:
Code: Select all

00014C70 BF 04000000 MOV EDI,4
00014C75 7E 05 JLE SHORT 00014C7C
00014C77 BF 04000000 MOV EDI,4
00014C7C 83F8 32 CMP EAX,32
00014C7F 7E 05 JLE SHORT 00014C86
00014C81 BF 04000000 MOV EDI,4
00014C86 83F8 46 CMP EAX,46
It works ty!

Post Reply

Return to “Code Editing”