Jump to content

MSHOOKING AND FLEX HELP!


Go to solution Solved by AxCE,

53 posts in this topic

Recommended Posts

Posted

#include <UIKit/UIKit.h>

 

%hook UserDataManager

 

-(bool)isTrailUnlocked:(int)fp8 {

return TRUE;

%orig(fp8);

 

)

 

-(bool)isCharacterUnlocked:(int)fp8 {

return TRUE;

%orig(fp8);

 

)

 

 

-(bool)isHatUnlocked:(int)fp8 {

return TRUE;

%orig(fp8);

 

)

 

 

-(bool)isPowerupUnlocked:(int)fp8 {

return TRUE;

%orig(fp8);

 

)

 

%end

 

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)argument {

UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"FlappyGolf2Hack" message:@"Hacked by Sunny Patel" delegate:nil cancelButtonTitle:@"Thanks" otherButtonTitles:nil];

[alert show];

[alert release];

}

%end

Hmm, you shouldn't be getting that error from what I can see. Try changing every instance of

%orig(fp8);

to

fp8 = %orig;
Posted

Hmm, you shouldn't be getting that error from what I can see. Try changing every instance of

 

%orig(fp8);
to

fp8 = %orig;
still says %end doesn't make sense inside a block error
Posted

still says %end doesn't make sense inside a block error

I'm honestly clueless right now, and it's probably something simple I'm missing out on. I'll install the game real quick and use your Tweak.xm and see if I can figure it out that way

Posted

I'm honestly clueless right now, and it's probably something simple I'm missing out on. I'll install the game real quick and use your Tweak.xm and see if I can figure it out that way

okay thanks. Just answer here cause I'm going to sleep. Also did I mess up in the control or make file at all?
Posted

okay thanks. Just answer here cause I'm going to sleep. Also did I mess up in the control or make file at all?

No, those should be fine if you did what Diversityy suggested earlier

Posted

No, those should be fine if you did what Diversityy suggested earlier

did that. I just can't pin point what's wrong. I gotta sleep so please answer here and I'll check in the morning
Posted

did that. I just can't pin point what's wrong. I gotta sleep so please answer here and I'll check in the morning

Sounds good

Posted

Yo you have to close the close the code block when you open one with } not )

 

Second remove all that %orig if you don't make a patcher

Posted (edited)

Yo you have to close the close the code block when you open one with } not )

Second remove all that %orig if you don't make a patcher

Thanks so much castix. With you and diversity and ProVIP combined it helped a lot! Thanks man

No, those should be fine if you did what Diversityy suggested earlier

turns out that you ended the code with ) not } Updated by Asianplus
Posted

Thanks so much cystic. With you and diversity and ProVIP combined it helped a lot! Thanks man

turns out that you ended the code with ) not }

I knew it was something simple. Not sure how I let that go by. Glad you got it fixed, though :)

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