Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Perfect World
You last visited: Today at 09:18

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

Advertisement



Cast Skill Function (Help?)

Discussion on Cast Skill Function (Help?) within the Perfect World forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 39
Received Thanks: 0
Cast Skill Function (Help?)

Hey,

I have tried to reverse engineer the cast skill function, and I am unsure from where I should inject the code.



If you need more information yourself, the Skill function starts at 0x00462960.

Any help would be appreciated!
Shortpants is offline  
Old 07/26/2011, 17:36   #2
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
__ASM {
push 0xff
push 0x00
push 0x00
mov edx,[ecx+0x08]
mov ecx,esi
push skillID
call __Skill
}

Cheers
Sᴡoosh is offline  
Old 07/27/2011, 03:01   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 39
Received Thanks: 0
Quote:
Originally Posted by 2981611 View Post
__ASM {
push 0xff
push 0x00
push 0x00
mov edx,[ecx+0x08]
mov ecx,esi
push skillID
call __Skill
}

Cheers
It crashes at mov edx, [ecx+0x08]

[00000000]=???

This is most likely because ECX is not set, that is why I asked what I should be injecting because I am not entirely sure
Shortpants is offline  
Old 07/27/2011, 07:46   #4
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Quote:
Originally Posted by Shortpants View Post
It crashes at mov edx, [ecx+0x08]

[00000000]=???

This is most likely because ECX is not set, that is why I asked what I should be injecting because I am not entirely sure
Ehm, you're already providing the skillId, no need to pull it from [ecx +0x08]

I'd leave that bit of code out of there if I were you :P

and before calling the function, ECX will be your player pointer (coming from ESI).
Interest07 is offline  
Old 07/27/2011, 14:28   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 39
Received Thanks: 0
Quote:
Originally Posted by Interest07 View Post
Ehm, you're already providing the skillId, no need to pull it from [ecx +0x08]

I'd leave that bit of code out of there if I were you :P

and before calling the function, ECX will be your player pointer (coming from ESI).
So I will have to set ESI manually?
Shortpants is offline  
Old 07/27/2011, 15:55   #6
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Quote:
Originally Posted by Shortpants View Post
So I will have to set ESI manually?
Well, you do whatever gets the player pointer in ECX. You can either put in the asm like:
mov ECX, [baseAddress]
mov ECX, [ECX + 1C]
mov ECX, [ECX + 34]

or if somewhere in your program you already have the playerpointer defined right away:
mov ECX, playerPointer

You don't need to use ESI at all, generally the only important register before calling a function is ECX. As this is the 'this' variable. Just make sure to push and pop all the registers you use in your asm code, which is done easiest by using pushad as first operation, and popad just before ret.


This is assuming your intentions are to inject some opcode into the running process and run it via for example CreateRemoteThread. If you want to edit the client for some reason then it would depend on how you plan on doing this.
Interest07 is offline  
Thanks
1 User
Old 07/27/2011, 21:30   #7
 
elite*gold: 0
Join Date: Jul 2009
Posts: 39
Received Thanks: 0
Thank you, and no I am executing everything through an injected DLL. I already have most functions working but this one was different. :-]
Shortpants is offline  
Reply


Similar Threads Similar Threads
NPC or item cast skill???
11/09/2010 - Dekaron Private Server - 1 Replies
Is there anyway to get a npc to cast a skill or have a item (fish,pots,etc) cast a skill on a char. any help would be greatfull thx.
[help]tip for skill hak 1 no cast delay
04/11/2010 - Dekaron Private Server - 0 Replies
can anyone give me a tip for skill hack 1 no cast delay using ce.... tnx for reading the message
[WTB] Skill Cast Ring
02/27/2010 - Archlord Trading - 5 Replies
ok... I WTB skill cast reduce ring (4% or more) in Brumhart server. Pay by paypal. Got good itrader rating.. so can be trusted. (except one from that retard zerkspower, but that was fake -,-) Reply or pm me price and I'll get back to you asap/ Also = WTT my 4% cast ring lv55 for 4% cast ring- lv20 ... I can put 5% res in my ring or wc in the deal if yours has a decent stone
Skill Cast Function
05/15/2009 - CO2 Programming - 9 Replies
Hey, I'am new to this conquer hacking business, and my first goal is to write a memory based xp caster. I want it to cast a xp skill when xp reaches 100. I have found the offset for the xp skill but i don't understand the skill cast function in CO. if someone would nudge me in the right direction of how to find it or give me pointers i would appreciate it ~griswald
Skill leveling -- And skill exp per cast
06/02/2008 - Cabal Online - 5 Replies
Hey, I have a question.. This is for the NA version of Cabal.. Do all magic skills, like magic arrow, lances, cannons etc... Give the same exp per hit? And vice versa with sword? I always thought that at later levels, lances were better because they do more damage than arrows, penetrate and give more skill exp. But cannons weren't as good because of casting time, and the bigger damage. So does it matter what skill you use? Or do they all give same exp?



All times are GMT +1. The time now is 09:20.


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.