Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 21:36

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

Advertisement



Help me with calling a game function in DLL (crash)

Discussion on Help me with calling a game function in DLL (crash) within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2010
Posts: 28
Received Thanks: 45
Help me with calling a game function in DLL (crash)

Heya,
Gonna make it short, my game crashes when i call my function, the address of the function is fine. I hope someone here can tell me what's wrong.

Code:
Code:
if(msg == "Cast4"){
typedef int ( __stdcall *Spellcast)(DWORD , DWORD);
Spellcast castmyspell = (Spellcast)0x00B908F0;
castmyspell(6, 0);
}
IDA:


CheatEngine: (+registers on breakpoint)
cortexio is offline  
Old 05/12/2013, 00:00   #2




 
Omdi's Avatar
 
elite*gold: 1
Join Date: Apr 2010
Posts: 13,772
Received Thanks: 15,036
This looks like thiscall, you have to pass the thisptr to the function.
Omdi is offline  
Reply


Similar Threads Similar Threads
Need some help calling function for height
07/27/2011 - Perfect World - 2 Replies
Hey there, for some reason I keep crashing upon trying to call this function and it's really pissing me off. I was wondering if somebody could give me some advice as to what I'm doing wrong :( The function is being called inside a function starting at address 0x465730 in PWI The function I'm looking for is called twice here, namely at 0x4657C7 and 0x465879. The code where it is called looks something like this: http://img94.imageshack.us/img94/9867/coordfuncti on.png Now, I'm...
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...
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...
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



All times are GMT +1. The time now is 21:36.


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.