Register for your free account! | Forgot your password?

Go Back   elitepvpers > General Gaming > General Gaming Discussion
You last visited: Today at 21:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



print out text using RoM's ingame function

Discussion on print out text using RoM's ingame function within the General Gaming Discussion forum part of the General Gaming category.

Reply
 
Old   #1
 
Ikaruz's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 71
Received Thanks: 274
Question print out text using RoM's ingame function

Hi

I'd like to print out my own text in RoM. I dont want to use D3D-Hooks or other premade project. Why not? Because I'd like to learn and understand the mechanics of calling ingame functions.

I wrote a program that injects a test.dll into the RoM-process. The dll creates a new thread and the function will be called from this thread.

the biggest problem: How to find the "Printtext"-function?
I did it like this (using Cheat Engine):
-press CTRL+X in RoM to enable the "FPS:..."-text
-search for [x] Unicode text "FPS:", one addy should pop up only, 0x11B15200 was my
-a BP on this addy
Code:
[COLOR="Blue"]->  78180B56 - 66 3b 02                   - cmp ax,[edx]
->  78180B64 - 0f b7 0a                   - movzx ecx,word ptr [edx]
->  78180B82 - 66 89 07                   - mov [edi],eax    // write new string into mem
->  0067D300 - 66 8b 08                   - mov cx,[eax]
->  0067D316 - 66 39 3b                   - cmp [ebx],di
->  0067D33A - 66 83 3c 7b 7c             - cmp word ptr [ebx+edi*2],7c
->  0067D4C2 - 0f b7 14 1e                - movzx edx,word ptr [esi+ebx]
->  0067D50A - 66 83 3c 7b 00             - cmp word ptr [ebx+edi*2],00[/COLOR]
I searched around and the best thing I could find was this:
Code:
[COLOR="Blue"]0067D4BD - e8 8e af f5 ff             - call 005d8450    // EBX = addr of unicodetext[/COLOR]
If I change EBX to the address of another unicode text and then RoM will print my custom text for one frame.
Another thing that confuses me is - before the call 005d8450 is executed only one thing seems to be pushed but for 5D8450 IDA shows me the function has 2 parameters.

Lets assume I found the RoM's-function to print out text, how should I call the function from my dll?
Code:
[COLOR="SeaGreen"]// pseudocode assuming the function takes 3 parameters[/COLOR]
[COLOR="Blue"]__asm{
    push screenx_param
    push screeny_param
    push unicodetextptr_param
    call [function address]
}[/COLOR]
Is this enough or should I save the registers using pushad/popad?

I hope somebody can help me here. Oh the code is C++ btw.
Ikaruz is offline  
Reply


Similar Threads Similar Threads
[HELP]Text InGame
05/20/2010 - Dekaron Private Server - 0 Replies
I was wondering if anyone knows whats wrong with this. Please if you do dont just pass by...Help me out. Okay so basically I have no interface...Even when im loading the game. I cant see the: % from game load no server in the list no text when i type in the user and pass box no text from the char screen and INGAME. Basically Its just not showing the text that should be there. I can still log in all the way by clicking where the stuff normally should be.
Help, calling an ingame function
03/13/2010 - General Coding - 2 Replies
Im trying with my dll to set off the "set stat function". The one that u press when you add a stat point to str, dex or what ever. My goal is to make players able to set there Stats to whatever they use to have from an earlier saved point. So if you play against different sort of mobs or players you reform your stats to be suetable for that sertan task in just 1 second right where you stand. Im thinking this is very useful for many ppl here. So now i could use help with the actuall call of...
Text Abrufer (Ingame und Outgame)
09/20/2009 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 15 Replies
Hi Habe euch mal einen Text Abrufer gescriptet. Er schreibt die Texte, die ihr wollt, bei Knopfdruck. -Ihr könnt den Text frei wählen, und den Button dafür auch ({}). -Ihr könnt wählen, ob ihr es MIT oder OHNE enter machen wollt (mit = Abrufer im Spiel, enter, schreibt rein, enter, enter) -Ihr könnt bis zu 5 Texten gleichzeitig aufschreiben.
Text ingame anzeigen per Autoit ?
07/24/2009 - AutoIt - 24 Replies
Hy Leute! ich spiele mich zZ mit memorys in ROSE online. ich will zB jetz die exps die ich bis zum lvl up brauche ingame anzeigen. wie kann ich diesen text jetzt dort ingame anzeigen. mit cpp könnte man dies durch D3D regeln. nur will ich das ganze mit AutoIt machen und wollte nun fragen ob dies möglich ist. mfg reyas



All times are GMT +2. The time now is 21:15.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.