Skip to content
Guest Big Announcement

Help with Ms hook

Featured Replies

I don’t know what I did worng here I am trying to hack a basic simple game when I try to compile this I get a lot of errors. I know iv searched and couldn’t find what I was looking for 

For errors see picture 

https://drive.google.com/file/d/1GdYgUODaAqxTF9kxtFfuz0QJOcB--5vG/view?usp=drivesdk

%hook Gem

-(int) gemvalue {

return 999;

}

 

%hook Player

- (void) setinvincible:(bool)yup {

Id = TRUE;

%orig(yup);

}

%end

 

%hook Player 

-(bool) invincible {

return TRUE;

}

%end

 

%hook Player 

-(bool) toBounce{

return TRUE;

}

%end

 

%hook Water 

-(bool) isLava{

return FALSE;

}

%end

 

%hook Water

- (void) setIsLava:(bool)yay {

Id = TRUE;

%orig(yay);

}

%end

 

%hook Player 

-(bool) onGround{

return TRUE;

}

%end

 

 

Updated by Red16
Images

  • Replies 27
  • Views 2.8k
  • Created
  • Last Reply
8 minutes ago, Red16 said:

Yes I just did this

Try this ():

%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

 

5 minutes ago, Red16 said:

Yes I just did this

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

 

  • Author
20 minutes ago, Zahir said:

Try this ():


%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

 

It dosent work I get new errors it failed to make dylib file

  • Author
15 minutes ago, Zahir said:

Share it

in .theos I do have Tweak.xm.763b6ea0.Td- for arm 64

for armv 7-Tweak.xm.a685d69c.Td

i don’t have the dylib file 

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

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

 

 

Archived

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.