Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding defense multiplier to ID.
#3
I have no idea where you should place the code, but I think this should do what you want (didn't test :P).
    ASM-Code:
;some code here
0  mov eax,dword ptr ds:[esi+edi*4+194h]  ;you initialize by setting the object array pointer to eax
1  cmp dword ptr ds:[eax+368h],46           ;compare id with 70
2  JE .add2.5armoraddress                       ;if equal, jmp to where the defending thing is changed
3  cmp dword ptr ds:[eax+368h],47
4  JE .add3.0armoraddress
5  cmp dword ptr ds:[eax+368h],48
6  JE .add3.5armoraddress
7 ;some more code here

add2.5armoraddress:
    ASM-Code:
100  mov dword ptr ds:[eax+340h], FA      ;here, you actually change the defense to 250
101  jmp 3

add3.0armoraddress:
    ASM-Code:
102  mov dword ptr ds:[eax+340h], 12C
103  jmp 5

add3.5armoraddress:
    ASM-Code:
104 mov dword ptr ds:[eax+340h], 15E
105 jmp 7
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:


Messages In This Thread
Adding defense multiplier to ID. - by bashscrazy - 05-17-2014, 01:18 AM
RE: Adding defense multiplier to ID. - by A-Man - 05-18-2014, 07:56 AM
RE: Adding defense multiplier to ID. - by Boop - 05-20-2014, 06:16 PM
RE: Adding defense multiplier to ID. - by A-Man - 05-22-2014, 07:22 PM
RE: Adding defense multiplier to ID. - by A-Man - 05-23-2014, 05:12 AM
RE: Adding defense multiplier to ID. - by A-Man - 05-23-2014, 04:39 PM
RE: Adding defense multiplier to ID. - by Boop - 05-23-2014, 05:41 PM
RE: Adding defense multiplier to ID. - by A-Man - 05-24-2014, 11:42 AM
RE: Adding defense multiplier to ID. - by Dragon5 - 05-24-2014, 02:17 PM
RE: Adding defense multiplier to ID. - by A-Man - 05-24-2014, 02:54 PM



Users browsing this thread: 1 Guest(s)