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 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 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

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
Codecave PrintText - Page 2
Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 72

Thread: Codecave PrintText

  1. #11
    Senior Member
    Join Date
    Jan 2008
    Location
    Cambridge, England
    Posts
    725
    Quote Originally Posted by astra View Post
    How to update this addresses ? :

    private int PrintFps = 0x46e846; //10.20
    private int PrintName = 0x4d4d00;
    private int ShowFps = 0x96B55A;
    Crack open OllyDBG. Load Tibia, and hit play to resume execution when it breaks on entry. Now right click the main area in OllyDBG, and click "Find -> All Referenced Strings". Now you see a list, search it for DX9, DX5, or OpenGL (whichever, it shouldn't matter as all should be referenced). Once you found it, you need to find a reference to it. Double click it, and you'll be taken to some method which uses it. I believe this is an instance of the PrintText (it may be ShowFps though) method, but I'm not certain.

    I'm not sure of PrintName or ShowFps, maybe klusbert can advise.

  2. #12
    Super Moderator klusbert's Avatar
    Join Date
    Dec 2007
    Posts
    1,201
    Code:
           Client.PrintFps = RecalcAddress(0x46e226, baseAdr);
                Client.PrintTextFunction = RecalcAddress(0x4D4BD0, baseAdr);
              
                Client.ShowFps = RecalcAddress(0x96B627, baseAdr);
                Client.NopFps = RecalcAddress(0x46e091, baseAdr);
    
    printtextfunction == printname
    I missnamed printname, it is actually printtextfunction. That is the address to the function that prints every type of text in tibia.

    But if you find printfps function as XtrmJash said, you can find all addresses in this function.
    And showfps can easily be found if you are using cheatengine. By enable the fps (alt + F8)
    Last edited by klusbert; 12-28-2013 at 02:10 AM.
    How to find battlelist address --> http://tpforums.org/forum/thread-8146.html
    Updating addresses --> http://tpforums.org/forum/thread-8625.html
    DataReader --> http://tpforums.org/forum/thread-10387.html

  3. #13
    Oh, really thanks XtrmJash and klusbert it's very helpfull

  4. #14
    Senior Member
    Join Date
    Jan 2011
    Posts
    182
    Code:
    IntPtr stringAdr = WinApi.VirtualAllocEx(client.Process.Handle, IntPtr.Zero, (uint)allBytes.Length, WinApi.AllocationType.Commit | WinApi.AllocationType.Reserve, WinApi.MemoryProtection.ExecuteReadWrite);
    client.Memory.WriteBytes(stringAdr.ToInt64(), allBytes, (uint)allBytes.Length);
    Can you explain me a bit about this?
    Well, as you said on the first topic: "I alloc space in memory for my string than I add that into my codeave,"
    It is really necessary to alloc the string? What about not alloc it into memory? This part got me confused :s

  5. #15
    Super Moderator klusbert's Avatar
    Join Date
    Dec 2007
    Posts
    1,201
    In asm code the code looks like this:
    Code:
    02B1001F - mov ecx,02970000 : ["Hello TP!"]
    notice 2970000 that is the location of our string.
    How to find battlelist address --> http://tpforums.org/forum/thread-8146.html
    Updating addresses --> http://tpforums.org/forum/thread-8625.html
    DataReader --> http://tpforums.org/forum/thread-10387.html

  6. #16
    Senior Member
    Join Date
    Jan 2011
    Posts
    182
    Thank you klusbert!

  7. #17
    Super Moderator klusbert's Avatar
    Join Date
    Dec 2007
    Posts
    1,201
    Did you understand it now? I don't know how I could explain it better, but I'm sure DarkStar or Farsa could.
    How to find battlelist address --> http://tpforums.org/forum/thread-8146.html
    Updating addresses --> http://tpforums.org/forum/thread-8625.html
    DataReader --> http://tpforums.org/forum/thread-10387.html

  8. #18
    I'm trying to update this Fcking addresses but i can't ;|
    klusbert or XtrmJash can u show me any screenshots or something from Cheat Engine ?
    I find this procedure in olly (i think) and where is my addresses ? XD



    This procedure on pastebin: http://pastebin.com/gSaBXwSb

    I think better method for me its finding by CE but i don't know how to do it ;/

  9. #19
    0133E566 |. E8 B56A0600 CALL Tibia.013A5020 ; \Tibia.014A5020
    0133E3CA |> 803D 61C78301 >CMP BYTE PTR DS:[183C761],0

    Legend:
    PrintFps
    PrintName
    ShowFps

  10. #20
    So:
    Code:
            public static int PrintFps = 0x33E566 - 0x400000 + (int)baseAdress; //10.33
            public static int PrintName = 0x33E3CA - 0x400000 + (int)baseAdress; //10.33
            public static int ShowFps = 0x83C761 - 0x400000 + (int)baseAdress; // 10.33
    or without -0x400000 it's not woring.

    When i'm looking on older addresses from 10.32 they are totally different..

    For example:
    Code:
            public static int PrintFps = 0x46E566 - 0x400000 + (int)baseAdress; //10.32
    AND
            public static int PrintFps = 0x33E566 - 0x400000 + (int)baseAdress; //10.33

Posting Permissions

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