- Joined
- Mar 13, 2008
- Messages
- 758
- Reaction score
- 1,005
Well i am trying add a custom monster or NPC.
Main 1.02r
Offsets:
00533800 CMP EAX,172 -> Here compare max monster support. if is eax>172 than mob transform in a Bull.
i recommend make a jmp before of cmp eax,172 for compare a new npc or mob.
006479C9 CMP EAX,43 Here i dont know what compare but later of this do a jmp to offset for charge X (Npc or monster). Here we need do change JA xxxx to a new offset where we will to compare the value of monster or npc.
in my case i use npc 479 Titus
i change offset JA xxxx to JA 006E7588 and there i put it.
Loading NPC Titus
Results.
now i have a problem i cant talk with the npc maybe someone can help to fix it.
More later i will upload my main with titus NPC.
Main 1.02r
Offsets:
00533800 CMP EAX,172 -> Here compare max monster support. if is eax>172 than mob transform in a Bull.
i recommend make a jmp before of cmp eax,172 for compare a new npc or mob.
00533800 E9 EA3C1B00 JMP Main_102.006E74EF
006E74EF 8D47 FF LEA EAX,DWORD PTR DS:[EDI-1]
006E74F2 3D DE010000 CMP EAX,1DE //ID OF MOB TITUS
006E74F7 75 07 JNZ SHORT Main_102.006E7500
006E74FE EB 3A JMP SHORT Main_102.006E753A // JMP TO LOAD MY NPC
006E7500 3D 72010000 CMP EAX,172
006E7505 ^0F87 FAEDE4FF JA Main_102.00536305
006E750B 33C9 XOR ECX,ECX
006E750D 8A88 2C665300 MOV CL,BYTE PTR DS:[EAX+53662C]
006E7513 FF248D 20645300 JMP DWORD PTR DS:[ECX*4+536420]
LOAD MY NPC
WARNING NOT ALL NPC OR MOBS IS LOADED HOW THIS.
006E753A 68 00030000 PUSH 300
006E753F E8 4C04F6FF CALL Main_102.00647990
006E7544 8B4D 0C MOV ECX,DWORD PTR SS:[EBP+C]
006E7547 6A 00 PUSH 0
006E7549 53 PUSH EBX
006E754A 51 PUSH ECX
006E754B 68 00030000 PUSH 300
006E7550 56 PUSH ESI
006E7551 E8 3AA7E4FF CALL Main_102.00531C90
006E7556 8BD8 MOV EBX,EAX
006E7558 BF 78A16F00 MOV EDI,Main_102.006FA178
006E755D 83C9 FF OR ECX,FFFFFFFF
006E7560 33C0 XOR EAX,EAX
006E7562 83C4 18 ADD ESP,18
006E7565 8D93 0D020000 LEA EDX,DWORD PTR DS:[EBX+20D]
006E756B F2:AE REPNE SCAS BYTE PTR ES:[EDI]
006E756D F7D1 NOT ECX
006E756F 2BF9 SUB EDI,ECX
006E7571 8BC1 MOV EAX,ECX
006E7573 8BF7 MOV ESI,EDI
006E7575 8BFA MOV EDI,EDX
006E7577 C1E9 02 SHR ECX,2
006E757A F3:A5 REP MOVS DWORD PTR ES:[EDI],DWORD PTR DS:>
006E757C 8BC8 MOV ECX,EAX
006E757E 83E1 03 AND ECX,3
006E7581 F3:A4 REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[E>
006E7583 ^E9 7AEEE4FF JMP Main_102.00536402
006479C9 CMP EAX,43 Here i dont know what compare but later of this do a jmp to offset for charge X (Npc or monster). Here we need do change JA xxxx to a new offset where we will to compare the value of monster or npc.
in my case i use npc 479 Titus
i change offset JA xxxx to JA 006E7588 and there i put it.
006E7588 3D 07010000 CMP EAX,107 //Value of my mob or NPC
006E758D 74 09 JE SHORT Main_102.006E7598 // If is true jmp to 6e7598
006E758F 90 NOP
006E7590 90 NOP
006E7591 90 NOP
006E7592 90 NOP
006E7593 ^E9 A70DF6FF JMP Main_102.0064833F
006E7598 33D2 XOR EDX,EDX //we need do it for charge movements of mob
006E759A ^E9 17FFFFFF JMP Main_102.006E74B6 //here jmp to Load my custom npc
Loading NPC Titus
WARNING NOT ALL NPC OR MOBS IS LOADED HOW THIS.
006E74B6 6A FF PUSH -1
006E74B8 68 E7746E00 PUSH Main_102.006E74E7 ; ASCII "titus"
006E74BD 68 34856F00 PUSH Main_102.006F8534 ; ASCII "Data\Npc\"
006E74C2 68 00030000 PUSH 300 //This need be changed on new npc
006E74C7 E8 34B7F5FF CALL Main_102.00642C00
006E74CC 6A 01 PUSH 1
006E74CE 68 00260000 PUSH 2600
006E74D3 68 01290000 PUSH 2901
006E74D8 68 2C856F00 PUSH Main_102.006F852C ; ASCII "Npc\"
006E74DD 68 00030000 PUSH 300 //This need be changed on new npc
006E74E2 ^E9 500EF6FF JMP Main_102.00648337
Results.
You must be registered to see links
now i have a problem i cant talk with the npc maybe someone can help to fix it.
More later i will upload my main with titus NPC.