[1.13d] Make 'attack' always hit
Moderator: Nizari
- imakeigloos_pat
- Posts: 91
- Joined: Wed Dec 10, 2008 12:13 am
[1.13d] Make 'attack' always hit
Hi,
I have been able to make the missile thrown from a javelin to be able to always hit a monster by removing the '1' from the 'ToHit' column in missiles.txt. However, I would like to do this with the normal skill 'attack' as well, thus making normal melee attacks always hit.
I've searched through many of the text files now and the forums, but it has led me nowhere. Does anyone know how one would do this?
Appreciated,
Patrik
I have been able to make the missile thrown from a javelin to be able to always hit a monster by removing the '1' from the 'ToHit' column in missiles.txt. However, I would like to do this with the normal skill 'attack' as well, thus making normal melee attacks always hit.
I've searched through many of the text files now and the forums, but it has led me nowhere. Does anyone know how one would do this?
Appreciated,
Patrik
Re: [1.13d] Make 'attack' always hit
Hello, I can't check because I'm not at home atm. However, have you tried using Concentrate's srvdofunc? It allows you to assign a state with bonuses on attack. You could try to create a dummy state that gives you tons of AR and ignore defense
Terms of Service
My tutorials:
AIs:
Fixing the Shadow Master's AI
The Shadow Master's AI Compendium
The Shadow Warrior's AI Compendium
The DruidBear's AI Compendium
The DruidWolf's AI Compendium
The Vines AI Compendium
Use every AI as Minion for the Player [Thanks to Necrolis]
Adding simple commands to the Shadow Master's AI
Skills:
Fixing SrvDoFunc 49
Creating a proper summoning skill for enemy monsters
Revive super uniques and bosses
Misc:
Changing reanimated monsters life span [thanks to Necrolis]
My resources:
Ogodei's Diablo I Monster Pack - Final
Ogodei's Diablo I Item Pack v1.00
Ogodei's Autumnal Act I
My tutorials:
AIs:
Fixing the Shadow Master's AI
The Shadow Master's AI Compendium
The Shadow Warrior's AI Compendium
The DruidBear's AI Compendium
The DruidWolf's AI Compendium
The Vines AI Compendium
Use every AI as Minion for the Player [Thanks to Necrolis]
Adding simple commands to the Shadow Master's AI
Skills:
Fixing SrvDoFunc 49
Creating a proper summoning skill for enemy monsters
Revive super uniques and bosses
Misc:
Changing reanimated monsters life span [thanks to Necrolis]
My resources:
Ogodei's Diablo I Monster Pack - Final
Ogodei's Diablo I Item Pack v1.00
Ogodei's Autumnal Act I
- imakeigloos_pat
- Posts: 91
- Joined: Wed Dec 10, 2008 12:13 am
Re: [1.13d] Make 'attack' always hit
Thanks for your help, I will try that out.
However, one thing that comes to mind quickly is that the character level and monster level in the equation is not dealt with then, thus leaving me not hitting monsters which are higher level than me. I wish to be able to hit high level monsters as well, such as Guided Arrow would.¨
Edit:
I have not been able to get this to work, so I guess I will have do this in form of a code edit. Necrolis helped me in viewtopic.php?f=8&t=59863 with 1.10f, I'll see if I can pick up on that.
However, one thing that comes to mind quickly is that the character level and monster level in the equation is not dealt with then, thus leaving me not hitting monsters which are higher level than me. I wish to be able to hit high level monsters as well, such as Guided Arrow would.¨
Edit:
I have not been able to get this to work, so I guess I will have do this in form of a code edit. Necrolis helped me in viewtopic.php?f=8&t=59863 with 1.10f, I'll see if I can pick up on that.
- devurandom
- Angel
- Posts: 897
- Joined: Sat Mar 07, 2015 9:07 pm
Re: [1.13d] Make 'attack' always hit
For 1.13d nop these lines in D2Game.dll
ported from the original edit in 1.10f
Code: Select all
6FCAAFAE 83F8 01 CMP EAX,1
6FCAAFB1 75 7B JNE SHORT 6FCAB02E
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..
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
Re: [1.13d] Make 'attack' always hit
Hello, I tried this for 1.13c and it doesn't seem to affect anything.devurandom" wrote:For 1.13d nop these lines in D2Game.dll
ported from the original edit in 1.10fCode: Select all
6FCAAFAE 83F8 01 CMP EAX,1 6FCAAFB1 75 7B JNE SHORT 6FCAB02E
I basically tried NOPing every function that had JNE SHORT command and only reverting it back when the game crashes, but it didn't seem to affect the Attack Rating mechanic.
I've looking for a solution for a "100% melee hit chance" for years now, with no success. But, I greatly appreciate your post Devurandom, it at least gives me something to go on.
- devurandom
- Angel
- Posts: 897
- Joined: Sat Mar 07, 2015 9:07 pm
Re: [1.13d] Make 'attack' always hit
csguak" wrote:
Hello, I tried this for 1.13c and it doesn't seem to affect anything.
I basically tried NOPing every function that had JNE SHORT command and only reverting it back when the game crashes, but it didn't seem to affect the Attack Rating mechanic.
I've looking for a solution for a "100% melee hit chance" for years now, with no success. But, I greatly appreciate your post Devurandom, it at least gives me something to go on.
for 1.13c you should nop this out
Code: Select all
6FCFCE8E 83F8 01 CMP EAX,1
6FCFCE91 75 7B JNE SHORT 6FCFCF0E
matches up to the 1.10 function posted by necrolis for 1.10.
It seems to work in short testing but hits can still be blocked, as mentioned in the original post.
viewtopic.php?f=8&t=59863
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..
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
Re: [1.13d] Make 'attack' always hit
ahh okay thank you.
I made a mistake of looking for JNZ SHORT functions instead of JNE.
Edit: For some reason I am not able to find any JNE function inside d2game.dll LOL
There are plenty of these,
But, I wasn't able to locate a single JNE function...
Do you remember where this particular function was being held in d2game.dll? Is it located around the middle of the code?
Here is hoping that I finally track down this mechanic once and for all
I made a mistake of looking for JNZ SHORT functions instead of JNE.
Edit: For some reason I am not able to find any JNE function inside d2game.dll LOL
There are plenty of these,
But, I wasn't able to locate a single JNE function...
Do you remember where this particular function was being held in d2game.dll? Is it located around the middle of the code?
Here is hoping that I finally track down this mechanic once and for all
Last edited by csguak on Wed Aug 30, 2017 5:04 am, edited 1 time in total.
- devurandom
- Angel
- Posts: 897
- Joined: Sat Mar 07, 2015 9:07 pm
Re: [1.13d] Make 'attack' always hit
Ollydbg can interpret the same opcode differently in some situations. I use version 2.01 latest.
if your not sure.. calculate the offsets for whats posted above.
Cheers!
if your not sure.. calculate the offsets for whats posted above.
Cheers!
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..
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
- Necrolis
- Throne
- Posts: 9125
- Joined: Sat Mar 25, 2006 1:22 pm
- Location: The Land of the Dead
- Contact:
Re: [1.13d] Make 'attack' always hit
JNE and JNZ are the same opcode; for jumps there are two equivalent sets of mnemonics that get used, you should be able to toggle between them in the options (one set relates the the semantic function "NOT EQUAL", the other relates to the EFlag that is tested by the jump, "NOT Z").csguak" wrote:Edit: For some reason I am not able to find any JNE function inside d2game.dll LOL
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
Re: [1.13d] Make 'attack' always hit
oh by the way, I NOPed every function that hadimakeigloos_pat" wrote:
Edit:
I have not been able to get this to work, so I guess I will have do this in form of a code edit. Necrolis helped me in viewtopic.php?f=8&t=59863 with 1.10f, I'll see if I can pick up on that.
Code: Select all
CMP DWORD PTR SS:[EBP],1
JNZ SHORT
Also my lvl 1 character still could not hit Hell fallens.
I am pretty sure "chance to hit" function is hiding somewhere else.
In the mean time, you can increase the 95% cap to 100% using this method as Devurandom helped us out two years ago.
viewtopic.php?f=8&t=62439
- imakeigloos_pat
- Posts: 91
- Joined: Wed Dec 10, 2008 12:13 am
Re: [1.13d] Make 'attack' always hit
Thanks for your help devurandom and Necrolis. I just got back from vacation and got some time to test this, but unfortunately this does not work.
I remember Necrolis had to check for a second place to edit as well but never came back to me. Maybe there is more that needs to be done here?
I remember Necrolis had to check for a second place to edit as well but never came back to me. Maybe there is more that needs to be done here?