Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: New Pet MuEmu Sesaon 6  (Visto 1736 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline djagripnos on: January 21, 2019, 07:30:41 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 570
  • Gracias recibida: 12184
  • gr
I Dont Testing This Source guys!

NewPet.h

Citar
#define ItemId(x, y)            ((x * 512) + y)
#define pPreviewPetThis            *(DWORD*)0x007BC4F04
#define LODWORD(h)                ((DWORD)(__int64(h) & __int64(0xffffffff)))

enum eBugType
{
    NewPet         = 6801,
   NewPet1        = 6802,
   NewPet2        = 6803,
   NewPet3        = 6804,
   NewPet4        = 6805,
   NewPet5        = 6806,
   NewPet6        = 6807,
   NewPet7        = 6808,
   NewPet8        = 6809,
   NewPet9        = 6810,
};

typedef void (__thiscall *ObjCreatePet)(int ItemId);
extern ObjCreatePet gObjCreatePet;
// --
typedef int (__cdecl *ObjCreateBug)(int BugId, int Arg2, int Arg3, int Arg4, int Arg5);
extern ObjCreateBug gObjCreateBug;
// --
void gObjCreatePetExHook();
static bool ResetPetPreviewEx(int ItemId);



NewPet.cpp

Citar
#include "stdafx.h"
#include "NewPet.h"
#include "Util.h"
#include "Defines.h"
#include "TMemory.h"
#include "ToolKit.h"
static BOOL bDrawAngelMovement_Switcher;
ObjCreateBug gObjCreateBug      = (ObjCreateBug)0x00501700;
ObjCreatePet gObjCreatePet      = (ObjCreatePet)0x00835CF0;

void gObjCreatePetEx(int ItemId)
{
    int ItemSwitch        = *(WORD*)ItemId;
    int PetPreview        = LODWORD(pPreviewPetThis) + 776;
    // ----
    switch (ItemSwitch)
    {
        case ItemId(13, 145):
            gObjCreateBug(eBugType::NewPet, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 146):
            gObjCreateBug(eBugType::NewPet1, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 147):
            gObjCreateBug(eBugType::NewPet2, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 148):
            gObjCreateBug(eBugType::NewPet3, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 149):
            gObjCreateBug(eBugType::NewPet4, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 150):
            gObjCreateBug(eBugType::NewPet5, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 151):
            gObjCreateBug(eBugType::NewPet6, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 152):
            gObjCreateBug(eBugType::NewPet7, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 153):
            gObjCreateBug(eBugType::NewPet8, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 154):
            gObjCreateBug(eBugType::NewPet9, PetPreview + 252, PetPreview, 0, 0);
        break;
      /*
        case ItemId(13, 155):
            gObjCreateBug(eBugType::NewPet10, PetPreview + 252, PetPreview, 0, 0);
        break;
      
        case ItemId(13, 156):
            gObjCreateBug(eBugType::NewPet11, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 157):
            gObjCreateBug(eBugType::NewPet12, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 158):
            gObjCreateBug(eBugType::NewPet13, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 159):
            gObjCreateBug(eBugType::NewPet14, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 160):
            gObjCreateBug(eBugType::NewPet15, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 161):
            gObjCreateBug(eBugType::NewPet16, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 162):
            gObjCreateBug(eBugType::NewPet17, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 163):
            gObjCreateBug(eBugType::NewPet18, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 164):
            gObjCreateBug(eBugType::NewPet19, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 165):
            gObjCreateBug(eBugType::NewPet20, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 166):
            gObjCreateBug(eBugType::NewPet21, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 167):
            gObjCreateBug(eBugType::NewPet22, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 168):
            gObjCreateBug(eBugType::NewPet23, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 169):
            gObjCreateBug(eBugType::NewPet24, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 170):
            gObjCreateBug(eBugType::NewPet25, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 171):
            gObjCreateBug(eBugType::NewPet26, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 172):
            gObjCreateBug(eBugType::NewPet27, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 173):
            gObjCreateBug(eBugType::NewPet28, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 174):
            gObjCreateBug(eBugType::NewPet29, PetPreview + 252, PetPreview, 0, 0);
        break;         
        case ItemId(13, 175):
            gObjCreateBug(eBugType::NewPet30, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 176):
            gObjCreateBug(eBugType::NewPet31, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 177):
            gObjCreateBug(eBugType::NewPet32, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 178):
            gObjCreateBug(eBugType::NewPet33, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 179):
            gObjCreateBug(eBugType::NewPet34, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 180):
            gObjCreateBug(eBugType::NewPet35, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 181):
            gObjCreateBug(eBugType::NewPet36, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 182):
            gObjCreateBug(eBugType::NewPet37, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 183):
            gObjCreateBug(eBugType::NewPet38, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 184):
            gObjCreateBug(eBugType::NewPet39, PetPreview + 252, PetPreview, 0, 0);
        break;            
        case ItemId(13, 185):
            gObjCreateBug(eBugType::NewPet40, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 186):
            gObjCreateBug(eBugType::NewPet41, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 187):
            gObjCreateBug(eBugType::NewPet42, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 188):
            gObjCreateBug(eBugType::NewPet43, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 189):
            gObjCreateBug(eBugType::NewPet44, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 190):
            gObjCreateBug(eBugType::NewPet45, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 191):
            gObjCreateBug(eBugType::NewPet46, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 192):
            gObjCreateBug(eBugType::NewPet47, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 193):
            gObjCreateBug(eBugType::NewPet48, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 194):
            gObjCreateBug(eBugType::NewPet49, PetPreview + 252, PetPreview, 0, 0);
        break;      
      case ItemId(13, 195):
            gObjCreateBug(eBugType::NewPet50, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 196):
            gObjCreateBug(eBugType::NewPet51, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 197):
            gObjCreateBug(eBugType::NewPet52, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 198):
            gObjCreateBug(eBugType::NewPet53, PetPreview + 252, PetPreview, 0, 0);
        break;
      */
        // ---
    }
    gObjCreatePet(ItemId);
}


void __declspec(naked) DrawAngelMovement()
{
   static DWORD dwDrawAngelMovement_Pointer;
   static DWORD dwDrawAngelMovement_Buffer;
   // ----
   bDrawAngelMovement_Switcher   = FALSE;
   // ----
   _asm
   {
      MOV EAX,DWORD PTR SS:[EBP+0x8]
      MOV ECX,DWORD PTR DS:[EAX+0x30]
      MOV dwDrawAngelMovement_Pointer,ECX
   }
   // ----
   if(dwDrawAngelMovement_Pointer == ITEM2(13,0))         // -> Angel Pet
   {
      bDrawAngelMovement_Switcher   = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,145))      // -> Unicorn Pet
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,146))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,147))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,148))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,149))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,150))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,151))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,152))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,153))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,154))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   /*
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,155))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,155))      // -> Unicorn Pet
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,156))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,157))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,158))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,159))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,160))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,161))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,162))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,163))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,164))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,165))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,166))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,167))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,168))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,169))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,170))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,171))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,172))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,173))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,174))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,175))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,176))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,177))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,178))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,179))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,180))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,181))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,182))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,183))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,184))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,185))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,186))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,187))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,188))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,189))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,190))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,191))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,192))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,193))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,194))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,195))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,196))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,197))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,198))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   */
   // ----
   if(bDrawAngelMovement_Switcher == TRUE)
   {
      _asm
      {
         MOV dwDrawAngelMovement_Buffer,0x00503407
         JMP dwDrawAngelMovement_Buffer
      }
   }
   else
   {
      _asm
      {
         MOV dwDrawAngelMovement_Buffer,0x005033F7
         JMP dwDrawAngelMovement_Buffer
      }
   }
}

bool ResetPetPreviewEx(int ItemId)
{
    bool Result;
    // ----
    if (ItemId)
        Result = *(WORD*)ItemId == ItemId(13,0)    //Angel
      /*
        || *(WORD*)ItemId == ItemId(13,1)        //Satan
        || *(WORD*)ItemId == ItemId(13,2)        //Unicorn
        || *(WORD*)ItemId == ItemId(13,3)        //Dinorant
        || *(WORD*)ItemId == ItemId(13,4)        //Dark Horse
        || *(WORD*)ItemId == ItemId(13,5)        //Dark Raven
        || *(WORD*)ItemId == ItemId(13,37)        //Fenrir
        || *(WORD*)ItemId == ItemId(13,63)        //Demon
        || *(WORD*)ItemId == ItemId(13,64)        //Maria
        || *(WORD*)ItemId == ItemId(13,66)        //Rudol
      || *(WORD*)ItemId == ItemId(13,80)        //Panda
      || *(WORD*)ItemId == ItemId(13,106)        //Panda
      || *(WORD*)ItemId == ItemId(13,123)       //Panda
      */
      // Custom Pet
        || *(WORD*)ItemId == ItemId(13,145)
        || *(WORD*)ItemId == ItemId(13,146)
      || *(WORD*)ItemId == ItemId(13,147)
      || *(WORD*)ItemId == ItemId(13,148)
      || *(WORD*)ItemId == ItemId(13,149)
      || *(WORD*)ItemId == ItemId(13,150)
      || *(WORD*)ItemId == ItemId(13,151)
      || *(WORD*)ItemId == ItemId(13,152)
      || *(WORD*)ItemId == ItemId(13,153)
      || *(WORD*)ItemId == ItemId(13,154);
      /*
      || *(WORD*)ItemId == ItemId(13,155);
      
      || *(WORD*)ItemId == ItemId(13,156)
      || *(WORD*)ItemId == ItemId(13,157)
      || *(WORD*)ItemId == ItemId(13,158)
      || *(WORD*)ItemId == ItemId(13,159)
      || *(WORD*)ItemId == ItemId(13,160)
      || *(WORD*)ItemId == ItemId(13,161)
      || *(WORD*)ItemId == ItemId(13,162)
      || *(WORD*)ItemId == ItemId(13,163)
      || *(WORD*)ItemId == ItemId(13,164)
      || *(WORD*)ItemId == ItemId(13,165)
      || *(WORD*)ItemId == ItemId(13,166)
      || *(WORD*)ItemId == ItemId(13,167)
      || *(WORD*)ItemId == ItemId(13,168)
      || *(WORD*)ItemId == ItemId(13,169)
      || *(WORD*)ItemId == ItemId(13,170)
      || *(WORD*)ItemId == ItemId(13,171)
      || *(WORD*)ItemId == ItemId(13,172)
      || *(WORD*)ItemId == ItemId(13,173)
      || *(WORD*)ItemId == ItemId(13,174)
      || *(WORD*)ItemId == ItemId(13,175)
      || *(WORD*)ItemId == ItemId(13,176)
      || *(WORD*)ItemId == ItemId(13,177)
      || *(WORD*)ItemId == ItemId(13,178)
      || *(WORD*)ItemId == ItemId(13,179)
      || *(WORD*)ItemId == ItemId(13,180)   
      || *(WORD*)ItemId == ItemId(13,181)
      || *(WORD*)ItemId == ItemId(13,182)
      || *(WORD*)ItemId == ItemId(13,183)
      || *(WORD*)ItemId == ItemId(13,184)
      || *(WORD*)ItemId == ItemId(13,185)
      || *(WORD*)ItemId == ItemId(13,186)
      || *(WORD*)ItemId == ItemId(13,187)
      || *(WORD*)ItemId == ItemId(13,188)
      || *(WORD*)ItemId == ItemId(13,189)
      || *(WORD*)ItemId == ItemId(13,190)
      || *(WORD*)ItemId == ItemId(13,191)
      || *(WORD*)ItemId == ItemId(13,192)
      || *(WORD*)ItemId == ItemId(13,193)
      || *(WORD*)ItemId == ItemId(13,194)
      || *(WORD*)ItemId == ItemId(13,195)
      || *(WORD*)ItemId == ItemId(13,196)
      || *(WORD*)ItemId == ItemId(13,197)
      || *(WORD*)ItemId == ItemId(13,198);
   */
    else
        Result = 0;
    return Result;
}

__declspec(naked) void PetMoviment()
{
    _asm
    {   
        CMP DWORD PTR DS:[ECX+0x030],0x1E93
        JE SHORT Pet   
Pet:
        CMP DWORD PTR DS:[ECX+0x030],0x1F24
        JE SHORT Exit   
Exit:
        mov eax,0x00503407
        jmp eax
    }
}


void gObjCreatePetExHook()
{
    SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x007DD1B4,ASM::CALL);
    SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x008339B8,ASM::CALL);
   SetRange((LPVOID)0x005033EB,12,ASM::NOP);
   SetJmp((LPVOID)0x005033EB,DrawAngelMovement);
   SetOp((LPVOID)0x00836331,ResetPetPreviewEx,ASM::CALL);
   //ToolKit.WriteJmp(0x005033EE,(DWORD)&PetMoviment);
}

main.cpp
#include "NewPet.h"

gObjCreatePetExHook();


Gracias:


Offline iramondias #1 on: January 21, 2019, 08:27:14 AM

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 55
  • Gracias recibida: 33
  • br
Don't working, crash main.

Offline djagripnos #2 on: January 21, 2019, 10:04:44 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 570
  • Gracias recibida: 12184
  • gr
Don't working, crash main.

SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x007DD304,ASM::CALL);
SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x00833B08,ASM::CALL);

Offline jhonhy #3 on: January 21, 2019, 10:36:39 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 37
  • Gracias recibida: 9
  • br
what is the name of bmd?

13,145 = NewPet.bmd or NewPet01.bmd?

Offline AZURE #4 on: January 21, 2019, 10:54:50 AM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 106
  • Gracias recibida: 943
  • cl
djagripnos   como coloco los pet en el main info  y item.txt?

Offline iramondias #5 on: January 21, 2019, 12:02:59 PM

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 55
  • Gracias recibida: 33
  • br
Only angel movement?

Offline Daniel@ #6 on: January 21, 2019, 02:50:09 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 140
  • Gracias recibida: 707
  • ve
I Dont Testing This Source guys!

NewPet.h

Citar
#define ItemId(x, y)            ((x * 512) + y)
#define pPreviewPetThis            *(DWORD*)0x007BC4F04
#define LODWORD(h)                ((DWORD)(__int64(h) & __int64(0xffffffff)))

enum eBugType
{
    NewPet         = 6801,
   NewPet1        = 6802,
   NewPet2        = 6803,
   NewPet3        = 6804,
   NewPet4        = 6805,
   NewPet5        = 6806,
   NewPet6        = 6807,
   NewPet7        = 6808,
   NewPet8        = 6809,
   NewPet9        = 6810,
};

typedef void (__thiscall *ObjCreatePet)(int ItemId);
extern ObjCreatePet gObjCreatePet;
// --
typedef int (__cdecl *ObjCreateBug)(int BugId, int Arg2, int Arg3, int Arg4, int Arg5);
extern ObjCreateBug gObjCreateBug;
// --
void gObjCreatePetExHook();
static bool ResetPetPreviewEx(int ItemId);



NewPet.cpp

Citar
#include "stdafx.h"
#include "NewPet.h"
#include "Util.h"
#include "Defines.h"
#include "TMemory.h"
#include "ToolKit.h"
static BOOL bDrawAngelMovement_Switcher;
ObjCreateBug gObjCreateBug      = (ObjCreateBug)0x00501700;
ObjCreatePet gObjCreatePet      = (ObjCreatePet)0x00835CF0;

void gObjCreatePetEx(int ItemId)
{
    int ItemSwitch        = *(WORD*)ItemId;
    int PetPreview        = LODWORD(pPreviewPetThis) + 776;
    // ----
    switch (ItemSwitch)
    {
        case ItemId(13, 145):
            gObjCreateBug(eBugType::NewPet, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 146):
            gObjCreateBug(eBugType::NewPet1, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 147):
            gObjCreateBug(eBugType::NewPet2, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 148):
            gObjCreateBug(eBugType::NewPet3, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 149):
            gObjCreateBug(eBugType::NewPet4, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 150):
            gObjCreateBug(eBugType::NewPet5, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 151):
            gObjCreateBug(eBugType::NewPet6, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 152):
            gObjCreateBug(eBugType::NewPet7, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 153):
            gObjCreateBug(eBugType::NewPet8, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 154):
            gObjCreateBug(eBugType::NewPet9, PetPreview + 252, PetPreview, 0, 0);
        break;
      /*
        case ItemId(13, 155):
            gObjCreateBug(eBugType::NewPet10, PetPreview + 252, PetPreview, 0, 0);
        break;
      
        case ItemId(13, 156):
            gObjCreateBug(eBugType::NewPet11, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 157):
            gObjCreateBug(eBugType::NewPet12, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 158):
            gObjCreateBug(eBugType::NewPet13, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 159):
            gObjCreateBug(eBugType::NewPet14, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 160):
            gObjCreateBug(eBugType::NewPet15, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 161):
            gObjCreateBug(eBugType::NewPet16, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 162):
            gObjCreateBug(eBugType::NewPet17, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 163):
            gObjCreateBug(eBugType::NewPet18, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 164):
            gObjCreateBug(eBugType::NewPet19, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 165):
            gObjCreateBug(eBugType::NewPet20, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 166):
            gObjCreateBug(eBugType::NewPet21, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 167):
            gObjCreateBug(eBugType::NewPet22, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 168):
            gObjCreateBug(eBugType::NewPet23, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 169):
            gObjCreateBug(eBugType::NewPet24, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 170):
            gObjCreateBug(eBugType::NewPet25, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 171):
            gObjCreateBug(eBugType::NewPet26, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 172):
            gObjCreateBug(eBugType::NewPet27, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 173):
            gObjCreateBug(eBugType::NewPet28, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 174):
            gObjCreateBug(eBugType::NewPet29, PetPreview + 252, PetPreview, 0, 0);
        break;         
        case ItemId(13, 175):
            gObjCreateBug(eBugType::NewPet30, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 176):
            gObjCreateBug(eBugType::NewPet31, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 177):
            gObjCreateBug(eBugType::NewPet32, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 178):
            gObjCreateBug(eBugType::NewPet33, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 179):
            gObjCreateBug(eBugType::NewPet34, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 180):
            gObjCreateBug(eBugType::NewPet35, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 181):
            gObjCreateBug(eBugType::NewPet36, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 182):
            gObjCreateBug(eBugType::NewPet37, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 183):
            gObjCreateBug(eBugType::NewPet38, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 184):
            gObjCreateBug(eBugType::NewPet39, PetPreview + 252, PetPreview, 0, 0);
        break;            
        case ItemId(13, 185):
            gObjCreateBug(eBugType::NewPet40, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 186):
            gObjCreateBug(eBugType::NewPet41, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 187):
            gObjCreateBug(eBugType::NewPet42, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 188):
            gObjCreateBug(eBugType::NewPet43, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 189):
            gObjCreateBug(eBugType::NewPet44, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 190):
            gObjCreateBug(eBugType::NewPet45, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 191):
            gObjCreateBug(eBugType::NewPet46, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 192):
            gObjCreateBug(eBugType::NewPet47, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 193):
            gObjCreateBug(eBugType::NewPet48, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 194):
            gObjCreateBug(eBugType::NewPet49, PetPreview + 252, PetPreview, 0, 0);
        break;      
      case ItemId(13, 195):
            gObjCreateBug(eBugType::NewPet50, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 196):
            gObjCreateBug(eBugType::NewPet51, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 197):
            gObjCreateBug(eBugType::NewPet52, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 198):
            gObjCreateBug(eBugType::NewPet53, PetPreview + 252, PetPreview, 0, 0);
        break;
      */
        // ---
    }
    gObjCreatePet(ItemId);
}


void __declspec(naked) DrawAngelMovement()
{
   static DWORD dwDrawAngelMovement_Pointer;
   static DWORD dwDrawAngelMovement_Buffer;
   // ----
   bDrawAngelMovement_Switcher   = FALSE;
   // ----
   _asm
   {
      MOV EAX,DWORD PTR SS:[EBP+0x8]
      MOV ECX,DWORD PTR DS:[EAX+0x30]
      MOV dwDrawAngelMovement_Pointer,ECX
   }
   // ----
   if(dwDrawAngelMovement_Pointer == ITEM2(13,0))         // -> Angel Pet
   {
      bDrawAngelMovement_Switcher   = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,145))      // -> Unicorn Pet
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,146))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,147))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,148))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,149))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,150))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,151))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,152))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,153))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,154))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   /*
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,155))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,155))      // -> Unicorn Pet
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,156))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,157))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,158))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,159))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,160))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,161))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,162))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,163))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,164))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,165))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,166))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,167))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,168))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,169))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,170))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,171))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,172))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,173))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,174))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,175))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,176))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,177))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,178))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,179))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,180))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,181))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,182))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,183))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,184))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,185))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,186))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,187))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,188))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,189))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,190))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,191))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,192))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,193))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,194))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,195))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,196))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,197))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   else if(dwDrawAngelMovement_Pointer == ITEM2(13,198))
   {
      bDrawAngelMovement_Switcher = TRUE;
   }   
   */
   // ----
   if(bDrawAngelMovement_Switcher == TRUE)
   {
      _asm
      {
         MOV dwDrawAngelMovement_Buffer,0x00503407
         JMP dwDrawAngelMovement_Buffer
      }
   }
   else
   {
      _asm
      {
         MOV dwDrawAngelMovement_Buffer,0x005033F7
         JMP dwDrawAngelMovement_Buffer
      }
   }
}

bool ResetPetPreviewEx(int ItemId)
{
    bool Result;
    // ----
    if (ItemId)
        Result = *(WORD*)ItemId == ItemId(13,0)    //Angel
      /*
        || *(WORD*)ItemId == ItemId(13,1)        //Satan
        || *(WORD*)ItemId == ItemId(13,2)        //Unicorn
        || *(WORD*)ItemId == ItemId(13,3)        //Dinorant
        || *(WORD*)ItemId == ItemId(13,4)        //Dark Horse
        || *(WORD*)ItemId == ItemId(13,5)        //Dark Raven
        || *(WORD*)ItemId == ItemId(13,37)        //Fenrir
        || *(WORD*)ItemId == ItemId(13,63)        //Demon
        || *(WORD*)ItemId == ItemId(13,64)        //Maria
        || *(WORD*)ItemId == ItemId(13,66)        //Rudol
      || *(WORD*)ItemId == ItemId(13,80)        //Panda
      || *(WORD*)ItemId == ItemId(13,106)        //Panda
      || *(WORD*)ItemId == ItemId(13,123)       //Panda
      */
      // Custom Pet
        || *(WORD*)ItemId == ItemId(13,145)
        || *(WORD*)ItemId == ItemId(13,146)
      || *(WORD*)ItemId == ItemId(13,147)
      || *(WORD*)ItemId == ItemId(13,148)
      || *(WORD*)ItemId == ItemId(13,149)
      || *(WORD*)ItemId == ItemId(13,150)
      || *(WORD*)ItemId == ItemId(13,151)
      || *(WORD*)ItemId == ItemId(13,152)
      || *(WORD*)ItemId == ItemId(13,153)
      || *(WORD*)ItemId == ItemId(13,154);
      /*
      || *(WORD*)ItemId == ItemId(13,155);
      
      || *(WORD*)ItemId == ItemId(13,156)
      || *(WORD*)ItemId == ItemId(13,157)
      || *(WORD*)ItemId == ItemId(13,158)
      || *(WORD*)ItemId == ItemId(13,159)
      || *(WORD*)ItemId == ItemId(13,160)
      || *(WORD*)ItemId == ItemId(13,161)
      || *(WORD*)ItemId == ItemId(13,162)
      || *(WORD*)ItemId == ItemId(13,163)
      || *(WORD*)ItemId == ItemId(13,164)
      || *(WORD*)ItemId == ItemId(13,165)
      || *(WORD*)ItemId == ItemId(13,166)
      || *(WORD*)ItemId == ItemId(13,167)
      || *(WORD*)ItemId == ItemId(13,168)
      || *(WORD*)ItemId == ItemId(13,169)
      || *(WORD*)ItemId == ItemId(13,170)
      || *(WORD*)ItemId == ItemId(13,171)
      || *(WORD*)ItemId == ItemId(13,172)
      || *(WORD*)ItemId == ItemId(13,173)
      || *(WORD*)ItemId == ItemId(13,174)
      || *(WORD*)ItemId == ItemId(13,175)
      || *(WORD*)ItemId == ItemId(13,176)
      || *(WORD*)ItemId == ItemId(13,177)
      || *(WORD*)ItemId == ItemId(13,178)
      || *(WORD*)ItemId == ItemId(13,179)
      || *(WORD*)ItemId == ItemId(13,180)   
      || *(WORD*)ItemId == ItemId(13,181)
      || *(WORD*)ItemId == ItemId(13,182)
      || *(WORD*)ItemId == ItemId(13,183)
      || *(WORD*)ItemId == ItemId(13,184)
      || *(WORD*)ItemId == ItemId(13,185)
      || *(WORD*)ItemId == ItemId(13,186)
      || *(WORD*)ItemId == ItemId(13,187)
      || *(WORD*)ItemId == ItemId(13,188)
      || *(WORD*)ItemId == ItemId(13,189)
      || *(WORD*)ItemId == ItemId(13,190)
      || *(WORD*)ItemId == ItemId(13,191)
      || *(WORD*)ItemId == ItemId(13,192)
      || *(WORD*)ItemId == ItemId(13,193)
      || *(WORD*)ItemId == ItemId(13,194)
      || *(WORD*)ItemId == ItemId(13,195)
      || *(WORD*)ItemId == ItemId(13,196)
      || *(WORD*)ItemId == ItemId(13,197)
      || *(WORD*)ItemId == ItemId(13,198);
   */
    else
        Result = 0;
    return Result;
}

__declspec(naked) void PetMoviment()
{
    _asm
    {   
        CMP DWORD PTR DS:[ECX+0x030],0x1E93
        JE SHORT Pet   
Pet:
        CMP DWORD PTR DS:[ECX+0x030],0x1F24
        JE SHORT Exit   
Exit:
        mov eax,0x00503407
        jmp eax
    }
}


void gObjCreatePetExHook()
{
    SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x007DD1B4,ASM::CALL);
    SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x008339B8,ASM::CALL);
   SetRange((LPVOID)0x005033EB,12,ASM::NOP);
   SetJmp((LPVOID)0x005033EB,DrawAngelMovement);
   SetOp((LPVOID)0x00836331,ResetPetPreviewEx,ASM::CALL);
   //ToolKit.WriteJmp(0x005033EE,(DWORD)&PetMoviment);
}

main.cpp
#include "NewPet.h"

gObjCreatePetExHook();

Esa no es la source original pero no se si sirva la que tengo esta terminada

Offline iramondias #7 on: January 21, 2019, 02:58:14 PM

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 55
  • Gracias recibida: 33
  • br
Compro esta Source completa.

Offline Daniel@ #8 on: January 21, 2019, 03:18:24 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 140
  • Gracias recibida: 707
  • ve
 lol

no hay nececidad de hacer esto

Code: [Select]
void gObjCreatePetEx(int ItemId)
{
    int ItemSwitch        = *(WORD*)ItemId;
    int PetPreview        = LODWORD(pPreviewPetThis) + 776;
    // ----
    switch (ItemSwitch)
    {
        case ItemId(13, 145):
            gObjCreateBug(eBugType::NewPet, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 146):
            gObjCreateBug(eBugType::NewPet1, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 147):
            gObjCreateBug(eBugType::NewPet2, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 148):
            gObjCreateBug(eBugType::NewPet3, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 149):
            gObjCreateBug(eBugType::NewPet4, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 150):
            gObjCreateBug(eBugType::NewPet5, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 151):
            gObjCreateBug(eBugType::NewPet6, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 152):
            gObjCreateBug(eBugType::NewPet7, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 153):
            gObjCreateBug(eBugType::NewPet8, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 154):
            gObjCreateBug(eBugType::NewPet9, PetPreview + 252, PetPreview, 0, 0);
        break;
      /*
        case ItemId(13, 155):
            gObjCreateBug(eBugType::NewPet10, PetPreview + 252, PetPreview, 0, 0);
        break;
     
        case ItemId(13, 156):
            gObjCreateBug(eBugType::NewPet11, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 157):
            gObjCreateBug(eBugType::NewPet12, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 158):
            gObjCreateBug(eBugType::NewPet13, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 159):
            gObjCreateBug(eBugType::NewPet14, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 160):
            gObjCreateBug(eBugType::NewPet15, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 161):
            gObjCreateBug(eBugType::NewPet16, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 162):
            gObjCreateBug(eBugType::NewPet17, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 163):
            gObjCreateBug(eBugType::NewPet18, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 164):
            gObjCreateBug(eBugType::NewPet19, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 165):
            gObjCreateBug(eBugType::NewPet20, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 166):
            gObjCreateBug(eBugType::NewPet21, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 167):
            gObjCreateBug(eBugType::NewPet22, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 168):
            gObjCreateBug(eBugType::NewPet23, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 169):
            gObjCreateBug(eBugType::NewPet24, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 170):
            gObjCreateBug(eBugType::NewPet25, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 171):
            gObjCreateBug(eBugType::NewPet26, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 172):
            gObjCreateBug(eBugType::NewPet27, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 173):
            gObjCreateBug(eBugType::NewPet28, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 174):
            gObjCreateBug(eBugType::NewPet29, PetPreview + 252, PetPreview, 0, 0);
        break;         
        case ItemId(13, 175):
            gObjCreateBug(eBugType::NewPet30, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 176):
            gObjCreateBug(eBugType::NewPet31, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 177):
            gObjCreateBug(eBugType::NewPet32, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 178):
            gObjCreateBug(eBugType::NewPet33, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 179):
            gObjCreateBug(eBugType::NewPet34, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 180):
            gObjCreateBug(eBugType::NewPet35, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 181):
            gObjCreateBug(eBugType::NewPet36, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 182):
            gObjCreateBug(eBugType::NewPet37, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 183):
            gObjCreateBug(eBugType::NewPet38, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 184):
            gObjCreateBug(eBugType::NewPet39, PetPreview + 252, PetPreview, 0, 0);
        break;           
        case ItemId(13, 185):
            gObjCreateBug(eBugType::NewPet40, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 186):
            gObjCreateBug(eBugType::NewPet41, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 187):
            gObjCreateBug(eBugType::NewPet42, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 188):
            gObjCreateBug(eBugType::NewPet43, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 189):
            gObjCreateBug(eBugType::NewPet44, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 190):
            gObjCreateBug(eBugType::NewPet45, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 191):
            gObjCreateBug(eBugType::NewPet46, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 192):
            gObjCreateBug(eBugType::NewPet47, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 193):
            gObjCreateBug(eBugType::NewPet48, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 194):
            gObjCreateBug(eBugType::NewPet49, PetPreview + 252, PetPreview, 0, 0);
        break;     
      case ItemId(13, 195):
            gObjCreateBug(eBugType::NewPet50, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 196):
            gObjCreateBug(eBugType::NewPet51, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 197):
            gObjCreateBug(eBugType::NewPet52, PetPreview + 252, PetPreview, 0, 0);
        break;
        case ItemId(13, 198):
            gObjCreateBug(eBugType::NewPet53, PetPreview + 252, PetPreview, 0, 0);
        break;
      */
        // ---
    }
    gObjCreatePet(ItemId);
}

si se puede hacer esto

Code: [Select]
void gObjCreatePetEx(int ItemId)
{
int ItemSwitch = *(WORD*)ItemId;
int PetPreview = LODWORD(pPreviewPetThis) + 776;
// ----
if (ItemSwitch >= ITEM(13, 147) && ItemSwitch <= ITEM(13, 500))
{
gObjCreateBug(ItemSwitch + 1171, PetPreview + 252, PetPreview, 0, 0);
}
gObjCreatePet(ItemId);
}

Gracias:


Offline AZURE #9 on: January 21, 2019, 05:33:05 PM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 106
  • Gracias recibida: 943
  • cl
Don't working, crash main.

SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x007DD304,ASM::CALL);
SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x00833B08,ASM::CALL);



DONDE SE AGREGAN ESAS LINEAS?

Offline MollvaX #10 on: January 27, 2019, 12:47:19 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 11
  • Gracias recibida: 133
  • ve
Don't working, crash main.

SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x007DD304,ASM::CALL);
SetHook((LPVOID)gObjCreatePetEx,(LPVOID)0x00833B08,ASM::CALL);



DONDE SE AGREGAN ESAS LINEAS?

Main.cpp

Offline lokura #11 on: January 28, 2019, 10:25:01 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 34
  • Gracias recibida: 3
  • pe
parece que anda bn pero solo visualiza 1 como hago para que visualicen los demás que puse ?

Offline shangxin #12 on: February 05, 2019, 11:01:26 AM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 67
  • Gracias recibida: 18
  • cn
How to fix the custom pet PreviewCharSet
?????

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1690 Views
Last post August 11, 2016, 05:20:45 PM
by EmmaDCG
4 Replies
600 Views
Last post October 20, 2017, 10:57:53 AM
by darkroh
3 Replies
699 Views
Last post November 24, 2017, 05:56:46 PM
by splound
1 Replies
254 Views
Last post October 24, 2018, 10:10:23 PM
by aemoscon
0 Replies
92 Views
Last post June 26, 2019, 07:00:04 AM
by hisokaiba