Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: CustomSoldierElf Skin MuEmu  (Visto 963 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline seedmaker on: March 30, 2019, 05:15:48 AM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 119
  • Gracias recibida: 246
  • ph
CustomSoldierElf Skin MuEmu

If anybody know what is the offset of Guard NPC please share it thank you xD






Offline djagripnos #1 on: March 30, 2019, 05:52:29 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 569
  • Gracias recibida: 12081
  • gr
@seedmaker


NPC.H

Citar
#pragma once

class NPC {
  public:
    void        Load();
    // ----
    static void FixShowLevel();
    static void ElfSoldier();
    static void Marlon();
    static void ChaosCardMaster();
    static void Guard1();
    static void Guard2();
    // ----
}; extern NPC gNPC;
// ----------------------------------------------------------------------------------------------


NPC.CPP

Citar
#include "stdafx.h"
#include "Item.h"
#include "NPC.h"
#include "TMemory.h"
#include "Import.h"
#include "Defines.h"
// ----------------------------------------------------------------------------------------------

NPC gNPC;
// ----------------------------------------------------------------------------------------------

void NPC::Load() {
   SetRange((LPVOID)0x0057FCCF, 5, ASM::NOP);
   SetOp((LPVOID)0x0057FCCF, (LPVOID) this->ElfSoldier, ASM::JMP);
   // ----
   SetRange((LPVOID)0x005842B1, 5, ASM::NOP);
   SetOp((LPVOID)0x005842B1, (LPVOID) this->Marlon, ASM::JMP);
   // ----
   SetRange((LPVOID)0x005852E4, 5, ASM::NOP);
   SetOp((LPVOID)0x005852E4, (LPVOID) this->ChaosCardMaster, ASM::JMP);
   // ----
   SetRange((LPVOID)0x00584A4E, 5, ASM::NOP);
   SetOp((LPVOID)0x00584A4E, (LPVOID) this->Guard1, ASM::JMP);
   // ----
   SetRange((LPVOID)0x00584B82, 5, ASM::NOP);
   SetOp((LPVOID)0x00584B82, (LPVOID) this->Guard2, ASM::JMP);
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ElfSoldier) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP + 0x08]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 31);
   gPreview->ArmorSlot = ITEM2(8, 31);
   gPreview->PantsSlot = ITEM2(9, 31);
   gPreview->GlovesSlot = ITEM2(10, 31);
   gPreview->BootsSlot = ITEM2(11, 31);
   gPreview->WeaponFirstSlot = ITEM2(4, 1);
   gPreview->WeaponSecondSlot = ITEM2(4, 21);
   gPreview->WingsSlot = ITEM2(12, 38);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x0057FD5B
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Marlon) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 29);
   gPreview->ArmorSlot = ITEM2(8, 29);
   gPreview->PantsSlot = ITEM2(9, 29);
   gPreview->GlovesSlot = ITEM2(10, 29);
   gPreview->BootsSlot = ITEM2(11, 29);
   gPreview->WeaponFirstSlot = ITEM2(0, 22);
   gPreview->WeaponSecondSlot = ITEM2(0, 22);
   gPreview->WingsSlot = ITEM2(12, 36);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00584354
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ChaosCardMaster) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 30);
   gPreview->ArmorSlot = ITEM2(8, 30);
   gPreview->PantsSlot = ITEM2(9, 30);
   gPreview->GlovesSlot = ITEM2(10, 30);
   gPreview->BootsSlot = ITEM2(11, 30);
   gPreview->WeaponFirstSlot = ITEM2(5, 30);
   gPreview->WeaponSecondSlot = ITEM2(6, 30);
   gPreview->WingsSlot = ITEM2(12, 37);
   // ----
   gPreview->HelmLevel = 13;
   gPreview->ArmorLevel = 13;
   gPreview->PantsLevel = 13;
   gPreview->GlovesLevel = 13;
   gPreview->BootsLevel = 13;
   gPreview->WeaponFirstLevel = 13;
   gPreview->WeaponSecondLevel = 13;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00585390
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard1) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 2);
   gPreview->ArmorSlot = ITEM2(8, 2);
   gPreview->PantsSlot = ITEM2(9, 2);
   gPreview->GlovesSlot = ITEM2(10, 2);
   gPreview->BootsSlot = ITEM2(11, 2);
   gPreview->WeaponFirstSlot = ITEM2(5, 10);
   gPreview->WeaponSecondSlot = ITEM2(6, 14);
   gPreview->WingsSlot = ITEM2(12, 4);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   gPreview->Class = SoulMaster;
   // ----
   _asm {
      MOV ECX, 0x00584AB7
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard2) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 1);
   gPreview->ArmorSlot = ITEM2(8, 1);
   gPreview->PantsSlot = ITEM2(9, 1);
   gPreview->GlovesSlot = ITEM2(10, 1);
   gPreview->BootsSlot = ITEM2(11, 1);
   gPreview->WeaponFirstSlot = ITEM2(0, 17);
   gPreview->WingsSlot = ITEM2(12, 5);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->Class = BladeMaster;
   // ----
   _asm {
      MOV ECX, 0x00584BDC
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------


main.cpp

gNPC.Load();
« Ultima edicion: March 30, 2019, 05:54:57 AM by djagripnos »

Gracias:


Offline seedmaker #2 on: March 30, 2019, 06:10:57 AM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 119
  • Gracias recibida: 246
  • ph
@seedmaker


NPC.H

Citar
#pragma once

class NPC {
  public:
    void        Load();
    // ----
    static void FixShowLevel();
    static void ElfSoldier();
    static void Marlon();
    static void ChaosCardMaster();
    static void Guard1();
    static void Guard2();
    // ----
}; extern NPC gNPC;
// ----------------------------------------------------------------------------------------------


NPC.CPP

Citar
#include "stdafx.h"
#include "Item.h"
#include "NPC.h"
#include "TMemory.h"
#include "Import.h"
#include "Defines.h"
// ----------------------------------------------------------------------------------------------

NPC gNPC;
// ----------------------------------------------------------------------------------------------

void NPC::Load() {
   SetRange((LPVOID)0x0057FCCF, 5, ASM::NOP);
   SetOp((LPVOID)0x0057FCCF, (LPVOID) this->ElfSoldier, ASM::JMP);
   // ----
   SetRange((LPVOID)0x005842B1, 5, ASM::NOP);
   SetOp((LPVOID)0x005842B1, (LPVOID) this->Marlon, ASM::JMP);
   // ----
   SetRange((LPVOID)0x005852E4, 5, ASM::NOP);
   SetOp((LPVOID)0x005852E4, (LPVOID) this->ChaosCardMaster, ASM::JMP);
   // ----
   SetRange((LPVOID)0x00584A4E, 5, ASM::NOP);
   SetOp((LPVOID)0x00584A4E, (LPVOID) this->Guard1, ASM::JMP);
   // ----
   SetRange((LPVOID)0x00584B82, 5, ASM::NOP);
   SetOp((LPVOID)0x00584B82, (LPVOID) this->Guard2, ASM::JMP);
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ElfSoldier) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP + 0x08]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 31);
   gPreview->ArmorSlot = ITEM2(8, 31);
   gPreview->PantsSlot = ITEM2(9, 31);
   gPreview->GlovesSlot = ITEM2(10, 31);
   gPreview->BootsSlot = ITEM2(11, 31);
   gPreview->WeaponFirstSlot = ITEM2(4, 1);
   gPreview->WeaponSecondSlot = ITEM2(4, 21);
   gPreview->WingsSlot = ITEM2(12, 38);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x0057FD5B
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Marlon) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 29);
   gPreview->ArmorSlot = ITEM2(8, 29);
   gPreview->PantsSlot = ITEM2(9, 29);
   gPreview->GlovesSlot = ITEM2(10, 29);
   gPreview->BootsSlot = ITEM2(11, 29);
   gPreview->WeaponFirstSlot = ITEM2(0, 22);
   gPreview->WeaponSecondSlot = ITEM2(0, 22);
   gPreview->WingsSlot = ITEM2(12, 36);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00584354
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ChaosCardMaster) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 30);
   gPreview->ArmorSlot = ITEM2(8, 30);
   gPreview->PantsSlot = ITEM2(9, 30);
   gPreview->GlovesSlot = ITEM2(10, 30);
   gPreview->BootsSlot = ITEM2(11, 30);
   gPreview->WeaponFirstSlot = ITEM2(5, 30);
   gPreview->WeaponSecondSlot = ITEM2(6, 30);
   gPreview->WingsSlot = ITEM2(12, 37);
   // ----
   gPreview->HelmLevel = 13;
   gPreview->ArmorLevel = 13;
   gPreview->PantsLevel = 13;
   gPreview->GlovesLevel = 13;
   gPreview->BootsLevel = 13;
   gPreview->WeaponFirstLevel = 13;
   gPreview->WeaponSecondLevel = 13;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00585390
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard1) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 2);
   gPreview->ArmorSlot = ITEM2(8, 2);
   gPreview->PantsSlot = ITEM2(9, 2);
   gPreview->GlovesSlot = ITEM2(10, 2);
   gPreview->BootsSlot = ITEM2(11, 2);
   gPreview->WeaponFirstSlot = ITEM2(5, 10);
   gPreview->WeaponSecondSlot = ITEM2(6, 14);
   gPreview->WingsSlot = ITEM2(12, 4);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   gPreview->Class = SoulMaster;
   // ----
   _asm {
      MOV ECX, 0x00584AB7
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard2) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 1);
   gPreview->ArmorSlot = ITEM2(8, 1);
   gPreview->PantsSlot = ITEM2(9, 1);
   gPreview->GlovesSlot = ITEM2(10, 1);
   gPreview->BootsSlot = ITEM2(11, 1);
   gPreview->WeaponFirstSlot = ITEM2(0, 17);
   gPreview->WingsSlot = ITEM2(12, 5);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->Class = BladeMaster;
   // ----
   _asm {
      MOV ECX, 0x00584BDC
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------


main.cpp

gNPC.Load();

Thank you

Gracias:


Offline admmunowar #3 on: April 27, 2019, 02:25:38 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 89
  • Gracias recibida: 1432
  • br
@seedmaker


NPC.H

Citar
#pragma once

class NPC {
  public:
    void        Load();
    // ----
    static void FixShowLevel();
    static void ElfSoldier();
    static void Marlon();
    static void ChaosCardMaster();
    static void Guard1();
    static void Guard2();
    // ----
}; extern NPC gNPC;
// ----------------------------------------------------------------------------------------------


NPC.CPP

Citar
#include "stdafx.h"
#include "Item.h"
#include "NPC.h"
#include "TMemory.h"
#include "Import.h"
#include "Defines.h"
// ----------------------------------------------------------------------------------------------

NPC gNPC;
// ----------------------------------------------------------------------------------------------

void NPC::Load() {
   SetRange((LPVOID)0x0057FCCF, 5, ASM::NOP);
   SetOp((LPVOID)0x0057FCCF, (LPVOID) this->ElfSoldier, ASM::JMP);
   // ----
   SetRange((LPVOID)0x005842B1, 5, ASM::NOP);
   SetOp((LPVOID)0x005842B1, (LPVOID) this->Marlon, ASM::JMP);
   // ----
   SetRange((LPVOID)0x005852E4, 5, ASM::NOP);
   SetOp((LPVOID)0x005852E4, (LPVOID) this->ChaosCardMaster, ASM::JMP);
   // ----
   SetRange((LPVOID)0x00584A4E, 5, ASM::NOP);
   SetOp((LPVOID)0x00584A4E, (LPVOID) this->Guard1, ASM::JMP);
   // ----
   SetRange((LPVOID)0x00584B82, 5, ASM::NOP);
   SetOp((LPVOID)0x00584B82, (LPVOID) this->Guard2, ASM::JMP);
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ElfSoldier) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP + 0x08]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 31);
   gPreview->ArmorSlot = ITEM2(8, 31);
   gPreview->PantsSlot = ITEM2(9, 31);
   gPreview->GlovesSlot = ITEM2(10, 31);
   gPreview->BootsSlot = ITEM2(11, 31);
   gPreview->WeaponFirstSlot = ITEM2(4, 1);
   gPreview->WeaponSecondSlot = ITEM2(4, 21);
   gPreview->WingsSlot = ITEM2(12, 38);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x0057FD5B
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Marlon) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 29);
   gPreview->ArmorSlot = ITEM2(8, 29);
   gPreview->PantsSlot = ITEM2(9, 29);
   gPreview->GlovesSlot = ITEM2(10, 29);
   gPreview->BootsSlot = ITEM2(11, 29);
   gPreview->WeaponFirstSlot = ITEM2(0, 22);
   gPreview->WeaponSecondSlot = ITEM2(0, 22);
   gPreview->WingsSlot = ITEM2(12, 36);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00584354
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ChaosCardMaster) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 30);
   gPreview->ArmorSlot = ITEM2(8, 30);
   gPreview->PantsSlot = ITEM2(9, 30);
   gPreview->GlovesSlot = ITEM2(10, 30);
   gPreview->BootsSlot = ITEM2(11, 30);
   gPreview->WeaponFirstSlot = ITEM2(5, 30);
   gPreview->WeaponSecondSlot = ITEM2(6, 30);
   gPreview->WingsSlot = ITEM2(12, 37);
   // ----
   gPreview->HelmLevel = 13;
   gPreview->ArmorLevel = 13;
   gPreview->PantsLevel = 13;
   gPreview->GlovesLevel = 13;
   gPreview->BootsLevel = 13;
   gPreview->WeaponFirstLevel = 13;
   gPreview->WeaponSecondLevel = 13;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00585390
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard1) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 2);
   gPreview->ArmorSlot = ITEM2(8, 2);
   gPreview->PantsSlot = ITEM2(9, 2);
   gPreview->GlovesSlot = ITEM2(10, 2);
   gPreview->BootsSlot = ITEM2(11, 2);
   gPreview->WeaponFirstSlot = ITEM2(5, 10);
   gPreview->WeaponSecondSlot = ITEM2(6, 14);
   gPreview->WingsSlot = ITEM2(12, 4);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   gPreview->Class = SoulMaster;
   // ----
   _asm {
      MOV ECX, 0x00584AB7
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard2) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 1);
   gPreview->ArmorSlot = ITEM2(8, 1);
   gPreview->PantsSlot = ITEM2(9, 1);
   gPreview->GlovesSlot = ITEM2(10, 1);
   gPreview->BootsSlot = ITEM2(11, 1);
   gPreview->WeaponFirstSlot = ITEM2(0, 17);
   gPreview->WingsSlot = ITEM2(12, 5);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->Class = BladeMaster;
   // ----
   _asm {
      MOV ECX, 0x00584BDC
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------


main.cpp

gNPC.Load();

Thank you


Copyright © By Pro-Yoshi

Online chuckhai #4 on: April 28, 2019, 12:36:56 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 33
  • Gracias recibida: 73
  • vn
@seedmaker


NPC.H

Citar
#pragma once

class NPC {
  public:
    void        Load();
    // ----
    static void FixShowLevel();
    static void ElfSoldier();
    static void Marlon();
    static void ChaosCardMaster();
    static void Guard1();
    static void Guard2();
    // ----
}; extern NPC gNPC;
// ----------------------------------------------------------------------------------------------


NPC.CPP

Citar
#include "stdafx.h"
#include "Item.h"
#include "NPC.h"
#include "TMemory.h"
#include "Import.h"
#include "Defines.h"
// ----------------------------------------------------------------------------------------------

NPC gNPC;
// ----------------------------------------------------------------------------------------------

void NPC::Load() {
   SetRange((LPVOID)0x0057FCCF, 5, ASM::NOP);
   SetOp((LPVOID)0x0057FCCF, (LPVOID) this->ElfSoldier, ASM::JMP);
   // ----
   SetRange((LPVOID)0x005842B1, 5, ASM::NOP);
   SetOp((LPVOID)0x005842B1, (LPVOID) this->Marlon, ASM::JMP);
   // ----
   SetRange((LPVOID)0x005852E4, 5, ASM::NOP);
   SetOp((LPVOID)0x005852E4, (LPVOID) this->ChaosCardMaster, ASM::JMP);
   // ----
   SetRange((LPVOID)0x00584A4E, 5, ASM::NOP);
   SetOp((LPVOID)0x00584A4E, (LPVOID) this->Guard1, ASM::JMP);
   // ----
   SetRange((LPVOID)0x00584B82, 5, ASM::NOP);
   SetOp((LPVOID)0x00584B82, (LPVOID) this->Guard2, ASM::JMP);
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ElfSoldier) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP + 0x08]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 31);
   gPreview->ArmorSlot = ITEM2(8, 31);
   gPreview->PantsSlot = ITEM2(9, 31);
   gPreview->GlovesSlot = ITEM2(10, 31);
   gPreview->BootsSlot = ITEM2(11, 31);
   gPreview->WeaponFirstSlot = ITEM2(4, 1);
   gPreview->WeaponSecondSlot = ITEM2(4, 21);
   gPreview->WingsSlot = ITEM2(12, 38);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x0057FD5B
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Marlon) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 29);
   gPreview->ArmorSlot = ITEM2(8, 29);
   gPreview->PantsSlot = ITEM2(9, 29);
   gPreview->GlovesSlot = ITEM2(10, 29);
   gPreview->BootsSlot = ITEM2(11, 29);
   gPreview->WeaponFirstSlot = ITEM2(0, 22);
   gPreview->WeaponSecondSlot = ITEM2(0, 22);
   gPreview->WingsSlot = ITEM2(12, 36);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00584354
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ChaosCardMaster) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 30);
   gPreview->ArmorSlot = ITEM2(8, 30);
   gPreview->PantsSlot = ITEM2(9, 30);
   gPreview->GlovesSlot = ITEM2(10, 30);
   gPreview->BootsSlot = ITEM2(11, 30);
   gPreview->WeaponFirstSlot = ITEM2(5, 30);
   gPreview->WeaponSecondSlot = ITEM2(6, 30);
   gPreview->WingsSlot = ITEM2(12, 37);
   // ----
   gPreview->HelmLevel = 13;
   gPreview->ArmorLevel = 13;
   gPreview->PantsLevel = 13;
   gPreview->GlovesLevel = 13;
   gPreview->BootsLevel = 13;
   gPreview->WeaponFirstLevel = 13;
   gPreview->WeaponSecondLevel = 13;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00585390
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard1) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 2);
   gPreview->ArmorSlot = ITEM2(8, 2);
   gPreview->PantsSlot = ITEM2(9, 2);
   gPreview->GlovesSlot = ITEM2(10, 2);
   gPreview->BootsSlot = ITEM2(11, 2);
   gPreview->WeaponFirstSlot = ITEM2(5, 10);
   gPreview->WeaponSecondSlot = ITEM2(6, 14);
   gPreview->WingsSlot = ITEM2(12, 4);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   gPreview->Class = SoulMaster;
   // ----
   _asm {
      MOV ECX, 0x00584AB7
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard2) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, 1);
   gPreview->ArmorSlot = ITEM2(8, 1);
   gPreview->PantsSlot = ITEM2(9, 1);
   gPreview->GlovesSlot = ITEM2(10, 1);
   gPreview->BootsSlot = ITEM2(11, 1);
   gPreview->WeaponFirstSlot = ITEM2(0, 17);
   gPreview->WingsSlot = ITEM2(12, 5);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->Class = BladeMaster;
   // ----
   _asm {
      MOV ECX, 0x00584BDC
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------


main.cpp

gNPC.Load();

Thank you




#include   "NPC.h" ?????

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
685 Views
Last post October 20, 2016, 12:30:34 PM
by EmmaDCG
4 Replies
501 Views
Last post March 20, 2017, 02:17:23 PM
by FORTACHON
1 Replies
374 Views
Last post July 11, 2018, 12:46:35 PM
by Marote
6 Replies
324 Views
Last post February 28, 2019, 09:09:49 PM
by Cloud
2 Replies
147 Views
Last post May 14, 2019, 12:14:56 AM
by shirleysupeercool14