1.13c - Ring Rewards [solved]

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

Aught
Junior Member
Champion of the Light
Posts: 442
Joined: Mon Nov 21, 2011 6:12 pm
Location: Russia
Russia

1.13c - Ring Rewards [solved]

Post by Aught » Wed Jan 02, 2013 4:41 pm

So, I'm pwned by this rewards :-|

I have this code for akara's reward:

Code: Select all

File E:\Diablo II\D2Game.dll

00066E9B   \B8 1E000000     MOV EAX,1E
00066EA0    B9 07000000     MOV ECX,7 - quality
00066EA5    6A 01           PUSH 2 -quantity
00066EA7    51              PUSH ECX
00066EA8    52              PUSH EDX
00066EA9    8B57 0C         MOV EDX,DWORD PTR DS:[EDI+0C]
00066EAC    B9 616D7520     MOV ECX,20756D61 -item code
00066EB1    E8 BAF5FCFF     CALL 00036470
00066EB6    8B47 0C         MOV EAX,DWORD PTR DS:[EDI+0C]
00066EB9    6A 04           PUSH 4
00066EBB    E8 60DCFCFF     CALL 00034B20
as you can see i changed quality to Unique, quantity and item code to amul to gain 2 uniq amulets. But I always gain 1 magic amul. The same is with rings. So what is wrong, guys? :mrgreen:
Maybe is there any code stuff for this that is needed to change?
Thanks.


Edit: also i tried to change MonCurseTable, i changed Weaken's ID to my own curse's ID but when mobs cast it, it does nothing :-|
Last edited by Aught on Sat Jan 12, 2013 2:14 pm, edited 1 time in total.

User avatar
tk_incorperate
Junior Member
Paladin
Posts: 186
Joined: Fri Dec 31, 2004 2:56 am

Re: 1.13c - Ring Rewards

Post by tk_incorperate » Sat Jan 12, 2013 4:47 am

Did you try to test the quest reward in Nightmare or Hell, or just Normal? I may be wrong, but I believe the quality/quantity in Normal is different, note in vanilla when you receive the reward in the two latter difficulties you'll get rare, yet in Normal you'll get magic.

User avatar
Necrolis
Senior Admin
Throne
Posts: 9125
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
South Africa

Hand-picked

Re: 1.13c - Ring Rewards

Post by Necrolis » Sat Jan 12, 2013 6:25 am

That function doesn't have a quantity param, you just changed the boolean that says whether the game can drop the item on the ground if there is no inv space...
Image
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal

Aught
Junior Member
Champion of the Light
Posts: 442
Joined: Mon Nov 21, 2011 6:12 pm
Location: Russia
Russia

Re: 1.13c - Ring Rewards

Post by Aught » Sat Jan 12, 2013 2:13 pm

thanks for this, guys, solved the problem :D
I found a code above this with GetDifficulty stat and level caps of reward item, so this all works as i wanted

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

Re: 1.13c - Ring Rewards [solved]

Post by b1n » Sun Sep 08, 2019 2:38 pm

Aught wrote:
Sat Jan 12, 2013 2:13 pm
thanks for this, guys, solved the problem :D
I found a code above this with GetDifficulty stat and level caps of reward item, so this all works as i wanted
Hello guys, relive this topic because I would like to understand this better because I had the same problem in the normal quest
Diablo II Evolution

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

Re: 1.13c - Ring Rewards [solved]

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

Created a new topic for others searching for this and uploaded my notes
viewtopic.php?t=66459
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..

Return to “Code Editing”