Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 11:13

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

Advertisement



Help with calling this function!

Discussion on Help with calling this function! within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2007
Posts: 136
Received Thanks: 145
Help with calling this function!

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 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: (offsets updated from last patch)

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?

Thankful for any help / Zowex


btw, this is what i have learned from the bases of using Mega Bytes Send Chat packet code from here:
zowex is offline  
Thanks
1 User
Old 03/11/2010, 16:15   #2

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,776
Received Thanks: 1,003
Capture the packet or just read it in memory and see if it is the same or similar to the real packet. Also check to make sure the value is on both stack + those registers. lol.
Mega Byte is offline  
Old 03/11/2010, 18:43   #3
 
elite*gold: 0
Join Date: Apr 2007
Posts: 649
Received Thanks: 105
I am not sure what you mean with this though. It is a good idea and a good function. However you cannot simply re-stat your character. Before level 40 or so you can reset your stats by going to the elder and having them reset. After level 40 the only way you can reset your stats is by using a special item called a BloodClear(or something).

However the function above would be nice to put into a bot, so it automatically adds stat points everytime you level up.
Iktov is offline  
Old 03/11/2010, 19:03   #4
 
elite*gold: 0
Join Date: Sep 2007
Posts: 136
Received Thanks: 145
well.. for all we know this could work even after lvl 40+ .. with a little modification or so
zowex is offline  
Old 03/12/2010, 13:08   #5
 
elite*gold: 0
Join Date: Sep 2007
Posts: 136
Received Thanks: 145
It be great if someone with a lvl 40+ chracter would try this code and see if it resets the stats or not ( dont have any lvl 40+ char). Its the normal packet sent to server to resets the stats.

void __cdecl SendFunc()
{
UINT_PTR adr = 0x0049DF10;
__asm
{


MOV ECX,0x010CFE58
call adr
}
}
zowex is offline  
Thanks
1 User
Old 03/12/2010, 17:26   #6
 
elite*gold: 0
Join Date: Apr 2007
Posts: 649
Received Thanks: 105
Quote:
Originally Posted by zowex View Post
It be great if someone with a lvl 40+ chracter would try this code and see if it resets the stats or not ( dont have any lvl 40+ char). Its the normal packet sent to server to resets the stats.

void __cdecl SendFunc()
{
UINT_PTR adr = 0x0049DF10;
__asm
{


MOV ECX,0x010CFE58
call adr
}
}
Hey dude,

That is an awesome job on that function. Unfortunately it does not work with any character above level 40, it does just as I assumed it would do, it Disconnects you from the server. I wonder if maybe a simply change of level on the client would help that, but I highly doubt that one.

Either way, nice job on the function. It worked on my level 30 character and I am quite surprised that it worked. If an NPC function like that can work anywhere just by calling the code manually I wonder what other NPC functions can be used without actually using the NPC itself. Would be nice to be able to buy pills in the field(guarantee it would not work but hey, stat reset technically shouldn't work either).

Good job though.
Iktov is offline  
Old 03/13/2010, 06:10   #7

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,776
Received Thanks: 1,003
Nice job

If I can find the disconnect message and trace it back to the function or memory addy prehaps we can make the client side disconencts cese to exist
Mega Byte 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, 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...
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
calling all hackers
01/25/2009 - Archlord - 25 Replies
if been messing about with a few programs, and ive managed to change my HP(visiual effect only), im curios if anyone has any idea if i can go any further with this. I gave my lv50 farming ele 100,000 HP but its just visual, any ideas welcome.
Calling All 24/7 Botters To EoS
10/10/2008 - Silkroad Online - 81 Replies
Hello im calling all 24/7 Botters to EoS . Me Myself im 24/7 Botters (<3 Isrobot) So i wanna Take EoS , i Wanna Grab it i Wanna Capture FW !! (dreaming is never been bad ppl) . About Guild Well i will buy Silks+Gold so leveling up Guild Will be np but ppl Must donate i am no donkey that does everything by himself . Guild Will be Named : ImmortalGodz or i dont give a damn just post ur Guild name ideas Here and lets Chat ppl ITS OUR TIME LETS TAKE IT . Anyways Botters always Ruled So why not now...



All times are GMT +1. The time now is 11:13.


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.