Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A few questions...
#4
Hi vonfrank,
sadly I'm the last person around who can actually answer any questions you have :(.

I'm assuming you are using 2.0a, if not then these will be slightly off.

1)
Code:
00406506  |.  8B06          |MOV EAX,DWORD PTR DS:[ESI]              ;  load player pointer
00406508  |.  8B88 68030000 |MOV ECX,DWORD PTR DS:[EAX+368]          ;  load object thingy
0040650E  |.  8B89 F4060000 |MOV ECX,DWORD PTR DS:[ECX+6F4]          ;  load id number
00406514  |.  83F9 07       |CMP ECX,7                               ;  check if id is 7
00406517  |.  74 09         |JE SHORT 00406522
00406519  |.  83F9 08       |CMP ECX,8                               ;  check if id is 8

2) Just so you know, if you change the default hp, then everything opointed will have like 1000 hp as well. I seriously recomend not doing this, you're better off just halving all the damge.

The procedure to start an object starts at:
Code:
004061D0  /$  DD05 20794400 FLD QWORD PTR DS:[447920]
this line sets the hp to 500, ecx is set to 1f4 on the line above it
Code:
004063CF  |.  898E FC020000 MOV DWORD PTR DS:[ESI+2FC],ECX

3 + 4) Armor stuff starts at:
Code:
0042E685  |.  83F9 25       |CMP ECX,25                              ;  knight armor
I'm assuming you know enough to understand it your self. Each ID (louis, knight, julian) have like different attributes and stuff. Some don't apply armor on certain frames, or are vulnerable on certain ID's etc, which is why there is a bunch of stuff checked there.

5) 10 HP to opinted thingy is set here:
Code:
004201E3   .  83F9 05       CMP ECX,5                                ;  check if id is 5
004201E6   .  74 05         JE SHORT 004201ED
004201E8   .  83F9 34       CMP ECX,34                               ;  check if id is 52
004201EB   .  75 36         JNZ SHORT 00420223
004201ED   >  B9 0A000000   MOV ECX,0A                               ;  set hp to 10

PS: You should check out http://lf-empire.de/forum/showthread.php?tid=3329 & https://spreadsheets.google.com/ccc?key=...ZHYQ#gid=0 It should explain how lf2 works in terms of objects etc.
[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: vonfrank


Messages In This Thread
A few questions... - by vonfrank - 04-28-2011, 06:37 PM
RE: A few questions... - by Bamboori - 04-28-2011, 06:46 PM
RE: A few questions... - by vonfrank - 04-28-2011, 06:48 PM
RE: A few questions... - by Boop - 04-28-2011, 06:54 PM
RE: A few questions... - by vonfrank - 04-28-2011, 06:58 PM
RE: A few questions... - by Boop - 04-28-2011, 07:34 PM
RE: A few questions... - by vonfrank - 04-28-2011, 07:49 PM
RE: A few questions... - by Boop - 04-28-2011, 07:52 PM
RE: A few questions... - by vonfrank - 04-28-2011, 07:57 PM
RE: A few questions... - by Boop - 04-28-2011, 08:06 PM
RE: A few questions... - by vonfrank - 04-28-2011, 09:04 PM
RE: A few questions... - by vonfrank - 10-11-2011, 10:03 PM
RE: A few questions... - by Boop - 10-11-2011, 10:14 PM
RE: A few questions... - by vonfrank - 10-11-2011, 11:16 PM



Users browsing this thread: 1 Guest(s)