Jump to content

18 posts in this topic

Recommended Posts

Posted

Hello, I'm trying to follow this tutorial here https://iosgods.com/topic/1737-tutorial-how-to-add-psedittextcell-in-a-patcher/

 

But it seems that it only explains how to use it with only 1 value. I have a (void):(double) , how would my tweak.xm look like if I want to put an argument?

 

This is what I have at the moment :

 

#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) setMoney:(double)arg1 {

if(GetPrefBool(@"kMoney")) {

arg1 = ;

return %orig;

}

%end

 

NSDictionary *iosgods = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[iosgods objectForKey:@"kMoney"] intValue];

 

}

 

%end

 

I get this error :

 

Tweak.xm:23:8: error: expected expression

arg1 = ;

^

Tweak.xm:28:1: error: void function

'_logos_method$_ungrouped$GNGame$setMoney$' should not

return a value [-Wreturn-type]

return [[iosgods objectForKey:@"kMoney"] intValue];

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

2 errors generated.

Posted
- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}

do you actually read it when I answer in your support topics

Posted

 

- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}
do you actually read it when I answer in your support topics

I'll try that and what do you mean if I read it?

I'll try that and what do you mean if I read it?

Okay I get it now, the thing is you don't quote me so I don't get a notification lol.

Posted

 

- (void)setMoney:(double)sexyass {
sexyass = NSDictionary *elvis = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
%orig(sexyass);
}
do you actually read it when I answer in your support topics

 

Tweak.xm:22:11: error: unexpected interface name

'NSDictionary': expected expression

sexyass = NSDictionary *elvis = [NSDictionary dictiona...

^

Tweak.xm:22:25: error: use of undeclared identifier 'elvis'

sexyass = NSDictionary *elvis = [NSDictionary dictiona...

^

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"money"] intValue];

^

3 errors generated.

Posted (edited)

@@Crypto

 

ups stacked it

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];
Updated by castix
Posted

@@Crypto

 

ups stacked it

 

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];
return [[elvis objectForKey:@"money"] intValue];

Putting this :

 

%hook GNGame

- (void)setMoney:(double)sexyass {

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[elvis objectForKey:@"kMoney"] intValue];

}

%end

 

 

Gives me this error :

 

Tweak.xm:22:9: error: assigning to 'double' from incompatible

type 'NSDictionary * _Nullable'

...= [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

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

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"kMoney"] doubleValue];

^

2 errors generated.

make[2]: *** [obj/Tweak.xm.b8bb7c1d.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [terahack.all.tweak.variables] Error 2

Posted

Putting this :

%hook GNGame

- (void)setMoney:(double)sexyass {

sexyass = [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

return [[elvis objectForKey:@"kMoney"] intValue];

}

%end

Gives me this error :

Tweak.xm:22:9: error: assigning to 'double' from incompatible

type 'NSDictionary * _Nullable'

...= [NSDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/terapref.plist"]];

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

Tweak.xm:23:10: error: use of undeclared identifier 'elvis'

return [[elvis objectForKey:@"kMoney"] doubleValue];

^

2 errors generated.

make[2]: *** [obj/Tweak.xm.b8bb7c1d.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [terahack.all.tweak.variables] Error 2

Change elvis to sexyass and doubleValue to intValue

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

    • Slay Quest v1.3.13 [+3 Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
       
        • Agree
        • Thanks
        • Winner
        • Like
      • 8 replies
    • Slay Quest v1.3.13 [+3 Jailed Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4

       

      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
        • Like
      • 6 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
        • Agree
        • Thanks
        • Winner
        • Like
      • 22 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
        • Agree
        • Winner
        • Like
      • 17 replies
    • Bounce Defense v1.10.2 [+5 Jailed Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
        • Informative
        • Thanks
        • Winner
        • Like
      • 22 replies
    • Bounce Defense v1.10.2 [+5 Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
        • Agree
        • Thanks
        • Like
      • 15 replies
    • [ The Battle Cats JP ] にゃんこ大戦争 Cheats v15.0.0 +3
      Modded/Hacked App: にゃんこ大戦争 By ponos corporation
      Bundle ID: jp.co.ponos.battlecats
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89/id547145938?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Infinite Cash
      - OHK Linked w/ Enemy
      - Infinite Cat Foods & EXP*

       

      Non-Jailbroken Hack: https://iosgods.com/topic/194335-the-battle-cats-jp-%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89-v1432-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194334-the-battle-cats-jp-%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A4%A7%E6%88%A6%E4%BA%89-cheats-v1432-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Like
      • 41 replies
    • Margonem Adventures v2.2.2 [+3 Jailed Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4

       

      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
        • Like
      • 20 replies
    • Margonem Adventures v2.2.2 [+3 Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4



      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
        • Agree
        • Winner
        • Like
      • 13 replies
    • Soul Idle : Two Sides of Girls Cheats v1.1.33 +3
      Modded/Hacked App: Soul Idle : Two Sides of Girls By Pole Position Games Inc.
      Bundle ID: com.poleposition.iOSGirls
      iTunes Store Link: https://apps.apple.com/us/app/soul-idle-two-sides-of-girls/id6504546717?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Dumb Enemies


      Non-Jailbroken & No Jailbreak required hack(s): 
       

      iOS Hack Download Link: https://iosgods.com/topic/186233-soul-idle-two-sides-of-girls-cheats-v102-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 68 replies
    • Pal Go: Tower Defense TD v0.4.28 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 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
        • Thanks
        • Winner
        • Like
      • 68 replies
    • Pal Go: Tower Defense TD v0.4.28 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 89 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