Thread Rating:
  • 8 Vote(s) - 3.88 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[14/08/09] LF2 DLL Framework
#25
I remade the whole davis ai in the dll + made it press DJA if the enemy ID is above 200(for the 2 level lf2 thing):

Code:
;===========Davis stuff===========
Davis_return        dd 00404DAEh
Davis_C1            dd 00403270h
Davis_C2            dd 00417190h
Davis_C3            dd 004451C0h
Davis_DP            dd 004060EEh

and

Code:
AI_Davis proc
        CMP DWORD PTR DS:[EAX+6F4h],0Bh         ;  davis
        JE DJA_1
        CMP DWORD PTR DS:[EAX+6F4h],19Bh
        JE DJA_2
        jmp return
        
        DJA_1:
        MOV EDX,DWORD PTR DS:[ESI+EBP*4+194h]
        MOV EAX,DWORD PTR DS:[EDX+368h]        
        CMP DWORD PTR DS:[EAX+6F4h],200
        jng no_DJA
        MOV BYTE PTR DS:[ECX+0DCh],3
        
        DJA_2:
        MOV EDX,DWORD PTR DS:[ESI+EBP*4+194h]
        MOV EAX,DWORD PTR DS:[EDX+368h]        
        CMP DWORD PTR DS:[EAX+6F4h],200
        jnl no_DJA
        MOV BYTE PTR DS:[ECX+0DCh],3
        
no_DJA:        
        CMP DWORD PTR DS:[ECX+308h],96h
        JLE a             ;  jmp a
        MOV EDX,DWORD PTR DS:[ESI+EBP*4+194h]
        MOV EAX,DWORD PTR DS:[EDX+10h]
        SUB EAX,DWORD PTR DS:[ECX+10h]
        PUSH EAX
        CALL [Davis_C1]
        ADD ESP,4
        CMP EAX,118h
        JGE a           ;  jmp a
        MOV EDX,DWORD PTR DS:[EDX+18h]
        SUB EDX,DWORD PTR DS:[ECX+18h]
        PUSH EDX
        CALL [Davis_C1]
        ADD ESP,4
        CMP EAX,1Eh
        JGE a              ;  jmp a
        PUSH 0Ah
        PUSH 5Dh
        CALL [Davis_C2]
        ADD ESP,8h
        TEST EAX,EAX
        JNZ a              ;  jmp a
        MOV EDX,DWORD PTR DS:[ESI+EDI*4+194h]
        MOV BL,BYTE PTR DS:[EDX+80h]
        TEST BL,BL
        JNZ b             ;  jmp b
        MOV ECX,DWORD PTR DS:[ESI+EBP*4+194h]
        MOV EAX,DWORD PTR DS:[EDX+10h]
        MOV ECX,DWORD PTR DS:[ECX+10h]
        CMP ECX,EAX
        JG @c              ;  jmp c
        
        b:
        CMP BL,1                                 ;  b
        JNZ a              ;  jmp a
        MOV ECX,DWORD PTR DS:[ESI+EBP*4+194h]
        MOV EAX,DWORD PTR DS:[EDX+10h]
        MOV ECX,DWORD PTR DS:[ECX+10h]
        CMP ECX,EAX
        JGE a              ;  jmp a
        JLE d             ;  jmp d
        @c:
        MOV BYTE PTR DS:[EDX+0D7h],3   ;c
        
        d:
        POP EDI                                  ;  d
        POP EBP
        POP EBX
        MOV EAX,1
        POP ESI
        ADD ESP,8
        RETN 1Ch
        
        a:
        MOV EAX,DWORD PTR DS:[ESI+EDI*4+194h]     ;  a
        MOV EDX,DWORD PTR DS:[EAX+70h]
        MOV EAX,DWORD PTR DS:[EAX+368h]
        IMUL EDX,EDX,178h
        CMP DWORD PTR DS:[EDX+EAX+7D0h],122h
        JNZ e              ;  jmp e
        MOV ECX,DWORD PTR DS:[ESI+EBP*4+194h]
        CMP DWORD PTR DS:[ECX+14h],0
        JGE e             ;  jmp e
        MOV EDX,DWORD PTR DS:[ESI+EDI*4+194h]
        MOV BYTE PTR DS:[EDX+0CBh],0
        MOV EAX,DWORD PTR DS:[ESI+EDI*4+194h]
        
        e:
        MOV BYTE PTR DS:[EAX+0D2h],1
        PUSH 5h                                   ;  e
        PUSH 5Eh
        CALL [Davis_C2]
        ADD ESP,8h
        TEST EAX,EAX
        JE f              ;  jmp f
        MOV EAX,DWORD PTR SS:[ESP+28h]
        CMP EAX,10h
        JE f              ;  jmp f
        CMP EAX,8h
        JNZ return                    ;  jmp to end
        
        f:
        MOV ECX,DWORD PTR SS:[ESP+1Ch]            ;  f
        MOV EBX,DWORD PTR DS:[ESI+ECX*4+194h]
        MOV EBP,DWORD PTR DS:[ESI+EDI*4+194h]
        MOV EDX,DWORD PTR DS:[EBX+10h]
        FLD QWORD PTR SS:[EBP+40h]
        MOV DWORD PTR SS:[ESP+20h],EDX
        CALL [Davis_C3]
        SUB EAX,DWORD PTR SS:[EBP+10h]
        ADD EAX,DWORD PTR SS:[ESP+20h]
        PUSH EAX
        CALL [Davis_C1]
        ADD ESP,4
        CMP EAX,64h
        JGE return              ;  jmp to end
        MOV EAX,DWORD PTR DS:[EBX+18h]
        MOV ECX,EBP
        SUB EAX,DWORD PTR DS:[ECX+18h]
        PUSH EAX
        CALL [Davis_C1]
        ADD ESP,4
        CMP EAX,7
        JGE return              ;  jmp to end
        CMP DWORD PTR DS:[ECX+308h],0C8h
        JLE return              ;  jmp to end
        MOV AL,BYTE PTR DS:[ECX+80h]
        TEST AL,AL
        JNZ g              ;  jmp g    
        MOV EDX,DWORD PTR SS:[ESP+20h]
        CMP DWORD PTR DS:[ECX+10h],EDX
        JL dp
        g:
        CMP AL,1                                 ;  g
        JNZ return             ;  jmp davis 3
        MOV EAX,DWORD PTR SS:[ESP+20h]
        CMP DWORD PTR DS:[ECX+10h],EAX
        JG dp                   ;  jmp davis 3
return: jmp Davis_return
dp:        jmp Davis_DP
    
AI_Davis endp

To disable the DJA stuff just replace:

CMP DWORD PTR DS:[EAX+6F4h],0Bh ; davis
JE DJA_1
CMP DWORD PTR DS:[EAX+6F4h],19Bh
JE DJA_2
jmp return

with:

CMP DWORD PTR DS:[EAX+6F4h],0Bh ; davis
JE no_DJA
CMP DWORD PTR DS:[EAX+6F4h],19Bh
JNZ return


:)
[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:


Messages In This Thread
[14/08/09] LF2 DLL Framework - by Boop - 03-01-2009, 03:06 PM
RE: [Concept/Project]DLL - by Ascor - 03-01-2009, 04:54 PM
RE: [Concept/Project]DLL - by genevrier - 03-13-2009, 05:55 AM
RE: [Concept/Project]DLL - by Ramond - 03-01-2009, 09:57 PM
RE: [Concept/Project]DLL - by Yinseko - 03-02-2009, 03:56 PM
RE: [12/3/09] LF2 DLL Framework - by Boop - 03-12-2009, 04:49 PM
RE: [12/3/09] LF2 DLL Framework - by Boop - 03-13-2009, 01:03 PM
RE: [12/3/09] LF2 DLL Framework - by genevrier - 03-18-2009, 03:10 AM
RE: [12/3/09] LF2 DLL Framework - by Boop - 03-18-2009, 06:42 AM
RE: [21/3/09] LF2 DLL Framework - by Boop - 03-21-2009, 07:47 PM
RE: [21/3/09] LF2 DLL Framework - by genevrier - 03-25-2009, 04:41 PM
RE: [28/3/09] LF2 DLL Framework - by Boop - 03-29-2009, 07:59 AM
RE: [28/3/09] LF2 DLL Framework - by genevrier - 03-29-2009, 10:34 AM
RE: [28/3/09] LF2 DLL Framework - by Yinseko - 03-29-2009, 11:48 AM
RE: [28/3/09] LF2 DLL Framework - by Boop - 03-31-2009, 03:31 PM
RE: [28/3/09] LF2 DLL Framework - by Boop - 04-01-2009, 03:40 PM
RE: [28/3/09] LF2 DLL Framework - by Yinseko - 04-01-2009, 09:31 AM
RE: [28/3/09] LF2 DLL Framework - by Yinseko - 04-01-2009, 06:16 PM
RE: [28/3/09] LF2 DLL Framework - by Boop - 04-01-2009, 07:16 PM
RE: [28/3/09] LF2 DLL Framework - by Yinseko - 04-01-2009, 07:21 PM
RE: [28/3/09] LF2 DLL Framework - by genevrier - 04-03-2009, 03:11 AM
RE: [28/3/09] LF2 DLL Framework - by genevrier - 04-10-2009, 08:26 AM
RE: [28/3/09] LF2 DLL Framework - by Boop - 04-10-2009, 08:58 AM
RE: [28/3/09] LF2 DLL Framework - by genevrier - 04-10-2009, 09:37 AM
RE: [10/04/09] LF2 DLL Framework - by Boop - 04-15-2009, 08:49 PM
RE: [10/04/09] LF2 DLL Framework - by genevrier - 04-16-2009, 01:49 PM
RE: [10/04/09] LF2 DLL Framework - by Boop - 04-16-2009, 05:24 PM
RE: [16/04/09] LF2 DLL Framework - by genevrier - 04-17-2009, 03:11 PM
RE: [17/04/09] LF2 DLL Framework - by Sharingan - 04-25-2009, 11:25 AM
RE: [17/04/09] LF2 DLL Framework - by Boop - 04-25-2009, 11:38 AM
RE: [17/04/09] LF2 DLL Framework - by Azriel - 04-25-2009, 01:10 PM
RE: [17/04/09] LF2 DLL Framework - by Boop - 04-25-2009, 01:19 PM
RE: [17/04/09] LF2 DLL Framework - by Yuan - 05-17-2009, 10:11 AM
RE: [17/04/09] LF2 DLL Framework - by genevrier - 05-17-2009, 12:58 PM
RE: [17/04/09] LF2 DLL Framework - by Boop - 05-17-2009, 10:25 AM
RE: [17/04/09] LF2 DLL Framework - by Yuan - 05-17-2009, 02:07 PM
RE: [17/04/09] LF2 DLL Framework - by 1477 - 05-25-2009, 03:48 AM
RE: [17/04/09] LF2 DLL Framework - by Boop - 05-25-2009, 07:29 AM
RE: [17/04/09] LF2 DLL Framework - by Boop - 06-01-2009, 01:00 PM
RE: [17/04/09] LF2 DLL Framework - by hkmnhkmn - 06-20-2009, 09:22 AM
RE: [17/04/09] LF2 DLL Framework - by Boop - 06-20-2009, 09:37 AM
RE: [17/04/09] LF2 DLL Framework - by 1477 - 06-22-2009, 02:33 AM
RE: [17/04/09] LF2 DLL Framework - by 1477 - 06-29-2009, 05:21 AM
RE: [17/04/09] LF2 DLL Framework - by Boop - 06-29-2009, 03:22 PM
RE: [17/04/09] LF2 DLL Framework - by hkmnhkmn - 07-03-2009, 12:28 PM
RE: [17/04/09] LF2 DLL Framework - by Boop - 07-03-2009, 12:35 PM
RE: [17/04/09] LF2 DLL Framework - by Boop - 07-21-2009, 01:21 PM
RE: [17/04/09] LF2 DLL Framework - by TheNave - 07-21-2009, 03:04 PM
RE: [17/04/09] LF2 DLL Framework - by genevrier - 07-30-2009, 07:29 PM
RE: [17/04/09] LF2 DLL Framework - by TheNave - 07-30-2009, 09:19 PM
RE: [17/04/09] LF2 DLL Framework - by genevrier - 08-01-2009, 03:22 AM
RE: [17/04/09] LF2 DLL Framework - by TheNave - 08-01-2009, 09:00 AM
RE: [01/08/09] LF2 DLL Framework - by Boop - 08-02-2009, 04:16 PM
RE: [01/08/09] LF2 DLL Framework - by 1477 - 08-03-2009, 05:26 AM
RE: [02/08/09] LF2 DLL Framework - by Boop - 08-09-2009, 07:17 PM
RE: [02/08/09] LF2 DLL Framework - by SortaGuy - 08-10-2009, 06:56 PM
RE: [02/08/09] LF2 DLL Framework - by Boop - 08-10-2009, 09:36 PM
RE: [02/08/09] LF2 DLL Framework - by hkmnhkmn - 08-11-2009, 01:47 AM
RE: [02/08/09] LF2 DLL Framework - by Boop - 08-12-2009, 04:27 PM
RE: [12/08/09] LF2 DLL Framework - by Silverthorn - 08-13-2009, 04:06 PM
RE: [14/08/09] LF2 DLL Framework - by Boop - 08-16-2009, 01:17 PM
RE: [14/08/09] LF2 DLL Framework - by Buxie - 08-25-2009, 03:57 PM
RE: [14/08/09] LF2 DLL Framework - by Boop - 08-29-2009, 07:05 AM
RE: [14/08/09] LF2 DLL Framework - by hkmnhkmn - 08-29-2009, 06:00 AM
RE: [14/08/09] LF2 DLL Framework - by Buxie - 08-29-2009, 08:10 AM
RE: [14/08/09] LF2 DLL Framework - by Boop - 08-29-2009, 08:13 AM
RE: [14/08/09] LF2 DLL Framework - by TheNave - 09-02-2009, 06:50 AM
RE: [14/08/09] LF2 DLL Framework - by George - 09-10-2009, 05:06 PM
RE: [14/08/09] LF2 DLL Framework - by TheNave - 09-10-2009, 05:38 PM
RE: [14/08/09] LF2 DLL Framework - by George - 09-10-2009, 05:51 PM
RE: [14/08/09] LF2 DLL Framework - by George - 09-12-2009, 09:31 AM
RE: [14/08/09] LF2 DLL Framework - by hkmnhkmn - 09-18-2009, 12:09 PM
RE: [14/08/09] LF2 DLL Framework - by Divisor - 09-22-2009, 07:13 PM
RE: [14/08/09] LF2 DLL Framework - by Hax0r - 09-18-2009, 10:32 PM
RE: [14/08/09] LF2 DLL Framework - by Buxie - 09-19-2009, 04:24 AM
RE: [14/08/09] LF2 DLL Framework - by RenanDez - 09-19-2009, 06:39 AM
RE: [14/08/09] LF2 DLL Framework - by Hax0r - 09-22-2009, 07:04 PM
RE: [14/08/09] LF2 DLL Framework - by Kiba - 01-03-2010, 06:48 AM
RE: [14/08/09] LF2 DLL Framework - by vandesdelca - 01-30-2010, 11:03 PM
RE: [14/08/09] LF2 DLL Framework - by TheNave - 01-31-2010, 12:01 AM
RE: [14/08/09] LF2 DLL Framework - by vandesdelca - 02-01-2010, 08:06 AM
RE: [14/08/09] LF2 DLL Framework - by hkmnhkmn - 01-11-2011, 07:01 AM
RE: [14/08/09] LF2 DLL Framework - by Boop - 01-11-2011, 07:58 PM
RE: [14/08/09] LF2 DLL Framework - by hkmnhkmn - 01-17-2011, 02:25 PM
RE: [14/08/09] LF2 DLL Framework - by Boop - 01-17-2011, 06:05 PM
RE: [14/08/09] LF2 DLL Framework - by hkmnhkmn - 01-18-2011, 09:41 AM



Users browsing this thread: 14 Guest(s)