Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 03:31

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

Advertisement



Attack function

Discussion on Attack function within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
Hatz~'s Avatar
 
elite*gold: 0
Join Date: May 2020
Posts: 369
Received Thanks: 448
Attack function

Heya, i've been playing around with the attack function and i've found 2 problems, the first one and most important is that it doesn't matter what skill i pass to the function it always use the basic attack, the other one is that if i pass the skill to the ebx register it cast a basic skill but if i move the character and try to attack again it doesn't work.

Here is my attack function:

Removing the "mov ebx, skill" allows me to cast the basic skill after moving but i can only use the basic skill D: anyone experienced on reversing can help me?
Hatz~ is offline  
Old 12/10/2020, 08:45   #2
 
Pumba98's Avatar
 
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
I don't know about the attack function but I learned much about Delphi recently.
Take a look at it's calling convention (register calling convention).
Function arguments are EAX, EDX, ECX, further arguments are pushed on the stack.
If something is moved to ebx that's usually to make sure you don't loose a value when calling a function
Pumba98 is offline  
Thanks
2 Users
Old 12/10/2020, 11:03   #3
 
Hatz~'s Avatar
 
elite*gold: 0
Join Date: May 2020
Posts: 369
Received Thanks: 448
Thanks for the info, so i've figure out that the problem is on the skill parameter, removing the mov esi, skill did not change anything so that means it's actually useless tho, edx and eax are fine. I've tried pushing the skill into the stack before calling the function but didn't work. I've also tryed moving it into ecx but it didnt work, ecx is set to 0 before calling the function
Hatz~ is offline  
Reply


Similar Threads Similar Threads
Trying to hook the Attack Function
02/18/2014 - CO2 Programming - 10 Replies
Hi! Im trying to make a small bot as I said in my last post (asking for "despawn"). For the moment, the bot only saves the players and mobs that are in the "range" of my player (distance <= 18) and jump to a specific coords. Now I'm trying to hook the attack function, but I don't get it. I hope you can help me. This is the Attack Function in Conquer.exe: http://img108.xooimage.com/files/6/6/4/attackfunc -43df1d8.png (I dont know why it doesn't show the image, it is between the tags :l ...
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Running Function 2 after Function 1 finished
09/15/2013 - AutoIt - 3 Replies
Hey, its me again. Im stuck on a problem since yesterday and as much as i hate to ask for help, i really dont know what else to try. I want Function 2 to run after Function 1 has finished. I tried GuiCtrlSetOnEvent and MsgLoop, but i dont really understand it. I tried to read tutorials but they didnt help at all. The line that are underline is what im talking about. I want gamestart() to run first and when its finished, i want iniviteteam() to run. #AutoIt3Wrapper_UseX64=n...
[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



All times are GMT +1. The time now is 03:32.


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.