A1Q3 - Change the reward for rescuing Cain

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
devurandom
Forum Regular
Angel
Posts: 795
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

A1Q3 - Change the reward for rescuing Cain

Post by devurandom » Mon Sep 09, 2019 11:47 am

Reference:
http://d2mods.info/forum/viewtopic.php?t=25037
http://d2mods.info/forum/viewtopic.php?t=41509
============================================================
- Change the reward for rescuing Cain -


[1.13c]

Code: Select all

[1.13c] D2Game.0x66E85

00066E85   B8 0C000000      MOV EAX,0C			; ilvl normal 12 or you get rare
00066E8A   B9 07000000      MOV ECX,7			; Quality Unique for normal = 7
00066E8F  ▼74 0A            JE SHORT 00066E9B
00066E91   4E               DEC ESI
00066E92  ▼75 11            JNE SHORT 00066EA5
00066E94   B8 4B000000      MOV EAX,4B			; ilvl Hell = 75
00066E99  ▼EB 05            JMP SHORT 00066EA0
00066E9B   B8 32000000      MOV EAX,32			; ilvl NM = 50
00066EA0   B9 07000000      MOV ECX,7			; Quality Unique NM & Hell = 7
[1.13d]

Code: Select all

[1.13d] - D2Game.0x135C5

000135C5   B8 0C000000      MOV EAX,0C			; ilvl normal 12 or you get rare
000135CA   B9 07000000      MOV ECX,7			; Quality Unique for normal = 7
000135CF  ▼74 0A            JE SHORT 000135DB
000135D1   4E               DEC ESI
000135D2  ▼75 11            JNE SHORT 000135E5
000135D4   B8 4B000000      MOV EAX,4B			; ilvl Hell = 75
000135D9  ▼EB 05            JMP SHORT 000135E0
000135DB   B8 32000000      MOV EAX,32			; ilvl NM = 50
000135E0   B9 07000000      MOV ECX,7			; Quality Unique NM & Hell = 7
[1.14d]

Code: Select all

[1.14d] - Game.0x1923E8

001923E8   BB 12000000      MOV EBX,0C			; ilvl normal 12 or you get rare
001923ED   8D53 FB          LEA EDX,[EBX-5]		; Quality Unique for normal = 7
001923F0  ▼74 0A            JE SHORT 001923FC
001923F2   83E8 01          SUB EAX,1
001923F5  ▼75 0F            JNE SHORT 00192406
001923F7   8D5A 44          LEA EBX,[EDX+44]		; ilvl Hell = 75
001923FA  ▼EB 05            JMP SHORT 00192401
001923FC   BB 32000000      MOV EBX,32			; ilvl NM = 50
00192401   BA 07000000      MOV EDX,7			; Quality Unique NM & Hell = 7
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
b1n
Posts: 58
Joined: Mon Jul 18, 2016 10:55 pm
Contact:

Re: A1Q3 - Change the reward for rescuing Cain

Post by b1n » Mon Sep 09, 2019 2:18 pm

Thank you!

What about the amount of rings?

I've testing this but doesn't work

Code: Select all

6FC86EA5    6A 01           PUSH 1			;Quantity
TO

Code: Select all

6FC86EA5    6A 03           PUSH 3			;Quantity
Last edited by b1n on Tue Sep 10, 2019 1:25 am, edited 1 time in total.
b1n

User avatar
devurandom
Forum Regular
Angel
Posts: 795
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: A1Q3 - Change the reward for rescuing Cain

Post by devurandom » Mon Sep 09, 2019 7:37 pm

That's a BOOL that controls if the item is placed in inventory or dropped to ground.
There isn't a quantity value for D2CreateRewardItem D2Game.6FC56470 [1.13c]

You'd have to repeat the entire call setup 2 extra times to get 3 items.
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

Post Reply

Return to “Code Editing”