Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Reading battle list - Page 2
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Reading battle list

  1. #11
    Senior Member
    Join Date
    Jan 2008
    Location
    Cambridge, England
    Posts
    725
    Quote Originally Posted by Xleniz View Post
    Dont want to complain, but still only showing ascii.
    (With: cout << ReadString(monsterID) << endl )
    When you say it's showing ASCII, what exactly do you mean? What is the output? Hex? Random string? Numbers? Does the data represent the name?

  2. #12
    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

  3. #13
    Senior Member
    Join Date
    Dec 2011
    Posts
    249
    Would you mind showing us some more of your code? How you are getting the handle, which address you're using etc.

  4. #14
    Yes Sir!

    Heres my 700 lines code

    Code:
    The text that you have entered is too long (23744 characters). Please shorten it to 10000 characters long.
    Sorry.

    Heres the part of it: (base address works)
    Code:
    			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;
    				}
    			}
    XDD

  5. #15
    Senior Member
    Join Date
    Dec 2011
    Posts
    249
    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.

  6. #16
    Senior Member
    Join Date
    Jan 2008
    Location
    Cambridge, England
    Posts
    725
    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).

  7. #17
    Code:
    char buffer[32];
    ReadProcessMemory(hProcess, (void*)0x00F59534, (void*)buffer, 32, 0);
    std::cout << "String: " << buffer << '\n';
    And make sure to use the correct address.

  8. #18
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •