[1.13c] Vendors sell runes and gems (PermStoreItem fix)

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
Razi198
Posts: 23
Joined: Fri Aug 16, 2019 11:49 am

[1.13c] Vendors sell runes and gems (PermStoreItem fix)

Post by Razi198 » Mon Sep 23, 2019 7:06 pm

Workaround without Code Editing:

In the Misc.txt:

To buy the desired items, set vendor Min and vendor Max columns to 1, for the corresponding item, example: AkaraMin and AkaraMax = 1
on Normal: You can buy them on Act 1,2 and can't buy them on Act 3,4,5

to buy all runes in Act 1,2 set level column for all runes: from 1 to 12

to buy the desired items on Nightmare and Hell:
set bitfield1 column to 1 and vendor MagicLvl to 98, and they will sell this item in the quantity from 0 to 3 in the All Acts on Nightmare and Hell. (ex.: AkaraMagicLvl = from 1 to 99)
If you set vendor MagicMin and vendor MagicMax to 1, they will fill all empty spots with this items on Nightmare and Hell.(ex.: AkaraMagicMin and AkaraMagicMax= 1)

With Code Editing:

Open D2Game.dll file in the OLLYDBG,
( example in this topic, but there it is not complete: viewtopic.php?p=440515#p440515 )

and this

Code: Select all

000BF39B   83FD 19          CMP EBP,19
000BF39E   7C 04            JL SHORT 000BF3A4
change to

Code: Select all

000BF39B   83FD 19          CMP EBP,19
000BF39E   EB 04            JMP SHORT 000BF3A4

and this

Code: Select all

000BF4C9   83FD 19          CMP EBP,19
000BF4CC   B8 01000000      MOV EAX,1
000BF4D1   7C 12            JL SHORT 000BF4E5
change to

Code: Select all

000BF4C9   83FD 19          CMP EBP,19
000BF4CC   B8 01000000      MOV EAX,1
000BF4D1   EB 12            JMP SHORT 000BF4E5

Or, open D2Game.dll in Hex editor and in the offset 000BF39E change 7C to EB
and in the offset 000BF4D1 change 7C to EB

Post Reply

Return to “Code Editing”