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

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++] GM have blue health bar and name
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: [C++] GM have blue health bar and name

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

    [C++] GM have blue health bar and name

    Hello. Please, Are you can help me and make this code for version 8.54? I want this code for learn client memory writning.
    Thanks.
    Sorry for my bad english

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Posts
    249
    You already asked this question here: http://tpforums.org/forum/threads/61...4241#post54241

  3. #3
    Junior Member
    Join Date
    Sep 2014
    Posts
    11
    Yes, sorry for double topic but i were not active and topic is not active. ;/

  4. #4
    Junior Member
    Join Date
    Sep 2014
    Posts
    11
    help ;d !! please !!

  5. #5
    Senior Member
    Join Date
    Nov 2009
    Posts
    320
    Hook print name function, then search for the GM prefix, and then change RGB to desired color.
    oi amiguinhos

  6. #6
    Junior Member
    Join Date
    Sep 2014
    Posts
    11
    I dont know how start this ;/

  7. #7
    Junior Member
    Join Date
    Sep 2014
    Posts
    11
    help
    !!!!!!!!!!

  8. #8
    Junior Member
    Join Date
    Sep 2014
    Posts
    11
    Help guys :d

  9. #9
    Junior Member
    Join Date
    Jan 2011
    Posts
    8
    DWORD PrintName = 0x4F0993;
    typedef void _PrintText(int nSurface, int nX, int nY, int nFont, int nRed, int nGreen, int nBlue, char* lpText, int nAlign);
    static _PrintText *PrintText = (_PrintText*)PrintName;
    Your PrintName function:
    void MyPrintNAME(int nSurface, int nX, int nY, int nFont, int nRed, int nGreen, int nBlue, char* lpText, int nAlign)
    {

    if(strcmp(lpText, "GM Blahblah") == 0)
    {
    PrintText(nSurface, nX, nY, nFont, changle, to, blue, lpText, 0);
    }else{
    PrintText(nSurface, nX, nY, nFont, nRed, nGreen, nBlue, lpText, nAlign);
    }
    return;
    }
    Hook function:
    DWORD HookCall(DWORD dwAddress, DWORD dwFunction)
    {
    DWORD dwOldProtect, dwNewProtect, dwOldCall, dwNewCall;
    BYTE callByte[5] = {0xE8, 0x00, 0x00, 0x00, 0x00};

    dwNewCall = dwFunction - dwAddress - 5;
    memcpy(&callByte[1], &dwNewCall, 4);

    VirtualProtectEx(GetCurrentProcess(), (LPVOID)(dwAddress), 5, PAGE_READWRITE, &dwOldProtect);
    memcpy(&dwOldCall, (LPVOID)(dwAddress+1), 4);
    memcpy((LPVOID)(dwAddress), &callByte, 5);
    VirtualProtectEx(GetCurrentProcess(), (LPVOID)(dwAddress), 5, dwOldProtect, &dwNewProtect);
    return dwOldCall;
    }
    Hook function like this:
    HookCall((DWORD)PrintName, (DWORD)&MyPrintNAME);
    Enjoy

  10. #10
    Junior Member
    Join Date
    Mar 2007
    Posts
    24
    nvm (short)(short) (pretty sure he didn't specify version when i started writing this post *sigh*)
    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
  •