Jump to content

Help with Ms hook


Red16

28 posts in this topic

Recommended Posts

Posted
2 minutes ago, Zahir said:

Can you share your whole tweak.xm file?

%hook Gem

-(int) gemvalue {

return 999;

}

%end

 

%hook Player 

-(bool) invincible {

return TRUE;

}

 

-(bool) onGround{

return TRUE;

}

 

-(bool) toBounce{

return TRUE;

}

%end

 

%hook Water 

-(bool) isLava{

return FALSE;

}

%end

 

%hook AppDelegate

 

-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {

 

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Goblin Sword MegaHack"

message:@"Be sure to stop by iosgods.com and thank @red16" delegate:nil cancelButtonTitle:@"Thanks"

otherButtonTitles:nil];

 

[alert show];

[alert release];



return %orig;

}



%end

 
  • Replies 27
  • Created
  • Last Reply
Posted
1 hour ago, Joka said:

Try this:


%hook Gem
-(int) gemvalue {
return 999;
}
%end

%hook Player
- (void) setinvincible:(bool)arg1 {
arg1 = TRUE;
}
-(bool) invincible {
return TRUE;
}
-(bool) toBounce{
return TRUE;
}
-(bool) onGround{
return TRUE;
}
%end

%hook Water 
-(bool) isLava{
return FALSE;
}
- (void) setIsLava:(bool)arg1 {
arg1 = FALSE;
}
%end

 

This didn’ Work

but this one kinda worked with building tweak.xm in obj folder

%hook Gem

-(int) gemvalue {

return 999;

}

%end

 

%hook Player 

-(bool) invincible {

return TRUE;

}

 

-(bool) onGround{

return TRUE;

}

 

-(bool) toBounce{

return TRUE;

}

%end

 

%hook Water 

-(bool) isLava{

return FALSE;

}

%end

 

%hook AppDelegate

 

-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {

 

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Goblin Sword MegaHack"

message:@"Be sure to stop by iosgods.com and thank @red16" delegate:nil cancelButtonTitle:@"Thanks"

otherButtonTitles:nil];

 

[alert show];

[alert release];



return %orig;

}



%end

 

 

Posted
25 minutes ago, Red16 said:

This didn’ Work

but this one kinda worked with building tweak.xm in obj folder

%hook Gem

-(int) gemvalue {

return 999;

}

%end

 

%hook Player 

-(bool) invincible {

return TRUE;

}

 

-(bool) onGround{

return TRUE;

}

 

-(bool) toBounce{

return TRUE;

}

%end

 

%hook Water 

-(bool) isLava{

return FALSE;

}

%end

 

%hook AppDelegate

 

-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {

 

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Goblin Sword MegaHack"

message:@"Be sure to stop by iosgods.com and thank @red16" delegate:nil cancelButtonTitle:@"Thanks"

otherButtonTitles:nil];

 

[alert show];

[alert release];



return %orig;

}



%end

 

 

Well what new error are you facing?

Posted
5 minutes ago, Red16 said:

alot

Try deleting the UIAlertView bit and then compile.

Posted
1 minute ago, Joka said:

Try deleting the UIAlertView bit and then compile.

Still the same error let me sand the flex thing to you can you tell me how

Posted
3 minutes ago, Red16 said:

Still the same error let me sand the flex thing to you can you tell me how

It's not the tweak.xm, it's your theos.

Posted
11 minutes ago, Joka said:

It's not the tweak.xm, it's your theos.

I got it from jake james so which one should I use

Or upgrade

Posted

Remove this because some app can not have pop up message and see if that work

%hook AppDelegate

 

 -(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {

 

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Goblin Sword MegaHack"

message:@"Be sure to stop by iosgods.com and thank @red16" delegate:nil cancelButtonTitle:@"Thanks"

otherButtonTitles:nil];

 

[alert show];

[alert release];



return %orig;

}



%end

 

remove it all

Posted
37 minutes ago, jamiesharon said:

Remove this because some app can not have pop up message and see if that work

%hook AppDelegate

 

 -(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {

 

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Goblin Sword MegaHack"

message:@"Be sure to stop by iosgods.com and thank @red16" delegate:nil cancelButtonTitle:@"Thanks"

otherButtonTitles:nil];

 

[alert show];

[alert release];



return %orig;

}



%end

 

remove it all

No I’m geting errors compiling the .deb

Archived

This topic is now archived and is closed to further replies.

×
  • 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