Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Effect only armor
#1
I want to make a custom armors for Freeze and Firen, protecting them only from theirs elemental attacks.

Is there a way to make them not work against regular punches?
Putting 0 here (as for effect: 0) just breaks the armor completely.

Code:
0042E7F1 |. 83F8 02 |cmp eax,2←←←←←←←←←←←←←←←can't defend which effect

And/or is there a more efficient way to do it, instead of listing all of the effects/ids which you can't defend, just write a line "defend against effect x"?
Reply
Thanks given by:
#2
Can you upload the exe you are using? 0042E7F1 doesn't line up with any exe that I have. It shouldn't be *too* hard...
[Image: doty7Xn.gif]

10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.


Reply
Thanks given by:
#3
Quote:
Elemental armor (Click to View)
I did it by accident

Code:
004463C6  > \83F9 07      CMP ECX,7
004463C9  .  0F85 A8000000 JNE 00446477
004463CF  .  8B84BE 940100 MOV EAX,DWORD PTR DS:[EDI*4+ESI+194]
004463D6  .  83B8 B8000000 CMP DWORD PTR DS:[EAX+0B8],1
004463DD  .^ 0F8F EB83FEFF JG 0042E7CE
004463E3  .  8B4CE4 0C    MOV ECX,DWORD PTR SS:[ESP+0C]
004463E7  .  8B49 2C      MOV ECX,DWORD PTR DS:[ECX+2C]
004463EA  .  B8 67666666  MOV EAX,66666667
004463EF  .  F7E9          IMUL ECX
004463F1  .  C1FA 02      SAR EDX,2
004463F4  .  89D0          MOV EAX,EDX
004463F6  .  C1E8 1F      SHR EAX,1F
004463F9  .  01D0          ADD EAX,EDX
004463FB  .  83F8 01      CMP EAX,1
004463FE  .^ 0F84 CA83FEFF JE 0042E7CE
00446404      83F8 03      CMP EAX,3
00446407  .^ 0F84 C183FEFF JE 0042E7CE
0044640D  .  83F8 05      CMP EAX,5
00446410  .^ 0F84 B883FEFF JE 0042E7CE
00446416  .  83F8 17      CMP EAX,17
00446419  .^ 0F84 AF83FEFF JE 0042E7CE
0044641F  .  83F8 1E      CMP EAX,1E
00446422  .^ 0F84 A683FEFF JE 0042E7CE
00446428      83F9 00      CMP ECX,0
0044642B  .^ 0F84 9D83FEFF JE 0042E7CE
00446431  .  83F9 01      CMP ECX,1
00446434  .^ 0F84 9483FEFF JE 0042E7CE
0044643A      83F9 03      CMP ECX,3
0044643D  .^ 0F84 8B83FEFF JE 0042E7CE
00446443  .  83F9 05      CMP ECX,5
00446446  .^ 0F84 8283FEFF JE 0042E7CE
0044644C  .  83F9 17      CMP ECX,17
0044644F  .^ 0F84 7983FEFF JE 0042E7CE
00446455  .  83F9 1E      CMP ECX,1E
00446458  .^ 0F84 7083FEFF JE 0042E7CE
0044645E  .  8B849E 940100 MOV EAX,DWORD PTR DS:[EBX*4+ESI+194]
00446465  .  8B90 68030000 MOV EDX,DWORD PTR DS:[EAX+368]
0044646B  .  8B82 F4060000 MOV EAX,DWORD PTR DS:[EDX+6F4]
00446471  .^ E9 7C99FEFF  JMP 0042FDF2

Skipping cmp eax 0 and using only cmp ecx 0 makes the armor ignore regular hits properly

This is the proper address
Code:
0042E721
The one I posted is from this thread, they all are a bit off

If you can explain why it works, or make an actual "ignore only effect: x" armor, I'd appreciate
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)