rayrod tv
// =============================================================
// For Hooking operations
#include “Hooking.h”
// For Hardcoded Functions
#include “ExeFunctions.h”
// Memory Hack Functions
#include “Memory.h”
rayrod tv rayrod tv
// For Memory Operations
#include “memorymanager.hpp”
// For Memory Easing
#include “memoryeasingmanager.hpp”
// For LibMbinMem Library
#include “LibMbinMem.hpp”
// For Global Variables
rayrod tv check more rayrod tv
#include “global.hpp”
// For Accessing Structs
#include “Structs.hpp”
// =============================================================
namespace Hack::MemoryHacks {
namespace {
rayrod tv check more rayrod tv
// using Directives
using namespace Multiverse::API::Memory::Hooking; // For Hooking operations
using namespace Multiverse::API::Memory::Utils; // For Generic Memory Utils
using namespace Multiverse::API::Structs; // For Accessing Structs
using namespace libMBIN::Mem; // For LibMbinMem Library
using libMBIN::NMS::GameComponents::GcAudioWwiseEvents; // For AkEventEnum
// ——————————–
rayrod tv check more rayrod tv
// Description & Credits goes here:
void GenerateCreditsFile() {
// Generate file once
if (static OneShot generateOnce; generateOnce) {
/// Generate description & credits file
std::string filepath{ “..\Binaries\RaYRoD’s Multiverse\API\Hacks\Hack Credits\Add Currency.txt” };
std::string text1{ “A ‘Template’ used to create No Man’s Sky game hacks using the Multiverse API.nn” };
std::string text2{ “- Press Ctrl + Numpad Plus to add 1000 currency to your inventory.” };
rayrod tv best of rayrod tv
std::string description{ text1 + text2 };
std::string author{ “RaYRoD TV#7679” };
Dependencies::CreateTxtAbout(filepath, description, author);
}
}
//class PlayerStateData {
//};
rayrod tv best of rayrod tv
// Your code goes here:
void ExecuteHack() {
// Creates a class instance
auto PlayerStateData{ Structs_Misc::baseAddr_PlayerStateData };
std::cout << std::hex << PlayerStateData << std::endl;
// ——————————–
// Adds 1000 currency when user presses hotkey
if (GetAsyncKeyState(VK_LCONTROL) && GetAsyncKeyState(VK_ADD) & 1) {
rayrod tv informational rayrod tv
if (PlayerStateData.Units)
*(int*)PlayerStateData.Units += 1000;
if (PlayerStateData.Nanites)
*(int*)PlayerStateData.Nanites += 1000;
if (PlayerStateData.QuickSilver)
*(int*)PlayerStateData.QuickSilver += 1000;
rayrod tv best of rayrod tv
// Trigger Audio Event
ExeFunc::AudioWwiseEvent((int)GcAudioWwiseEvents::AkEventEnum::UI_UNITS_RECEIVED);
ExeFunc::AudioWwiseEvent((int)GcAudioWwiseEvents::AkEventEnum::NOTIFY_UNITS_RECEIVED);
// Prints To Console:
printf("1000 Units have been added! n");
printf("1000 Nanites have been added! n");
printf("1000 Quicksilver have been added! n");
}
}
rayrod tv informational rayrod tv
}
void MemoryHacks::AddCurrency() {
// Generate Credits File
GenerateCreditsFile();
// Execute Hack if condition(s) are met
if (HookVariables::isProfileSelected && Structs_Misc::baseAddr_PlayerStateData) {
ExecuteHack();
rayrod tv check more rayrod tv
}
}
// =============================================================
}
rayrod tv