Untitled

 avatar
user_5811307
plain_text
a year ago
1.6 kB
4
Indexable
#include "memory.h"	
#include "thread"
#include <iostream>
#include <typeinfo>
#include <vector>

using namespace std;
int main() 
{
	int entetylist = 0x16D5C80;
	int localplayer = 0x16C8F58;
	int offcet_health = 0x32C;
	int offcetx = 0xCD8;
	int offcety = 0xCDC;
	int health;
	int posx, posy;
	uintptr_t localPlayer;


	 std::vector <std::vector < char>> map(300, std::vector<char>(300, 0));
	 //char map[300][300];

	 for (int i = 0; i < 300; i++)
	 {
		 for (int j = 0; j < 300; j++) 
		 {
			  map[i][j] = '_';
		 }
	 }

	while (true)
	{
		
		std::this_thread::sleep_for(std::chrono::milliseconds(100));

		localPlayer = VARS::memRead<uintptr_t>(VARS::baseAddress + entetylist);
		system("cls");

		for (int i = -1; i <= 64; i++) 
		{
			localPlayer = VARS::memRead<uintptr_t>(VARS::baseAddress + entetylist + (i * 0x08));
			health = VARS::memRead<int>(localPlayer + offcet_health);

			posx = VARS::memRead<float>(localPlayer + offcetx);
			posy = VARS::memRead<float>(localPlayer + offcety);

			
			if (health <= 100 and health > 0) std::cout << i<<" " << health << " x: " << posx << " y: " << posy << std::endl;
			
			map[posy][posx] = '*';

			//std::cout << health << std::endl;
			//std::cout << std::endl;
		}


		for (int i = 0; i < 100; i++)
		{
			for (int j = 0; j < 150; j++)
			{
				std::cout << map[i][j];
			}
			std::cout << std::endl;
		}
		map[posy][posx] = '_';
		//int health = VARS::memRead<int>(localPlayer + offcet_health);

		//system("cls");
		//std::cout << health << std::endl;
		
	}

	return 0;
}
Editor is loading...
Leave a Comment