Jump to content

7 posts in this topic

Recommended Posts

Posted (edited)

Hey guys. wasup? :D

 

So I'm very confused with all this MS thing haha.

 

I got this:

-(void) setLotsOCoins:(int)coins
{
%orig(999999);
}

This code is in my Tweak.xm file now I'm confused about  the preference bundle part.

Should I have the same code in both 2  Tweak.xm files?

 

So my hack with the switch ON/OFF

 

would be like this the code in both Tweak.xm files?

#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"     //here the name of your .plist (it's stored in the "Resources" folder)
 
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins                        
 
-(void) setLotsOCoins:(int)kcoins
{
%orig(999999);
}


%end

Confused ASF...

 

Maybe give me a template of how this code would look ready to be compiled so I can try to understand.

Well thank you guys <3

Updated by Fred22
Posted (edited)
#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins 
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8)
}
%end

Now for your plist file, for the <key> part you have to put kCoins in there

Updated by Aswag1
Posted
#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins 
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8)
}
%end

Now for your plist file, for the <key> part you have to put kCoins in there

 

 

hey thank you for your answer.

So now my .plist is here:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>items</key>
	<array>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>label</key>
			<string>Test Hacks</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<true/>
			<key>defaults</key>
			<string>com.iosgods.prefbundle</string>
			<key>kCoins</key>
			<string>Unlimited Coins</string>
			<key>label</key>
			<string>Unlimited Coins</string>
		</dict>
	</array>
	<key>title</key>
	<string>prefbundle</string>
</dict>
</plist>

is that right? 

Thank you :)

Posted

hey thank you for your answer.

So now my .plist is here:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>items</key>
	<array>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>label</key>
			<string>Test Hacks</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<true/>
			<key>defaults</key>
			<string>com.iosgods.prefbundle</string>
			<key>kCoins</key>
			<string>Unlimited Coins</string>
			<key>label</key>
			<string>Unlimited Coins</string>
		</dict>
	</array>
	<key>title</key>
	<string>prefbundle</string>
</dict>
</plist>

is that right? 

Thank you :)

Is your Preferences .plist really named "prefbundle.plist"?

Posted

Is your Preferences .plist really named "prefbundle.plist"?

 

it was, but I downloaded the updated iosgods template for theos.

now is the  name of the game.plist

Posted

it was, but I downloaded the updated iosgods template for theos.

now is the  name of the game.plist

Yeah, it auto fills it in based on what you chose when you started the project. :)

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

    • Merge Magic Academy v1.7.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4


      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 0 replies
    • Merge Magic Academy v1.7.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4
       

      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 0 replies
    • Loot Heroes v1.8.0 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 117 replies
    • Loot Heroes v1.8.0 +10 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 269 replies
    • Fisherman 2 v1.03.11 [+6 Jailed Cheats]
      Modded/Hacked App: Fisherman 2 By Little Star Games Oy
      Bundle ID: com.littlestargames.fm2
      App Store Link: https://apps.apple.com/us/app/fisherman-2/id6446778412?uo=4



      🤩 Hack Features

      - Add Coins (Enable inside main menu and enter game)
      - Add Diamonds (Enable inside main menu and enter game)
      - Catch 50 Fish (Enable inside game)
      - Complete All Task (Enable inside main menu)
      - Update All Task (Enable inside main menu)
      - End Current Round (Enable inside game)
      • 2 replies
    • Fisherman 2 v1.03.11 [+6 Cheats]
      Modded/Hacked App: Fisherman 2 By Little Star Games Oy
      Bundle ID: com.littlestargames.fm2
      App Store Link: https://apps.apple.com/us/app/fisherman-2/id6446778412?uo=4



      🤩 Hack Features

      - Add Coins (Enable inside main menu and enter game)
      - Add Diamonds (Enable inside main menu and enter game)
      - Catch 50 Fish (Enable inside game)
      - Complete All Task (Enable inside main menu)
      - Update All Task (Enable inside main menu)
      - End Current Round (Enable inside game)
        • Winner
      • 0 replies
    • Tasty Travels: Merge Game v33.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
        • Agree
        • Winner
        • Like
      • 14 replies
    • Tasty Travels: Merge Game v33.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
        • Thanks
        • Winner
        • Like
      • 14 replies
    • Endless Wander - Roguelike RPG v2.4.28 [+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
      • 15 replies
    • Endless Wander - Roguelike RPG v2.4.28 [+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)
       
        • Winner
        • Like
      • 12 replies
    • Zombies Clicker v20.1.8 [+4 Jailed Cheats]
      Modded/Hacked App: Zombies Clicker By EDENAP d.o.o.
      Bundle ID: com.edenap.a3
      App Store Link: https://apps.apple.com/us/app/zombies-clicker/id6746955704?uo=4


      🤩 Hack Features

      - Add Currency
      - Add Prestige
      - Never Die
      - One Hit Kill
        • Haha
        • Like
      • 1 reply
    • Zombies Clicker v20.1.8 [+4 Cheats]
      Modded/Hacked App: Zombies Clicker By EDENAP d.o.o.
      Bundle ID: com.edenap.a3
      App Store Link: https://apps.apple.com/us/app/zombies-clicker/id6746955704?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Prestige
      - Never Die
      - One Hit Kill
      • 2 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