Goten
02/05/2020, 07:54 PM
Antes:
[Only registered and activated users can see links]
Depois:
[Only registered and activated users can see links]
Vídeo:
[Only registered and activated users can see links]
NPC.cpp
#include "stdafx.h"
#include "NPC.h"
#include "TMemory.h"
#include "Import.h"
#include "Defines.h"
#include "Object.h"
NPC gNPC;
Naked(NPC::CursedWizard) {
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, 12);
//gPreview->WeaponSecondSlot = ITEM2(6, 14);
gPreview->WingsSlot = ITEM2(12, 4);
// ----
gPreview->HelmLevel = 13;
gPreview->ArmorLevel = 13;
gPreview->PantsLevel = 13;
gPreview->GlovesLevel = 13;
gPreview->BootsLevel = 13;
gPreview->WeaponFirstLevel = 13;
//gPreview->WeaponSecondLevel = 0;
// ----
gPreview->HelmExcellent = 1;
gPreview->ArmorExcellent = 1;
gPreview->PantsExcellent = 1;
gPreview->GlovesExcellent = 1;
gPreview->BootsExcellent = 1;
//gPreview->WeaponFirstExcellent = 0;
//gPreview->WeaponSecondExcellent = 0;
// ----
gPreview->Class = SoulMaster;
// ----
_asm {
MOV ECX, 0x00583099
JMP ECX
}
}
void NPC::Load() {
SetRange((LPVOID)0x00582FE6, 5, ASM::NOP);
SetOp((LPVOID)0x00582FE6, (LPVOID) this->CursedWizard, ASM::JMP);
}
////////////////////////////////////////////////////////////////////////////////////
NPC.h
#pragma once
class NPC {
public:
void Load();
// ----
static void FixShowLevel();
static void CursedWizard();
// ----
}; extern NPC gNPC;
////////////////////////////////////////////////////////////////////////////////////
Main.cpp
gNPC.Load();
Créditos:
RafhaelSouza
[Only registered and activated users can see links]
Depois:
[Only registered and activated users can see links]
Vídeo:
[Only registered and activated users can see links]
NPC.cpp
#include "stdafx.h"
#include "NPC.h"
#include "TMemory.h"
#include "Import.h"
#include "Defines.h"
#include "Object.h"
NPC gNPC;
Naked(NPC::CursedWizard) {
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, 12);
//gPreview->WeaponSecondSlot = ITEM2(6, 14);
gPreview->WingsSlot = ITEM2(12, 4);
// ----
gPreview->HelmLevel = 13;
gPreview->ArmorLevel = 13;
gPreview->PantsLevel = 13;
gPreview->GlovesLevel = 13;
gPreview->BootsLevel = 13;
gPreview->WeaponFirstLevel = 13;
//gPreview->WeaponSecondLevel = 0;
// ----
gPreview->HelmExcellent = 1;
gPreview->ArmorExcellent = 1;
gPreview->PantsExcellent = 1;
gPreview->GlovesExcellent = 1;
gPreview->BootsExcellent = 1;
//gPreview->WeaponFirstExcellent = 0;
//gPreview->WeaponSecondExcellent = 0;
// ----
gPreview->Class = SoulMaster;
// ----
_asm {
MOV ECX, 0x00583099
JMP ECX
}
}
void NPC::Load() {
SetRange((LPVOID)0x00582FE6, 5, ASM::NOP);
SetOp((LPVOID)0x00582FE6, (LPVOID) this->CursedWizard, ASM::JMP);
}
////////////////////////////////////////////////////////////////////////////////////
NPC.h
#pragma once
class NPC {
public:
void Load();
// ----
static void FixShowLevel();
static void CursedWizard();
// ----
}; extern NPC gNPC;
////////////////////////////////////////////////////////////////////////////////////
Main.cpp
gNPC.Load();
Créditos:
RafhaelSouza