Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 11:01

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

Advertisement



Help, calling an ingame function

Discussion on Help, calling an ingame function within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2007
Posts: 136
Received Thanks: 145
Help, calling an ingame function

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 seting a stat point. Cos this makes me D/C thinking i havent got the correct parameters before calling the function

This is what use when to call it:
void __cdecl SendFunc()
{
UINT_PTR adr = 0x004205D0; //function address
int Param1;
int Param2;

Param1 = 0x0013FC14;
Param2 = 0x0CE;
__asm
{
push Param1
push Param2
mov edx,Param1
mov eax,Param2
mov ecx,0x0058BAA0
call adr
}
}


If one goes to the function and trace whats calling it you end upp here:

49BAA9 ADD ESP,0C
49BAAC LER EDX,DWORD PTR SS:[EBP-70]
49BAAF PUSH EDX
49BAB0 MOV EAX,DWORD PTR SS:[EBP-74]
49BAB3 PUSH EAX
49BAB4 MOV ECX, TwelveSk.0058BAA0
49BAB9 CALL TwelveSk.004205D0

So to me it looks like i need to have 2 parameters set before i can use the function (TwelveSk.004205D0). These being PUSH EDX and PUSH EAX.

When i BP on call (49BAB9) to see what values the register hold before executing the fucntion.. then this is what i got:
EAX 000000CE
ECX 0058BAA0
EDX 0013FC14
EBX 00000000
ESP 0013FC04
EBP 0013FC84
ESI 00402810 TwelveSk.00402810
EDI 0013FD30

As you can see, EDX value i added into Param1 (Param1 = 0x0013FC14 and also EAX (Param2 = 0x0CE
This dont seem to do the jobb correct cos i still get DC as if bad packet is sent.
Any clue of whats wrong?
zowex is offline  
Old 03/12/2010, 20:54   #2
 
elite*gold: 577
Join Date: Oct 2009
Posts: 665
Received Thanks: 3,502
Quote:
Originally Posted by zowex View Post
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 seting a stat point. Cos this makes me D/C thinking i havent got the correct parameters before calling the function

This is what use when to call it:
void __cdecl SendFunc()
{
UINT_PTR adr = 0x004205D0; //function address
int Param1;
int Param2;

Param1 = 0x0013FC14;
Param2 = 0x0CE;
__asm
{
push Param1
push Param2
mov edx,Param1
mov eax,Param2
mov ecx,0x0058BAA0
call adr
}
}


If one goes to the function and trace whats calling it you end upp here:

49BAA9 ADD ESP,0C
49BAAC LER EDX,DWORD PTR SS:[EBP-70]
49BAAF PUSH EDX
49BAB0 MOV EAX,DWORD PTR SS:[EBP-74]
49BAB3 PUSH EAX
49BAB4 MOV ECX, TwelveSk.0058BAA0
49BAB9 CALL TwelveSk.004205D0

So to me it looks like i need to have 2 parameters set before i can use the function (TwelveSk.004205D0). These being PUSH EDX and PUSH EAX.

When i BP on call (49BAB9) to see what values the register hold before executing the fucntion.. then this is what i got:
EAX 000000CE
ECX 0058BAA0
EDX 0013FC14
EBX 00000000
ESP 0013FC04
EBP 0013FC84
ESI 00402810 TwelveSk.00402810
EDI 0013FD30

As you can see, EDX value i added into Param1 (Param1 = 0x0013FC14 and also EAX (Param2 = 0x0CE
This dont seem to do the jobb correct cos i still get DC as if bad packet is sent.
Any clue of whats wrong?
Try this one:
Code:
void __cdecl SendFunc()
{
	int Param1 = 0x0013FC14;
	int Param2 = 0x0CE;

	unsigned long functionAddr = 0x4205D0;
	unsigned long thisObj = *(unsigned long*)0x58BAA0;

	__asm
	{
		push Param1
		push Param2

		mov edx, Param1
		mov eax, Param2
		mov ecx, thisObj

		call functionAddr
	}
}
tim66613 is offline  
Old 03/13/2010, 12:30   #3


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,913
Received Thanks: 25,413
Quote:
Originally Posted by zowex View Post
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 seting a stat point. Cos this makes me D/C thinking i havent got the correct parameters before calling the function

This is what use when to call it:
void __cdecl SendFunc()
{
UINT_PTR adr = 0x004205D0; //function address
int Param1;
int Param2;

Param1 = 0x0013FC14;
Param2 = 0x0CE;
__asm
{
push Param1
push Param2
mov edx,Param1
mov eax,Param2
mov ecx,0x0058BAA0
call adr
}
}


If one goes to the function and trace whats calling it you end upp here:

49BAA9 ADD ESP,0C
49BAAC LER EDX,DWORD PTR SS:[EBP-70]
49BAAF PUSH EDX
49BAB0 MOV EAX,DWORD PTR SS:[EBP-74]
49BAB3 PUSH EAX
49BAB4 MOV ECX, TwelveSk.0058BAA0
49BAB9 CALL TwelveSk.004205D0

So to me it looks like i need to have 2 parameters set before i can use the function (TwelveSk.004205D0). These being PUSH EDX and PUSH EAX.

When i BP on call (49BAB9) to see what values the register hold before executing the fucntion.. then this is what i got:
EAX 000000CE
ECX 0058BAA0
EDX 0013FC14
EBX 00000000
ESP 0013FC04
EBP 0013FC84
ESI 00402810 TwelveSk.00402810
EDI 0013FD30

As you can see, EDX value i added into Param1 (Param1 = 0x0013FC14 and also EAX (Param2 = 0x0CE
This dont seem to do the jobb correct cos i still get DC as if bad packet is sent.
Any clue of whats wrong?
if it doesn't crash but you get a disconnect, i think the stats are serverside and can't be edited twice
(i know some similar cases)
MrSm!th is offline  
Reply


Similar Threads Similar Threads
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack
Help with calling this function!
03/13/2010 - 12Sky2 - 6 Replies
First off: sorry for my poor english! 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...
print out text using RoM's ingame function
07/24/2009 - General Gaming Discussion - 0 Replies
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...
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
[NA] Calling Coders!
03/04/2008 - Cabal Online - 32 Replies
anyone looking to hack / bot cabal usa? want something a bit more complex than basic pixelsearching? if so reply here with qualifications if you want to team up. if you dont have any qualifications - drop an idea or request a feature you'd like in a hack/bot and i'll see if i can work my magic for you!



All times are GMT +2. The time now is 11:02.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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