Jump to content

PSEditTextCell with arguments help


Crypto

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


#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

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

Archived

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

  • Our picks

    • MMS Idle: Monster Market Story v2.1.2 +4 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: MMS Idle: Monster Market Story By MalangGames Corp.
      Bundle ID: com.malang.store.mms.idle
      iTunes Store Link: https://apps.apple.com/us/app/mms-idle-monster-market-story/id1658692970?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - Move Speed Multiplier
      - Unlimited Currencies -> Will increase instead of decrease.
      • 0 replies
    • MMS Idle: Monster Market Story v2.1.2 +4 Cheats [ Damage & Defence ]
      Modded/Hacked App: MMS Idle: Monster Market Story By MalangGames Corp.
      Bundle ID: com.malang.store.mms.idle
      iTunes Store Link: https://apps.apple.com/us/app/mms-idle-monster-market-story/id1658692970?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - Move Speed Multiplier
      - Unlimited Currencies -> Will increase instead of decrease.
      • 0 replies
    • Pop Island v0.3.3 [ +1 Cheats ] Coins Max
      Modded/Hacked App: Pop Island By HISTAR INTERACTIVE PTE. LTD.
      Bundle ID: com.hmbdgames.match
      iTunes Store Link: https://apps.apple.com/us/app/pop-island/id6505047210?uo=4


      🤩 Hack Features

      - Coins [ Win Match Disable After Hack ]


      • 0 replies
    • Pop Island v0.3.3 [ +1 Jailed ] Coins Max
      Modded/Hacked App: Pop Island By HISTAR INTERACTIVE PTE. LTD.
      Bundle ID: com.hmbdgames.match
      iTunes Store Link: https://apps.apple.com/us/app/pop-island/id6505047210?uo=4


      🤩 Hack Features

      - Coins [ Win Match Disable After Hack ]


      • 0 replies
    • Alien Survivor: Survival Arena v1.31.0 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 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/
      • 5 replies
    • Alien Survivor: Survival Arena v1.31.0 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 4 replies
    • Boom Castle Tower Defense TD v1.3.1 [ +7 Cheats ] Easy Win
      Modded/Hacked App: Boom Castle: Tower Defense TD By Terahype s.r.o.
      Bundle ID: castle.heroes.tower.defense.kingdom.magic.battle.archer
      iTunes Store Link: https://apps.apple.com/us/app/boom-castle-tower-defense-td/id6502820312?uo=4


      Hack Features:

      - Enemy Status [ HP DEF ]

      - Base HP 

      - Battle Cost 0 

      - Stage Unlocked [ Play Any Stage ]

      - Battle Pass Unlocked 

      - Battle Pass Claim Unlimited [ Gems Gold ]

      - iGG Speed Hack Max 0 - 10 [ Skill CD - ATK Speed - Animation Speed - Wave Faster ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 10 replies
    • Boom Castle Tower Defense TD v1.3.1 [ +7 Cheats ] Easy Win
      Modded/Hacked App: Boom Castle: Tower Defense TD By Terahype s.r.o.
      Bundle ID: castle.heroes.tower.defense.kingdom.magic.battle.archer
      iTunes Store Link: https://apps.apple.com/us/app/boom-castle-tower-defense-td/id6502820312?uo=4


      Hack Features:
      - Enemy Status [ HP DEF ]

      - Base HP 

      - Battle Cost 0 

      -  Stage Unlocked [ Play Any Stage ]

      - Battle Pass Unlocked 

      - Battle Pass Claim Unlimited [ Gems Gold ]

      - iGG Speed Hack Max 0 - 10 [ Skill CD - ATK Speed - Animation Speed - Wave Faster ] 


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 27 replies
    • Good Coffee, Great Coffee v1.0.7 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       


      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
      • 51 replies
    • Good Coffee, Great Coffee v1.0.7 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
      • 29 replies
    • Tales of Brave doomsday battle v2.1.5 [ +9 Jailed ] ADS NO
      Modded/Hacked App: Tales of Brave doomsday battle By Hakan Aksar
      Bundle ID: com.tianyou.tob
      iTunes Store Link: https://apps.apple.com/us/app/tales-of-brave-doomsday-battle/id6587553322?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Never Die

      - ONE HiT KiLL

      - Enemy Movement Speed

      - ATK Speed

      - Bullet Max 20

      - Bullet Size Big

      - Enemy Freeze

      - Wall No Hit Enemy


      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 2 replies
    • Tales of Brave doomsday battle v2.1.5 [ +9 Cheats ] ADS NO
      Modded/Hacked App: Tales of Brave doomsday battle By Hakan Aksar
      Bundle ID: com.tianyou.tob
      iTunes Store Link: https://apps.apple.com/us/app/tales-of-brave-doomsday-battle/id6587553322?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Never Die

      - ONE HiT KiLL

      - Enemy Movement Speed

      - ATK Speed

      - Bullet Max 20

      - Bullet Size Big

      - Enemy Freeze

      - Wall No Hit Enemy

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack
      • 1 reply
×
  • 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