Register for your free account! | Forgot your password?

You last visited: Today at 18:21

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

Advertisement



[C++]Call a Game Function

Discussion on [C++]Call a Game Function within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2013
Posts: 28
Received Thanks: 61
[C++]Call a Game Function

Hello guys here is a quick tutorial :


Source :

PHP Code:
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"

// We will call our function.
// int sub_56E1B0 this is our function so lets call it
int (*WriteToSyserr)(const char*) = (int (*)(const char*) )0x0056E1B0;

extern int "C" _delspec(dllexport)Main(){
    
WriteToSyserr("We Rocked!!!!");
    return 
0;
}

BOOL APIENTRY DllMainHMODULE hModule,
                       
DWORD  ul_reason_for_call,
                       
LPVOID lpReserved
                     
)
{
    switch (
ul_reason_for_call)
    {
    case 
DLL_PROCESS_ATTACH:
        
Sleep(5000);
        
CreateThread(0NULLreinterpret_cast<LPTHREAD_START_ROUTINE>(Main), hModule0NULL);
    case 
DLL_THREAD_ATTACH:
    case 
DLL_THREAD_DETACH:
    case 
DLL_PROCESS_DETACH:
        break;
    }
    return 
TRUE;

Stay tuned for more!
Its basic calling for game hacking & game editing.
That offset for revision 26070 , you have to update it.
LoveCpp is offline  
Thanks
10 Users
Old 08/27/2013, 21:26   #2
 
[The]Domco's Avatar
 
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
Nice :-)
[The]Domco is offline  
Old 08/27/2013, 22:04   #3
 
elite*gold: 0
Join Date: Aug 2013
Posts: 15
Received Thanks: 2
Hm, you just use pointer to a function and execute her, so nothing new.
redoname is offline  
Old 08/27/2013, 22:49   #4
 
elite*gold: 0
Join Date: Aug 2013
Posts: 28
Received Thanks: 61
i have already said dont write silly comments i did write there its for new c++ coders.
LoveCpp is offline  
Reply


Similar Threads Similar Threads
Call Function
02/20/2012 - General Coding - 3 Replies
huhu, eine kurze frage : Ich habe mir gerade ein ClickToMove Offset für nen spiel rausgesucht (nein kein WoW :D) wenn ich die daten in den Ramgeschrieben habe muss ich ja die Function Move(float x, float y) ausführen. muss ich dafür ne DLL injection vornehmen oder kann man das auch so machen. wenn möglich sogar ohne CodeCave??
call function of injected dll
09/22/2010 - General Coding - 3 Replies
Hey guys, i injected a dll which i want to use for custom packet sending to my game client. the problem now is how to use it. the code of the dll is the following: #include <Winsock2.h> #include <Windows.h> #include <fstream> #include <detours.h>
Call Function in Process from another
09/04/2009 - General Coding - 7 Replies
Hi, how the topic says i'm wondering if it's possible to call an function from your application(no dll loaded from a loader) via jmp or call? example: i have app1 that has a function which opens a messagebox "Hello!". Now i'm tryin to call that function from another application while the app1 is running. thanks for your advice
Calling function in a game
03/29/2009 - General Coding - 1 Replies
Hai guise, I'm a stupid morron but how can I make a hook in c++ that will use Gameplay::GetMoney(); to return the current amount of Gold I have? http://www.bilderkiste.org/show/original/0bba0c93 80a21de4810c1429cbc287c9/call.jpg
Call COs jump function in masm?
10/28/2006 - Conquer Online 2 - 0 Replies
well i followed the tutorial on how to do this but it didnt give a very good masm example. how would i call the function in masm? does anyone have a good example or code? i have a bunch of other functions to use for hacks but i need to get this done first. im new to masm so i dont really know wat to do. i know how to call functions that dont have variables in other games but no clue when it comes to variables (x and y for jumping.) thanks, high6. p.s. here is the jump function location...



All times are GMT +1. The time now is 18:22.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.