Login | Register


All times are UTC - 5 hours


It is currently Thu Mar 28, 2024 2:32 pm




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Thu Apr 21, 2011 9:20 pm 
Game Server Host
User avatar

Joined: Mon Aug 31, 2009 12:33 am
Posts: 4291
can be fixed pretty easily by swapping the original IM and tap line (that are no longer used by the nec atm). and the current necro lines. Then a quick hex edit of D2Game.dll:

############################################
F97A0 42 00 00 00 Amp
F97A4 48 00 00 00 Weaken
F97A8 4C 00 00 00 IM ; Change to A1 01 00 00
F97AC 52 00 00 00 Life Tap ;Change to A2 01 00 00
F97B0 57 00 00 00 Decrepify
F97B4 5B 00 00 00 Lower Resist
############################################

values are in hex 4C 00 00 00 for IM, would be changed to A1 01 00 00 (1A1 reversed and 1A1 = 417 (the skill ID the monster IM skill would be at))

lifetap would be changed to A2 01 00 00 (skill id 418)

Only a 30 second job to fix this.

_________________
Bron wrote:
There's no cure for being a cunt.


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 3:20 am 
User avatar

Joined: Thu Jan 14, 2010 6:02 pm
Posts: 1627
isn't that moncurse table? swapping these would allow deathknights etc use more skills, how about fixing AMP/LR? they cast some weird -1phys/res curses. Tobial's LR lower magic res etc.


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 3:36 am 

Joined: Mon Feb 21, 2011 11:47 am
Posts: 615
Location: Stockholm, Sweden
PureRage, what program do you use to open the DLL files?

_________________
Its always in the last place you look....


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 4:00 am 
User avatar

Joined: Thu Jan 14, 2010 6:02 pm
Posts: 1627
Quote:
PureRage, what program do you use to open the DLL files?
I'm not PR but since that's a Data section from d2game.dll it's the best to use hexedit tools - Xvi32 is free and easy to use. For code use ollydbg.
For example in ollydbg you have to add F97A0 to base (6FC30000 makes 6FD297A0) to get to this location


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 8:27 am 
Game Server Host
User avatar

Joined: Mon Aug 31, 2009 12:33 am
Posts: 4291
also yeh I use XVI32 for this kinda thing and olly for code.

You can use olly for this too and simply edit the binary directly. XVI32 is more user friendly for this generally though.

If you wanted toexpand the list so they usemore curses though you would need to change the routine that calls this table and change the jump to some free space in the data section soyou have more room.Theresno room to expand it whare it is atm.

_________________
Bron wrote:
There's no cure for being a cunt.


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 1:52 pm 
Moderator
User avatar

Joined: Fri Aug 07, 2009 10:48 am
Posts: 2432
will doing this create a crash for anyone who currently has one of these items?
can it be done with a realm inventory reset?

_________________
People who live in cinder block houses can throw whatever they want.


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 2:01 pm 
Game Server Host
User avatar

Joined: Mon Aug 31, 2009 12:33 am
Posts: 4291
well the curent items with + iron maiden (the working versions) will be changed to the +skill version that don't work. any item that spawns with the staffmods with +IM or Tap will function again. It would be easier to wait till a patch.

_________________
Bron wrote:
There's no cure for being a cunt.


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 2:22 pm 
Moderator
User avatar

Joined: Fri Aug 07, 2009 10:48 am
Posts: 2432
ok thx

_________________
People who live in cinder block houses can throw whatever they want.


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 3:15 pm 
Game Server Host
User avatar

Joined: Mon Aug 31, 2009 12:33 am
Posts: 4291
As a final note on this, I simply moved the pointers to 6 new lines in skills.txt,then copied those skillsonto those lines (amp, dec, lr etc) and added "Mon" to the name. You are then free to customise the curses cast by moncurse. Ie, lifetap can be changed to slowly drain your hp while it's active (the monster version that is). With something like:

Stat - hpregen
Calc - stat('maxhp'.accr)/750 (drains 100% of your current hp in 750 frames or 30 seconds. Lifetap is mostly useless as a monster curse they never steal any noticable life back while it's on anyway.

The monster version of weaken can be replaced directly with blood mana (moncurse has IM for melee's. Only fair casters have the same kinda thing)

Lower resist can be given some small - max resist penalty that would drop your max resists by 5 while its active.

monster decrepify could be given -defence.

etc. etc.
a few ideas to chew on.

Another thing I'm working on is trying to get "Cursed" Unique enemys to cast moncurse instead of amp all the time.
@Steel, any idea the offsets for Cursed MonUMod?

_________________
Bron wrote:
There's no cure for being a cunt.


Top
 Offline Profile  
Reply with quote  
 Post subject: Re: The Iron Maiden/Lifetap "Bug" on wands
PostPosted: Fri Apr 22, 2011 6:29 pm 
User avatar

Joined: Thu Jan 14, 2010 6:02 pm
Posts: 1627
http://phrozenkeep.hugelaser.com/forum/ ... hp?t=38216 - for more info contact Nefarius/Kingpin*, spawning monsters is complicated, many calls. Search for curses ids in d2common;/

*Kingping was today on irc, well, he's always on.

Edit: Interesting,
6FC6C674 6A 42 PUSH 42
That controls from which skill par5 is used. I've set it to 4c(76, iron maiden) and got -101 phys res but setting this to 4f(golem mast) was the same.
6FC6C5D0 BA 42000000 MOV EDX,42
Reads par3 from a skill for base duration of a curse.


Top
 Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron