I have no idea where you should place the code, but I think this should do what you want (didn't test :P).
add2.5armoraddress:
add3.0armoraddress:
add3.5armoraddress:
|
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]](http://s3.postimg.org/wedqxlk3n/signature.png)
A-Engine: A new beat em up game engine inspired by LF2. Coming soon
A-Engine Dev Blog - Update #8: Timeout

Chat
