A picture explains so much:
http://pbrd.co/13iaHlb
Btw, I recommend pasteboard.co, its a site where you just print screen, ctrl+v and its there:S
Would you mind showing us some more of your code? How you are getting the handle, which address you're using etc.
Yes Sir!
Heres my 700 lines code
Sorry.Code:The text that you have entered is too long (23744 characters). Please shorten it to 10000 characters long.
Heres the part of it: (base address works)
XDDCode:GetWindowThreadProcessId(tibiaWindow,&pid); phandle = OpenProcess(PROCESS_ALL_ACCESS,0,pid); if(phandle) { baseAddress = GetModuleBase(phandle, processName); size_t bytesRead; size_t bytestoRead = 50; xPos = baseAddress + 0x553038; yPos = baseAddress + 0x55303C; testHex = baseAddress + 0x54F50C; DMessage = baseAddress + 0x3BF0AC; DWORD monsterID; monsterID = baseAddress + 0x007B0B4; DWORD buffer; char* monsterID3 = new char[15]; ReadProcessMemory(phandle,(void*)monsterID,&buffer, sizeof(&buffer),0); ReadProcessMemory(phandle,(void*)(buffer+0x128),&buffer, sizeof(&buffer),0); char battleName[15] = "Hello"; int monsterID2; while(1+1 == 2) { if(GetAsyncKeyState(VK_LBUTTON && GetAsyncKeyState(VK_RBUTTON))) { cout << ReadString(monsterID) << endl; } }
Not really sure what you're trying to accomplish, but I guess it is to read all names in the battlelist.
Right now you're just reading baseAddress + 0x007B0B4 over and over again, which is pointing to nothing. The readstring function will read 1 byte from the memory until it finds a null character. Since the address you are reading isn't really pointing to a string it will keep on reading until it finds one, thus returning a value that makes no sense whatsoever.
If you want to read the battlelist I suggest you read some tutorials on how to do it on this forum.
The battle list start address is currently 0x5A9530, so add that to Tibias base, add the offset for the name, and you should be hunky dory. (Offset for name = 4).
And make sure to use the correct address.Code:char buffer[32]; ReadProcessMemory(hProcess, (void*)0x00F59534, (void*)buffer, 32, 0); std::cout << "String: " << buffer << '\n';
I did Tibia.exe + 0x007B0B4, and did all of the stuff, to get it show correct address with full string in cheatengine,
I dont see why its wrong address.
Oh, I forgot
monsterID = buffer;
Well, now output is BLANK.
XDD