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

    • Jacket Escape v1.1.0 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Jacket Escape By 蕴绮 黄
      Bundle ID: com.simplegame.jetpack
      App Store Link: https://apps.apple.com/us/app/jacket-escape/id6450668807?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Bullet Size Max
        • Agree
        • Like
      • 1 reply
    • Jacket Escape v1.1.0 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Jacket Escape By 蕴绮 黄
      Bundle ID: com.simplegame.jetpack
      App Store Link: https://apps.apple.com/us/app/jacket-escape/id6450668807?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Bullet Size Max
        • Like
      • 1 reply
    • Motor Capital v1.0.0 [ +1 Cheats ] Enough Resources
      Modded/Hacked App: Motor Capital By 24 HIT Riga SIA
      Bundle ID: com.motor.capital
      App Store Link: https://apps.apple.com/us/app/motor-capital/id6771701401?uo=4

      🤩 Hack Features

      Pre Activated
      - Enough Resources / Only Upgrades & Building Upgrade
      • 1 reply
    • Motor Capital v1.0.0 [ +1 Jailed ] Enough Resources
      Modded/Hacked App: Motor Capital By 24 HIT Riga SIA
      Bundle ID: com.motor.capital
      App Store Link: https://apps.apple.com/us/app/motor-capital/id6771701401?uo=4

      🤩 Hack Features

      Pre Activated
      - Enough Resources / Only Upgrades & Building Upgrade
      • 0 replies
    • SimCity BuildIt Cheats v1.79.0 +1 [ Freeze Currencies ]
      Modded/Hacked App: SimCity BuildIt By EA Swiss Sarl
      Bundle ID: com.ea.simcitymobile.bv
      iTunes Store Link: https://apps.apple.com/us/app/simcity-buildit/id913292932?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/124792-arm64-simcity-buildit-v1412-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/157687-simcity-buildit-cheats-v1415-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 744 replies
    • Shoot & Hide v1.5.3 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Shoot & Hide By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.sniper.shoot.hide.game
      App Store Link: https://apps.apple.com/us/app/shoot-hide/id6747033069?uo=4

      🤩 Hack Features

      Pre Activated
      - Currency Max / Earn Then Get
      - Trophies Max Earn Then Get
      - Heroes Unlocked / Linked Trophies
      - Location Unlocked / Linked Trophies
      - Merge Anything
      - HP MAX / ON When Enemy Turn After Disable
        • Agree
        • Thanks
        • Like
      • 5 replies
    • Shoot & Hide v1.5.3 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Shoot & Hide By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.sniper.shoot.hide.game
      App Store Link: https://apps.apple.com/us/app/shoot-hide/id6747033069?uo=4

      🤩 Hack Features

      Pre Activated
      - Currency Max / Earn Then Get
      - Trophies Max Earn Then Get
      - Heroes Unlocked / Linked Trophies
      - Location Unlocked / Linked Trophies
      - Merge Anything
      - HP MAX / ON When Enemy Turn After Disable
      • 1 reply
    • Real War: Survival Game v0.1.4 [ +4 APK MOD ] Troops Max
      Mod APK Game Name: Real War: Survival Game
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.zc.action.war.survival.game

      🤩 Hack Features

      - Auto ADS NO
      - Upgrade Cost 0 / Easy To Get Coins - ATK - Fire Rate
      ::::::: VIP :::::::
      - Unlimited Troops / Hit Damage Then Use It / Just Hit 🟢🔴 Then Work
      - Max ATK
        • Informative
        • Agree
        • Winner
      • 3 replies
    • Real War: Survival Game v1.1.0 [ +4 Cheats ] Troops Max
      Modded/Hacked App: Real War: Survival Game By Rameez Rehmat
      Bundle ID: com.sku.action.war.survival.games
      App Store Link: https://apps.apple.com/us/app/real-war-survival-game/id6772532581?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Upgrade Cost 0 / Easy To Get Coins - ATK - Fire Rate
      ::::::: VIP :::::::
      - Unlimited Troops / Hit Damage Then Use It / Just Hit 🟢🔴 Then Work
      - Custom ATK 
        • Like
      • 1 reply
    • Real War: Survival Game v1.1.0 [ +4 Jailed ] Troops Max
      Modded/Hacked App: Real War: Survival Game By Rameez Rehmat
      Bundle ID: com.sku.action.war.survival.games
      App Store Link: https://apps.apple.com/us/app/real-war-survival-game/id6772532581?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Upgrade Cost 0 / Easy To Get Coins - ATK - Fire Rate
      ::::::: VIP :::::::
      - Unlimited Troops / Hit Damage Then Use It / Just Hit 🟢🔴 Then Work
      - Custom ATK 
        • Agree
        • Winner
        • Like
      • 0 replies
    • DRAGON BALL Z DOKKAN BATTLE Japan (ドラゴンボールZ ドッカンバトル) v6.2.5 +7 Cheats!
      Modded/Hacked App: ドラゴンボールZ ドッカンバトル By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcogames.BNGI0211
      iTunes Link: https://itunes.apple.com/jp/app/ドラゴンボールz-ドッカンバトル/id951627670


      Hack Features
      - Unlimited HP  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Damage  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Defense  -  (Put .0 at the back of your value: 1000.0)
      - Dice Hack -  [ONLY RANGE BETWEEN 1 - 6 or it will crash]  -  (Put .0 at the back of your value: 4.0)
      - Dice Hack 1, 2, 3
      - Dice Hack 4, 5, 6
      - Auto Win Battles -> Disable if you get errors.
      PUT .0 at the back of all values!
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 8,075 replies
    • Mushroom War: Evolution TD v1.16.2 [ +8 APK MOD ] Currency Max
      Mod APK Game Name: Mushroom War: Evolution TD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=rollingball.td.mushroom.warriors&hl=en

      🤩 Hack Features

      - ADS Skip Ticket Max / Rewards Free
      - Battle Food Speed
      ::::::: VIP :::::::
      - AI Freeze
      - Unlimited Gems
      - Unlimited Coins
      - Base HP MAX
      - Base HP Freeze
      - Hero HP Freeze
        • Like
      • 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