boris160
29/10/2017, 12:52 PM
bom estou adicionando pets em minhas files,meu problema é q o pet n segue o char,ele fica imóvel,mesmo eu desequipando ele continua lá!
sei que tem q fazer uma função para identificar se o pet é montaria ou normal.... já tentei várias funções e nda,de tanto tentar achei até a função do posicionamento do item no inventário kkkk
criei uma função base do pet Guardian Angel para duplica-lo pro novo pet assim
void __declspec(naked) PetMoviment()
{
_asm
{
CMP DWORD PTR SS:[EBP-0x124],0x1D33
JG SHORT Pet
CMP DWORD PTR SS:[EBP-0x124],0x1D33
mov eax,0x004A9B5C
Pet:
CMP DWORD PTR SS:[EBP-0x124],New_Pet
JG SHORT Exit
CMP DWORD PTR SS:[EBP-0x124],New_Pet
mov eax,0x004A9B5C
Exit:
mov eax,0x004A8446
jmp eax
}
}
void gObjCreatePetExHook()
{
ToolKit.WriteJmp(0x004A8409,(DWORD)&PetMoviment);
}
Sei q tem q por a função do makepreview no novo pet,pelo meu ver essa é a função do main 1.05D
[Only registered and activated users can see links]
[Only registered and activated users can see links]
Bug Preview ocorrido :
[Only registered and activated users can see links]
Quem souber qual o problema da função ira ajudar muito vlw
1 20 minutes:------- Atualizado -------
consegui podem fechar o tópico ^^
sei que tem q fazer uma função para identificar se o pet é montaria ou normal.... já tentei várias funções e nda,de tanto tentar achei até a função do posicionamento do item no inventário kkkk
criei uma função base do pet Guardian Angel para duplica-lo pro novo pet assim
void __declspec(naked) PetMoviment()
{
_asm
{
CMP DWORD PTR SS:[EBP-0x124],0x1D33
JG SHORT Pet
CMP DWORD PTR SS:[EBP-0x124],0x1D33
mov eax,0x004A9B5C
Pet:
CMP DWORD PTR SS:[EBP-0x124],New_Pet
JG SHORT Exit
CMP DWORD PTR SS:[EBP-0x124],New_Pet
mov eax,0x004A9B5C
Exit:
mov eax,0x004A8446
jmp eax
}
}
void gObjCreatePetExHook()
{
ToolKit.WriteJmp(0x004A8409,(DWORD)&PetMoviment);
}
Sei q tem q por a função do makepreview no novo pet,pelo meu ver essa é a função do main 1.05D
[Only registered and activated users can see links]
[Only registered and activated users can see links]
Bug Preview ocorrido :
[Only registered and activated users can see links]
Quem souber qual o problema da função ira ajudar muito vlw
1 20 minutes:------- Atualizado -------
consegui podem fechar o tópico ^^