Jump to content

Help ! increase attack rather than unlimited attack


Go to solution Solved by Guest,

15 posts in this topic

Recommended Posts

Posted
Request to write a tutorial on the increase attack power is 10 times the original attack, rather than unlimited attack "one hit kill" (mov r0, r7)

Thanks for help

Posted (edited)

Bro, Is possible to hook attack function with sub_x?if so ,please teach me the way.or take a simple example.

if attack function is "sub_23b148"

 

thx a lot.

 

@@shmoo

Updated by Fruit
Posted (edited)

@@fruit

 

Here is how you would hook a subroutine:

 

#import <substrate.h>

float (*attackOld)(void *self);

float attack(void *self) {

        return YourNormalAttackMultipliedByTen.0f;
}

%ctor{
if(GetPrefBool(@"kAttack"))
{
        MSHookFunction((void*)(0x23B148+1),(void*)attack,(void**)&attackOld);
}

}
If this game is a Unity game use take out the "+1"

 

That's how you would make a patcher out of it

Updated by Guest
Posted

@@shmoo

 

 

 

Here can you give an example?

I do not know how to express my attack multiplied by Ten. :p

Say the normal attack of your character is 15. 10 x 15 = 150. So you would be returning 150 instead of 10.

Posted

Say the normal attack of your character is 15. 10 x 15 = 150. So you would be returning 150 instead of 10.

Character attack should be a variable,so i donnt know how to replace it.

In your opinion, it is my a constant attack.

Maybe I'm stupid.shmoo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines