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
C++ Read creature name from ID - Page 3
Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: C++ Read creature name from ID

  1. #21
    Thanks, i have another question then

    i have this:

    Code:
    string ContextTargetName()
    {
    	for (int i = 0; i < MaxCreatures; i++)
    	{
    		DWORD currentCID = *(DWORD *)(BattlelistBegin + BattlelistStep * i);
    		if (currentCID == *(DWORD *)(CONTEXT_MENU_CREATUREID))
    		{
    			return (char*)((BattlelistBegin + BattlelistStep * i) + 0x04);
    		}
    	}
    	return NULL;
    }
    And ok by
    Code:
     GuiHandle.addLabel(CHARACTER, 10, 80, 80, const_cast<char*>(ContextTargetName().c_str()), 235, 235, 235);
    i get name of creature where i used context menu. But this name reset only when i reset client. For example: i use Righ click mouse on monster "Dragon" , choose "Check" and i see label with name "Dragon", probably ok, but after this i trying use this on Demon and still i see "Dragon", when i reset client and use it on Demon i see "Demon" but when i try again on another monster i see again name of character which i used first after run client. How i can clean this from memory, / refresh?

  2. #22
    ok you can close topic. Error was cuase i forgot refresh label when i hide container. Thanks all for help

  3. #23
    Senior Member
    Join Date
    Jan 2008
    Location
    Cambridge, England
    Posts
    725
    Quote Originally Posted by Arkamek View Post
    ok you can close topic. Error was cuase i forgot refresh label when i hide container. Thanks all for help
    Just want to say:

    1. Thanks for your questions, they gave me something to think about.
    2. Thanks for posting your answers, they confirmed and confused me, which is fucking awesome.
    3. Keep at it, I think you'll go far

Posting Permissions

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