Jump to content

18 posts in this topic

Recommended Posts

Posted

What's your current Tweak.xm?

#define PLIST_PATH @"/var/mobile/Library/Preferences/terapref.plist"

#import <UIKit/UIKit.h>

 

inline bool GetPrefBool(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

#include <Foundation/Foundation.h>

 

%hook GNGame

-(void) setGenesisPoints:(int)arg1 {

if(GetPrefBool(@"kGenesis")) {

arg1 = 999999;

}

return %orig;

}

%end

 

%hook GNGame

- (void)setMoney:(double)arg1 {

if(GetPrefBool(@"kMoney")) {

arg1 = [NSNumber numberWithInt:GetPrefDouble(@"kMoney")];

}

}

%end

 

%hook AppDelegate

 

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

 

UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"IosGods"

message:@"TeraGenesis Cheat By Crypto" delegate:self cancelButtonTitle:@"Thanks!" otherButtonTitles:@"For more hacks, Click Here!", nil];

[alert show];

[alert release];

return %orig();

%new

}

 

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

if(buttonIndex !=alertView.cancelButtonIndex)

{

[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.iosgods.com]];

}

}

 

%end

--------------------------------------------------------

I have like 15 other classes but They all have 1 argument and I need to know how to make 1 PSEditTextCell so I can use it on all the other classes.

Posted (edited)


#define PLIST_PATH @"/var/mobile/Library/Preferences/terapref.plist"

#import <UIKit/UIKit.h>

 

inline double GetPrefDouble(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] doubleValue];

}

 

inline bool GetPrefBool(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

#include <Foundation/Foundation.h>

 

%hook GNGame

- (void)setGenesisPoints:(int)arg1 {

if(GetPrefBool(@"kGenesis")) {

arg1 = 999999;

}

 

return %orig();

}

%end

 

%hook GNGame

- (void)setMoney:(double)arg1 {

if (GetPrefBool(@"kMoney")) {

arg1 = [NSNumber numberWithInt:GetPrefDouble(@"kMoney")];

}

 

return %orig();

}

%end

 

%hook AppDelegate

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

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"IosGods"

message:@"TeraGenesis Cheat By Crypto" delegate:self cancelButtonTitle:@"Thanks!" otherButtonTitles:@"For more hacks, Click Here!", nil];

[alert show];

[alert release];

 

return %orig();

}

 

%new

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

if (buttonIndex != alertView.cancelButtonIndex)

{

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.iosgods.com"]];

}

}

 

%end

Updated by JustRick
Posted

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/terapref.plist"
#import <UIKit/UIKit.h>

inline double GetPrefDouble(NSString *key)
{
   return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] doubleValue];
}

inline bool GetPrefBool(NSString *key)
{
    return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

#include <Foundation/Foundation.h>

%hook GNGame
- (void)setGenesisPoints:(int)arg1 {
    if(GetPrefBool(@"kGenesis")) {
       arg1 = 999999;
    }
    
    return %orig();
}
%end

%hook GNGame
- (void)setMoney:(double)arg1 {
   if (GetPrefBool(@"kMoney")) {
      arg1 = [NSNumber numberWithInt:GetPrefDouble(@"kMoney")];
   }

   return %orig();
}
%end

%hook AppDelegate
- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
     UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"IosGods"
     message:@"TeraGenesis Cheat By Crypto" delegate:self cancelButtonTitle:@"Thanks!" otherButtonTitles:@"For more hacks, Click Here!", nil]; 
     [alert show];
     [alert release]; 

     return %orig();
}

%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
   if (buttonIndex != alertView.cancelButtonIndex) 
   { 
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.iosgods.com"]]; 
   }
}

%end 

Compiling Tweak.xm...

Tweak.xm:29:12: error: assigning to 'double' from incompatible

type 'NSNumber * _Nonnull'

...= [NSNumber numberWithInt:GetPrefDouble(@"kMoney")];

^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

Posted


#define PLIST_PATH @"/var/mobile/Library/Preferences/terapref.plist"

#import <UIKit/UIKit.h>

 

inline double GetPrefDouble(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] doubleValue];

}

 

inline bool GetPrefBool(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

#include <Foundation/Foundation.h>

 

%hook GNGame

- (void)setGenesisPoints:(int)arg1 {

if(GetPrefBool(@"kGenesis")) {

arg1 = 999999;

}

 

return %orig();

}

%end

 

%hook GNGame

- (void)setMoney:(double)arg1 {

if (GetPrefBool(@"kMoney")) {

arg1 = [NSNumber numberWithDouble:GetPrefDouble(@"kMoney")];

}

 

return %orig();

}

%end

 

%hook AppDelegate

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

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"IosGods"

message:@"TeraGenesis Cheat By Crypto" delegate:self cancelButtonTitle:@"Thanks!" otherButtonTitles:@"For more hacks, Click Here!", nil];

[alert show];

[alert release];

 

return %orig();

}

 

%new

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

if (buttonIndex != alertView.cancelButtonIndex)

{

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.iosgods.com"]];

}

}

 

%end

Posted

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/terapref.plist"
#import <UIKit/UIKit.h>

inline double GetPrefDouble(NSString *key)
{
   return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] doubleValue];
}

inline bool GetPrefBool(NSString *key)
{
    return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

#include <Foundation/Foundation.h>

%hook GNGame
- (void)setGenesisPoints:(int)arg1 {
    if(GetPrefBool(@"kGenesis")) {
       arg1 = 999999;
    }
    
    return %orig();
}
%end

%hook GNGame
- (void)setMoney:(double)arg1 {
   if (GetPrefBool(@"kMoney")) {
      arg1 = [NSNumber numberWithDouble:GetPrefDouble(@"kMoney")];
   }

   return %orig();
}
%end

%hook AppDelegate
- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
     UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"IosGods"
     message:@"TeraGenesis Cheat By Crypto" delegate:self cancelButtonTitle:@"Thanks!" otherButtonTitles:@"For more hacks, Click Here!", nil]; 
     [alert show];
     [alert release]; 

     return %orig();
}

%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
   if (buttonIndex != alertView.cancelButtonIndex) 
   { 
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.iosgods.com"]]; 
   }
}

%end 

Same error

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
  • Our picks

    • Castle Crush-Match 3 v2.25.0 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Castle Crush-Match 3 By KIWI MIBO NETWORK TECHNOLOGY CO.,LIMITED
      Bundle ID: com.mibo.castlecrush.apple
      iTunes Store Link: https://apps.apple.com/us/app/castle-crush-match-3/id1663431964?uo=4


      Hack Features

      - Coins

      - Lives

      - Stars

      - Moves Freeze

      - Booster

      - Auto Win [ Just Hit Target ]


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Like
      • 25 replies
    • Castle Crush-Match 3 v2.25.0 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Castle Crush-Match 3 By KIWI MIBO NETWORK TECHNOLOGY CO.,LIMITED
      Bundle ID: com.mibo.castlecrush.apple
      iTunes Store Link: https://apps.apple.com/us/app/castle-crush-match-3/id1663431964?uo=4


      Hack Features

      - Coins

      - Lives

      - Stars

      - Moves Freeze

      - Booster

      - Auto Win [ Just Hit Target ]


      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Like
      • 32 replies
    • Squishmallows Match v1.0.5 [ +2 Cheats ] Auto Win
      Modded/Hacked App: Squishmallows Match By East Side Games Inc
      Bundle ID: com.eastsidegames.squishmallows
      App Store Link: https://apps.apple.com/ph/app/squishmallows-match/id6450057167?uo=4

       

      🤩 Hack Features

      - Auto Win
      - Lives [ 0 Play Unlimited ]

        • Like
      • 12 replies
    • Squishmallows Match v1.0.5 [ +2 Jailed ] Auto Win
      Modded/Hacked App: Squishmallows Match By East Side Games Inc
      Bundle ID: com.eastsidegames.squishmallows
      App Store Link: https://apps.apple.com/ph/app/squishmallows-match/id6450057167?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Lives [ 0 Play Unlimited ]

        • Like
      • 17 replies
    • Piggy Kingdom - Match 3 Games v2.3.0 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Piggy Kingdom - Match 3 Games By OLLEYO PTE. LTD.
      Bundle ID: com.olleyo.piggy.match
      iTunes Store Link: https://apps.apple.com/us/app/piggy-kingdom-match-3-games/id1635337354?uo=4


      🚀 Hack Features

      - Coins

      - Lives

      - Build Coins

      - Moves

      - Booster

      - Color Move Only [ Without Matching Move Anywhere ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Thanks
        • Like
      • 27 replies
    • Piggy Kingdom - Match 3 Games v2.3.0 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Piggy Kingdom - Match 3 Games By OLLEYO PTE. LTD.
      Bundle ID: com.olleyo.piggy.match
      iTunes Store Link: https://apps.apple.com/us/app/piggy-kingdom-match-3-games/id1635337354?uo=4


      🚀 Hack Features

      - Coins

      - Lives

      - Build Coins

      - Moves

      - Booster

      - Color Move Only [ Without Matching Move Anywhere ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Like
      • 28 replies
    • Jolly Match 3 - Puzzle Game v1.0.2047 [ +5 Cheats ] Auto Win
      Modded/Hacked App: Jolly Match 3 - Puzzle Game By Jollyco LLC
      Bundle ID: com.jollyco.jollybattlematch3
      App Store Link: https://apps.apple.com/us/app/jolly-match-3-puzzle-game/id1554274735?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Stars

      - Lives

      - Booster
        • Like
      • 5 replies
    • Jolly Match 3 - Puzzle Game v1.0.2047 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Jolly Match 3 - Puzzle Game By Jollyco LLC
      Bundle ID: com.jollyco.jollybattlematch3
      App Store Link: https://apps.apple.com/us/app/jolly-match-3-puzzle-game/id1554274735?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Stars

      - Lives

      - Booster
        • Like
      • 5 replies
    • Candy Pop Story : Match 3 v1.28.0916 [ +3 Cheats ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4


      🤩 Hack Features

      - Auto Win
      - Coins
      - Moves
      -
        • Thanks
      • 11 replies
    • Candy Pop Story : Match 3 v1.28.0916 [ +3 Jailed ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Coins
      - Moves
        • Winner
        • Like
      • 10 replies
    • Words of Wonders: Crossword v5.2.21 [ +8 Cheats ] Auto Win
      Modded/Hacked App: Words of Wonders: Crossword By FUGO BILISIM TEKNOLOJILERI VE YAZILIM TICARET ANONIM SIRKETI
      Bundle ID: com.fugo.wow
      App Store Link: https://apps.apple.com/us/app/words-of-wonders-crossword/id1369521645?uo=4


      🤩 Hack Features

      - Auto ADS OFF

      - Auto Win

      - Gems

      - w Coins

      - Hints

      - Hammer

      - Rocket
        • Thanks
        • Winner
        • Like
      • 7 replies
    • Words of Wonders: Crossword v5.2.21 [ +8 Jailed ] Auto Win
      Modded/Hacked App: Words of Wonders: Crossword By FUGO BILISIM TEKNOLOJILERI VE YAZILIM TICARET ANONIM SIRKETI
      Bundle ID: com.fugo.wow
      App Store Link: https://apps.apple.com/us/app/words-of-wonders-crossword/id1369521645?uo=4
       

      🤩 Hack Features

      - Auto ADS OFF

      - Auto Win

      - Gems

      - w Coins

      - Hints

      - Hammer

      - Rocket
        • Thanks
        • Like
      • 8 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