// Yearupie.cpp : Defines the exported functions for the DLL application.
//
#include "Stdafx.h"
#include <Windows.h>
#include <Stdio.h>
float Adv0_X,Adv0_Y,Adv0_Z;
#define ADR_PLAYERPOINTER 0xCEFDB8 // Plyr Base
#define ADR_SERVERPOINTER 0xCEFDB8 // Serv *
#define OFS_STAMINA 0x2C // sta oft
#define OFS_NORECOIL1 0x1C // No Rcol 1
#define OFS_NORECOIL2 0x20 // No Rcol 2
#define OFS_NORECOIL3 0x24 // No Rcol 3
#define OFS_X 0x260 // x
#define OFS_Y 0x268 // y
#define OFS_Z 0x264 // z
#define OFS_SLOT5 0xF91FC // 5th
#define OFS_NFD 0x32C // nfd
#define OFS_PREMIUM 0x37C // pre 1
#define ADR_HACKSHIELD 0x626F50 // shield
#define ADR_SPEEDROLL 0x9DAAE0 // spd roll
#define ADR_SPEED 0x9C7F9C //spd
void Adv0cate_Thread(){
for(;;){
DWORD *InGame=(DWORD*)ADR_PLAYERPOINTER;
DWORD *Lobby=(DWORD*)ADR_SERVERPOINTER;
DWORD dwPlayer=*(DWORD*)ADR_PLAYERPOINTER;
DWORD dwServer=*(DWORD*)ADR_SERVERPOINTER;
if(dwPlayer!=0){
if(dwServer!=0){
if(*InGame){
// Set NFD
*(float*)(dwPlayer+OFS_NFD)=-999;
// If Shiftkey is pressed
if(GetAsyncKeyState(VK_LSHIFT)&1){
// Set speed up
*(float*)(ADR_SPEEDROLL)=1.85F;
}
// Set premium
*(long*)(dwServer+OFS_PREMIUM)=3,10;
// Set norecoil
*(float*)(dwPlayer+OFS_NORECOIL1)=0;
*(float*)(dwPlayer+OFS_NORECOIL2)=0;
*(float*)(dwPlayer+OFS_NORECOIL3)=0;
// if stamina is smaller then 30
if(dwPlayer!=0&&*(float*)(dwPlayer+OFS_STAMINA)<30){
// set stamina back to 30
*(float*)(dwPlayer+OFS_STAMINA)=30;
}
// Open 5th slot
*(long*)(dwServer+OFS_SLOT5)=1;
// if keypress F2
if(GetAsyncKeyState(VK_F2)&1){
// Save position
Adv0_X=*(float*)(dwPlayer+OFS_X);
Adv0_Y=*(float*)(dwPlayer+OFS_Y);
Adv0_Z=*(float*)(dwPlayer+OFS_Z);
// If keypress F3
if(GetAsyncKeyState(VK_F3)&1){
// Teleport
*(float*)(dwPlayer+OFS_X)=Adv0_X;
*(float*)(dwPlayer+OFS_Y)=Adv0_Y;
*(float*)(dwPlayer+OFS_Z)=Adv0_Z;
}
}
// Speed up
*(float*)(ADR_SPEED)=105;
// Superjump
if (GetAsyncKeyState(VK_CONTROL)){
if(dwPlayer != 0)
{
*(float*)(dwPlayer+0x190) = 1500;
}
}
}
if(*Lobby){
// Set premium
*(long*)(dwServer+OFS_PREMIUM)=3,10;
// Set 5th slot
*(long*)(dwServer+OFS_SLOT5)=1;
}
}
}
}
Sleep(200);
}
BOOL WINAPI DllMain(HINSTANCE hModule,DWORD dwReason,LPVOID lpvReserved){
if(dwReason==DLL_PROCESS_ATTACH){
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Adv0cate_Thread,0,0,0);
}
return TRUE;
}
// wh4l.cpp : Defines the exported functions for the DLL application.
//
#include "Stdafx.h"
#include <Windows.h>
#include <Stdio.h>
#define ADR_PLAYERPOINTER 0xCEFDB8 // Plyr Base
#define ADR_SERVERPOINTER 0xCEFDB8 // Serv *
#define OFS_STAMINA 0x28 // sta oft
#define OFS_Z 0x264 // z
#define OFS_SLOT5 0xF91FC // 5th
#define OFS_SLOT6 0xf91FD // 6th
#define OFS_SLOT7 0xf91FE // 7th
#define OFS_SLOT8 0xf91FF // 8th
#define OFS_NFD 0x32C // nfd
#define OFS_PREMIUM 0x37C // pre 1
#define ADR_HACKSHIELD 0x626F50 // shield
/////////////////
DWORD *ingame= (DWORD*)ADR_PLAYERPOINTER;
DWORD *megame= (DWORD*)ADR_SERVERPOINTER;
////////////////
// HACK CODES //
void Stamina()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
DWORD stamina = *(float*)(dwPlayerPtr + OFS_STAMINA);
if(stamina<30)
{
*(float*)(dwPlayerPtr+OFS_STAMINA) = 30;
}
}
}
void Jump()
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 2500;
}
}
}
void NFD()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NFD) = -20000;
}
}
void Slots()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
{
*(int*)(dwPlayerPtr + OFS_SLOT5)= 1;
*(int*)(dwPlayerPtr + OFS_SLOT6)= 1;
*(int*)(dwPlayerPtr + OFS_SLOT7)= 1;
*(int*)(dwPlayerPtr + OFS_SLOT8)= 1;
}
}
void HackThread()
{
for(;;)
{
if(*ingame)
{
NFD();
Jump();
Stamina();
Slots();
}
if(*megame)
{
Slots();
}
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create the hackthread
}
return TRUE;
}