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 85

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 85

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
TibiaAPI [Change Player Name Color]
Results 1 to 7 of 7

Thread: TibiaAPI [Change Player Name Color]

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    11

    TibiaAPI [Change Player Name Color]

    Hello, i want code for change color of player name.
    Example: if player have name "Ezezezeze" then he have red color of name.

    Please, help!
    Thanks

    It mustn't be TibiaApi!
    Last edited by netrunner; 09-26-2014 at 07:33 PM.

  2. #2
    Senior Member
    Join Date
    Jan 2008
    Location
    Cambridge, England
    Posts
    725
    One would assume there is some value in the creature structure of the battle list that dictates the colour of a players name. Get a friend to stand on screen on low, med, high HP, and browse the memory region of his creature entry in battle list, set it to 1 byte hex or something and see what changes as he heals, will probably find 3 values (R, G, & B) changing up and down as the colour of his name plate changes... After that you just gotta WriteProcessMemory, and possibly hook a method which changes the values to stop it from doing so...

  3. #3
    Quote Originally Posted by XtrmJash View Post
    One would assume there is some value in the creature structure of the battle list that dictates the colour of a players name. Get a friend to stand on screen on low, med, high HP, and browse the memory region of his creature entry in battle list, set it to 1 byte hex or something and see what changes as he heals, will probably find 3 values (R, G, & B) changing up and down as the colour of his name plate changes... After that you just gotta WriteProcessMemory, and possibly hook a method which changes the values to stop it from doing so...
    jaja wrong

  4. #4
    Senior Member
    Join Date
    Nov 2009
    Posts
    320
    The colours and respective hp% are defined in the draw health bar method, not at battle list, because it would be redundant. No need to server send this information.
    oi amiguinhos

  5. #5
    Quote Originally Posted by Devil View Post
    The colours and respective hp% are defined in the draw health bar method, not at battle list, because it would be redundant. No need to server send this information.
    Well, they could be pre-calculated upon receiving a health update.. But AFAIK they're not.

    The best way to do this is to hook printCreatureName and change the rgb yourself.

  6. #6
    @Netrunner, I made this for GM's have blue health bar and name XD
    What version do you need this ?

  7. #7
    Junior Member
    Join Date
    Mar 2007
    Posts
    24
    nvm (short)(short)
    Last edited by hans henrik; 02-28-2015 at 09:58 AM.
    can't believe otfans died.. and otserv project.. both OT and RL tibia is declining in active players

Posting Permissions

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