Little Fighter Empire - Forums
Third armor - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+--- Thread: Third armor (/showthread.php?tid=7961)



Third armor - Bender_EX - 06-16-2012

    ARMOR-Code:
Armor_Julian proc
		CMP ECX,52 
		je short return
		CMP ECX,53
		je short arm_0
		CMP ECX,40
        je short boss_knight
		CMP ECX,56
		je short return
		;CMP ECX,ID
		;je return2
		jmp return2
return: jmp dword ptr [ARMOR_JULIAN2]
 
;##customise the recover speed of armor below
arm_0:	mov eax,dword ptr ds:[esi+edi*4+194h]
		cmp dword ptr ds:[eax+0B8h],200			; the speed, was 15 for Julian
		jg return2
		mov eax,dword ptr ds:[esi+ebx*4+194h]
		mov eax,dword ptr ds:[eax+368h]
		mov eax,dword ptr ds:[eax+6F4h]
		cmp eax,0D6h
		je return2
		cmp eax,0D0h
		je return2
		jmp dword ptr [ARMOR_JULIAN3]
 
boss_knight:	mov eax,dword ptr ds:[esi+edi*4+194h]
		        cmp dword ptr ds:[eax+0B8h],70			; the speed, was 15 for Julian
	           	jg return2
	         	mov eax,dword ptr ds:[esi+ebx*4+194h]
	         	mov eax,dword ptr ds:[eax+368h]
	        	mov eax,dword ptr ds:[eax+6F4h]
	         	cmp eax,0D6h
	        	je return2
	         	cmp eax,0D0h
	        	je return2
	        	jmp dword ptr [ARMOR_JULIAN3]
 
return2:jmp dword ptr [ARMOR_JULIAN2]
 
Armor_Julian endp


could not add a 3 armor.

How to add a third armor?