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