Ir para conteúdo
Faça parte da equipe! (2024) ×

Menu Selection Coding/Source - VER_BR_1407.08 em 31/07/2014


OlhaOsHacks
 Compartilhar

Posts Recomendados

Menu Selection Coding/Source atualizado para cliente VER_BR_1407.08 em 31/07/2014

 

HUEHUEHUE_BR_BR.png

 

Itens.h




#include "Menu.h"

#define Titulo1 "BR HUEHUEHUE"
#define Titulo2 "AhnLabs NOOBS"
#define Titulo3 "Nexon NOOBS"
#define Titulo4 "Level Up NOOBS"
#define Titulo5 "Lithtech Cheats"

#define GameStatus 0x37996A68
#define FPS 0x37968F50
#define SuperJump 0x3796A488
#define dwWalkVel 0x3796A3F8
#define dwFRunVel 0x3796A41C
#define dwBRunVel 0x3796A440
#define dwSRunVel 0x3796A464
#define dwDuckVel 0x3796A4AC
#define LTClientEXE 0x004912F0

char* Opt_Opções[] = {"OFF", "ON"};
char* Opt_Menu[] = {"+", "-"};

int d3dhacks, MiraD3D;
int consolehacks, chams, fog, Full, Calor;
int memoryhacks, fpss, iSuperPulo, speed;
int othershacks, movemenu;
bool bnxchams, bfogs, bFull, bCalor;

template < class T>
void SetVariable(unsigned long addr, T val){*(T*)addr = val;}
bool InGame(){return(*(PBYTE)GameStatus == 1);}

void CommandConsole(int Variable, const char* TextOn, const char* TextOff, bool &zsFlag)
{
typedef void(__cdecl*RunConsoleCommandFn)(const char* );
RunConsoleCommandFn PTCHACK = (RunConsoleCommandFn)LTClientEXE;
if(InGame() && Variable == 1 && zsFlag == false)
{
PTCHACK(TextOn);
zsFlag = true;
}
if((!InGame() || Variable == 0) && zsFlag == true)
{
PTCHACK(TextOff);
zsFlag = false;
}
}

void Funçoes(IDirect3DDevice9* pDevice)
{
if(GetAsyncKeyState(VK_INSERT)&1)
Menu = !Menu;

if(Menu)
{
if(pFont)
{
pFont->Release();
pFont = NULL;
}
if(!pFont)
{
D3DXCreateFontA(pDevice, 14, 0, 400, 1, 0, 1, 0, 4, 0|(0 << 4), "Lucida Console", &pFont);
}

DrawBox(PosX - 10, PosY - 22, 170, 20, TRed, White, pDevice);
PrintText(PosX + 75, PosY - 20, Yellow, Titulo1, DT_CENTER);
DrawBox(PosX - 10, PosY, 170, (Current*15), TBlack, White, pDevice);
DrawBorder(PosX - 10, Posy + (MenuSelection*15), 170, 13, 1, White, pDevice);
Current = 1;

Additem("D3D H4CKS", 1, d3dhacks, 1, Opt_Menu);
if(d3dhacks)
{
Additem(" Cr0ssh4ir D3D", 1, MiraD3D, 0, Opt_Opções);
}

Additem("C0NS0L3 H4CKS", 1, consolehacks, 1, Opt_Menu);
if(consolehacks)
{
Additem(" Nx Ch4ms", 1, chams, 0, Opt_Opções);
Additem(" N0 F0g", 1, fog, 0, Opt_Opções);
Additem(" Full Br1ght", 1, Full, 0, Opt_Opções);
Additem(" Scr33n Gl0w", 1, Calor, 0, Opt_Opções);
}

Additem("M3M0RY H4CKS", 1, memoryhacks, 1, Opt_Menu);
if(memoryhacks)
{
Additem(" Show FPS", 1, fpss, 0, Opt_Opções);
Additem(" Sup3r Jump", 1, iSuperPulo, 0, Opt_Opções);
Additem(" Sp33d H4ck", 1, speed, 0, Opt_Opções);
}

Additem("0TH3RS H4CKS", 1, othershacks, 1, Opt_Menu);
if(othershacks)
{
Additem(" Mov3 M3nu", 1, movemenu, 0, Opt_Opções);
}

if(GetAsyncKeyState(VK_UP)&1)
MenuSelection--;
if(GetAsyncKeyState(VK_DOWN)&1)
MenuSelection++;
if(MenuSelection >= Current)
MenuSelection = 1;
if(MenuSelection < 1)
MenuSelection = Current - 1;
}

if(InGame() && MiraD3D)
DrawBorder((int)GetSystemMetrics(0)/2 - 5, (int)GetSystemMetrics(1)/2 - 5, 10, 10, 1, 0xFFFF0000, pDevice);

CommandConsole(chams, " +SkelModelStencil 1 ", " +SkelModelStencil 0 ", bnxchams);
CommandConsole(fog, " +FogEnable 0 ", " +FogEnable 1 ", bfogs);
CommandConsole(Full, " +FullBright 1 ", " +FullBright 0 ", bFull);
CommandConsole(Calor, " +ScreenGlowEnable 1 ", " +ScreenGlowEnable 0 ", bCalor);

if(fpss) SetVariable <int>(FPS, 1);
else SetVariable <int>(FPS, 0);

if(iSuperPulo) SetVariable <float>(SuperJump, 330.0f*2);
else SetVariable <float>(SuperJump, 330.0f);

if(speed)
{
SetVariable <float>(dwWalkVel, 70.0f*3);
SetVariable <float>(dwFRunVel, 285.0f*3);
SetVariable <float>(dwBRunVel, 285.0f*3);
SetVariable <float>(dwSRunVel, 285.0f*3);
SetVariable <float>(dwDuckVel, 50.0f*3);
}
else
{
SetVariable <float>(dwWalkVel, 70.0f);
SetVariable <float>(dwFRunVel, 285.0f);
SetVariable <float>(dwBRunVel, 285.0f);
SetVariable <float>(dwSRunVel, 285.0f);
SetVariable <float>(dwDuckVel, 50.0f);
}

if(movemenu)
{
POINT myCursor;
GetCursorPos(&myCursor);
PosX = myCursor.x;
PosY = myCursor.y;
Posy = myCursor.y - 10;
}
}
É necessário se cadastrar para acessar o conteúdo.

 

Main.cpp



#include <windows.h>
#include <process.h>
#include <stdio.h>
#include <d3d9.h>
#include "Itens.h"

#pragma comment(lib, "d3d9.lib")

typedef long(__stdcall *Present)(IDirect3DDevice9* pDevice, const RECT* pSourceRect, const RECT* pDestRect, HWND hDestWindowOverride, const RGNDATA* pDirtyRegion);
Present retPresent;
long (__stdcall hookPresent)(IDirect3DDevice9* pDevice, const RECT* pSourceRect, const RECT* pDestRect, HWND hDestWindowOverride, const RGNDATA* pDirtyRegion)
{
pDevice->SetRenderState(D3DRS_ZENABLE, false);
Funçoes(pDevice);
pDevice->SetRenderState(D3DRS_ZENABLE, true);
return retPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}

void *DetourNOPJMP(BYTE *src, const BYTE *dst, const int len)
{
BYTE *jmp = (BYTE*)malloc(len + 5);
DWORD dwBack;
VirtualProtect(src, len, PAGE_READWRITE, &dwBack);
memcpy(jmp, src, len);
jmp += len;
jmp[0] = '\xE9';
*(DWORD*)(jmp + 1) = (DWORD)(src + len - jmp) - 5;
src[0] = '\x90';
src[1] = '\xE9';
*(DWORD*)(&src[2]) = (DWORD)(dst - src) - 6;
for (int i = 6; i < len; i++) src[i] = 0x90;
VirtualProtect(src, len, dwBack, &dwBack);
return (jmp - len);
}

void __cdecl Thread(void*)
{
IDirect3DDevice9* pD3DDevice;
IDirect3D9* pD3d9 = Direct3DCreate9(D3D_SDK_VERSION);
D3DPRESENT_PARAMETERS pPresentParms;
ZeroMemory(&pPresentParms, sizeof(pPresentParms));
pPresentParms.Windowed = true;
pPresentParms.BackBufferFormat = D3DFMT_UNKNOWN;
pPresentParms.SwapEffect = D3DSWAPEFFECT_DISCARD;
pD3d9->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, GetDesktopWindow(), D3DCREATE_SOFTWARE_VERTEXPROCESSING, &pPresentParms, &pD3DDevice);
unsigned long* dwTable = *(unsigned long**)pD3DDevice;

retPresent = (Present) DetourNOPJMP((BYTE*)dwTable[17], (BYTE*)&hookPresent, 10);
}

bool __stdcall DllMain(HINSTANCE hinstDLL, unsigned long fdwReason, void* lpvReserved)
{
if(fdwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hinstDLL);
_beginthread(Thread, 0, 0);
}
return true;
}

 

Créditos:

@OlhaOsHacks

@--Fenix--

@WE11ington

@steven1578

@luizimloko

@ChaosMagician

@Flengo

@Code64

@gellin

@luccss

@NOOB

@gibam761

@C0der.DiasII

@xCyniu

@Solify 's

@NeoIII

@_Debug_

@donoob

@gordon

@experthack

@BadBurrito

@Drunken Chita

Link para o comentário
Compartilhar em outros sites

  • 2 semanas atrás...
  • 2 semanas atrás...

po eu consegui fazer funfar sem dc mais nao consigo fazer as funçoes funcionarem a unica q eu consegui adicionar foi crosshair

alguem dem funçoes funcionais pra me passar

brigado desde ja

 

ass= diegozendem d2

←←← Se ajudei Me ajude Agradeçendo ai :tong:

Link para o comentário
Compartilhar em outros sites

Este tópico está impedido de receber novos posts.
 Compartilhar

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...

Informação Importante

Nós fazemos uso de cookies no seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies , caso contrário, vamos supor que você está bem para continuar.