Gates of Arimyth
http://forum.arimyth.com/

The Iron Maiden/Lifetap "Bug" on wands
http://forum.arimyth.com/viewtopic.php?f=11&t=3741
Page 1 of 1

Author:  PureRage-DoD [ Thu Apr 21, 2011 9:20 pm ]
Post subject:  The Iron Maiden/Lifetap "Bug" on wands

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.

Author:  Steel [ Fri Apr 22, 2011 3:20 am ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

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.

Author:  Verb [ Fri Apr 22, 2011 3:36 am ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

PureRage, what program do you use to open the DLL files?

Author:  Steel [ Fri Apr 22, 2011 4:00 am ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

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

Author:  PureRage-DoD [ Fri Apr 22, 2011 8:27 am ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

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.

Author:  blue_myriddn [ Fri Apr 22, 2011 1:52 pm ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

will doing this create a crash for anyone who currently has one of these items?
can it be done with a realm inventory reset?

Author:  PureRage-DoD [ Fri Apr 22, 2011 2:01 pm ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

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.

Author:  blue_myriddn [ Fri Apr 22, 2011 2:22 pm ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

ok thx

Author:  PureRage-DoD [ Fri Apr 22, 2011 3:15 pm ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

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?

Author:  Steel [ Fri Apr 22, 2011 6:29 pm ]
Post subject:  Re: The Iron Maiden/Lifetap "Bug" on wands

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/