Jump to content

Tweak.xm & Preferences Plist somebody to insert for me...


Go to solution Solved by Ted2,

14 posts in this topic

Recommended Posts

Posted
Just now, Ted2 said:

I can't help with a project that has been totally wrong changed by you.

As I said, start from scratch & I'll help.

 

Upload the files you get when you created the template.

Here you go, i swear in god that nothing is touched....

https://www.dropbox.com/s/7jjx6g3vkgqwqnw/007.zip?dl=0

 

game is Trigger Fist

Ammo              001527D4        0000A0E3

Grenades         0015370C        000040E2

  • Solution
Posted

Read what I wrote after // in both the tweak.xm & preferences.plist

 

Tweak.xm

Spoiler

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <substrate.h>

/* To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-tweakpatcherfunction-tweakpatcher-withwithout-psedittextcellpsslidercell-generator-online/ */
/* To Easily Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject-generator-online-tweakxm-preferencesplist/ */

#define PLIST_PATH @"/var/mobile/Library/Preferences/001.plist"

inline bool GetPrefBool(NSString *key) {
		return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
	if(GetPrefBool(@"key1")) { //ammo, key1 is used in 'yourprojectfolder/007/Resources/007.plist
		writeData(0x1527D4 0xA0E3); //You had 0x001527D4, the 00 before 152... is NOT needed Also 0000A0E3 can be just 0xa0e3
	} else {
}


	if(GetPrefBool(@"key2")) { //grenadesm key 2 is used in 'yourprojectfolder'/007/Resources/007.plist
		writeData(0x15370C, 0x40E2);//here counts the same from what I wrote above, in the ammo hack.
	} else {
}
}

 

 

007.plist (in /'yourprojectfolder/007/Resources/007.plist

Spoiler

<?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>footerText</key>
			<string>This text will appear under your first switch.</string> // This is the text under your first switch, which is ammo.
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>001</string> //your package name, idk why you  named it this but doesn't matter, mormally: com.Goran.nameofapp
			<key>key</key>
			<string>key1</string> //key1 = Ammo from your tweak.xm
			<key>label</key>
			<string>Switch Text 1</string> // Switch Name for Ammo, rename it to 'Ammo'
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>This text will appear under your second switch.</string> // This is the text under your second switch, which is grenades.
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>001</string> //your package name, idk why you named it this but doesn't matter, normally: com.Goran.nameofapp
			<key>key</key>
			<string>key2</string> // key2 = Grenades from your tweak.xm
			<key>label</key>
			<string>Switch Text 2</string> //Switch Name For Grenades, Rename it to 'Grenades'
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSTextCell</string>
			<key>label</key>
			<string>Made by Goran.</string>
		</dict>
		<dict>
			<key>action</key>
			<string>link</string>
			<key>cell</key>
			<string>PSButtonCell</string>
			<key>icon</key>
			<string>[email protected]</string>
			<key>label</key>
			<string>Visit iOSGods.com</string>
		</dict>
	</array>
	<key>title</key>
	<string>007 Cheats</string> //The title you want, which is probably 'Trigger Fist Cheats'
</dict>
</plist>

 

 

  • Informative 1
Posted
58 minutes ago, Ted2 said:

Read what I wrote after // in both the tweak.xm & preferences.plist

 

Tweak.xm

  Hide contents


#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <substrate.h>

/* To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-tweakpatcherfunction-tweakpatcher-withwithout-psedittextcellpsslidercell-generator-online/ */
/* To Easily Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject-generator-online-tweakxm-preferencesplist/ */

#define PLIST_PATH @"/var/mobile/Library/Preferences/001.plist"

inline bool GetPrefBool(NSString *key) {
		return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
	if(GetPrefBool(@"key1")) { //ammo, key1 is used in 'yourprojectfolder/007/Resources/007.plist
		writeData(0x1527D4 0xA0E3); //You had 0x001527D4, the 00 before 152... is NOT needed Also 0000A0E3 can be just 0xa0e3
	} else {
}


	if(GetPrefBool(@"key2")) { //grenadesm key 2 is used in 'yourprojectfolder'/007/Resources/007.plist
		writeData(0x15370C, 0x40E2);//here counts the same from what I wrote above, in the ammo hack.
	} else {
}
}

 

 

007.plist (in /'yourprojectfolder/007/Resources/007.plist

  Hide contents


<?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>footerText</key>
			<string>This text will appear under your first switch.</string> // This is the text under your first switch, which is ammo.
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>001</string> //your package name, idk why you  named it this but doesn't matter, mormally: com.Goran.nameofapp
			<key>key</key>
			<string>key1</string> //key1 = Ammo from your tweak.xm
			<key>label</key>
			<string>Switch Text 1</string> // Switch Name for Ammo, rename it to 'Ammo'
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>This text will appear under your second switch.</string> // This is the text under your second switch, which is grenades.
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>001</string> //your package name, idk why you named it this but doesn't matter, normally: com.Goran.nameofapp
			<key>key</key>
			<string>key2</string> // key2 = Grenades from your tweak.xm
			<key>label</key>
			<string>Switch Text 2</string> //Switch Name For Grenades, Rename it to 'Grenades'
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSTextCell</string>
			<key>label</key>
			<string>Made by Goran.</string>
		</dict>
		<dict>
			<key>action</key>
			<string>link</string>
			<key>cell</key>
			<string>PSButtonCell</string>
			<key>icon</key>
			<string>[email protected]</string>
			<key>label</key>
			<string>Visit iOSGods.com</string>
		</dict>
	</array>
	<key>title</key>
	<string>007 Cheats</string> //The title you want, which is probably 'Trigger Fist Cheats'
</dict>
</plist>

 

 

everything is good now i got this error... folder is nor xxx, cuz i reinstalled theos from ground.. have 9.3 sdk....

mgj2wEF.png

Posted
11 minutes ago, Goran said:

everything is good now i got this error... folder is nor xxx, cuz i reinstalled theos from ground.. have 9.3 sdk....

mgj2wEF.png

read the error, you're missing a file

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

    • Dopamine Hit Cheats v3.4.1 +5
      Modded/Hacked App: Dopamine Hit By Mobigames INC.
      Bundle ID: com.mobigames.fakeroem
      App Store Link: https://apps.apple.com/us/app/dopamine-hit/id6736514242?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

      - God Mode
      - Multiply Attack
      - No Skills Cooldown
      - Freeze Currencies
      - PREMIUM

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/196879-dopamine-hit-cheats-v2120-5/
      • 39 replies
    • Hunt Royale: Action RPG Battle v3.15.2 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       
       

      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
      • 180 replies
    • Enter the Gungeon v1.12 +8 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Enter the Gungeon By Devolver Digital, Inc.
      Bundle ID: com.devolverdigital.enterthegungeon
      App Store Link: https://apps.apple.com/us/app/enter-the-gungeon/id1100429641?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Speed Multiplier
      - Free In-App Purchases
      - Unlimited Ammo
      - Add 1000 Hegemony Credits -> Pause the game, head into Options and toggle the Reset Defaults button.*
      - Add 1000 Shells -> Pause the game, head into Options and toggle the Reset Defaults button.*

      * - Only enable 1 feature at a time.
      • 16 replies
    • Enter the Gungeon v1.12 +8 Cheats [ Damage & Defence ]
      Modded/Hacked App: Enter the Gungeon By Devolver Digital, Inc.
      Bundle ID: com.devolverdigital.enterthegungeon
      App Store Link: https://apps.apple.com/us/app/enter-the-gungeon/id1100429641?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Speed Multiplier
      - Free In-App Purchases
      - Unlimited Ammo
      - Add 1000 Hegemony Credits -> Pause the game, head into Options and toggle the Reset Defaults button.*
      - Add 1000 Shells -> Pause the game, head into Options and toggle the Reset Defaults button.*

      * - Only enable 1 feature at a time.
      • 3 replies
    • Hunt Royale: Action RPG Battle v3.15.2 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       


      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
      • 35 replies
    • Royal Kingdom v20894 +4 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Jailbreak required hack(s): [Mod Menu Hack] Royal Kingdom v3987 +4 Cheats [ Unlimited Coins ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 147 replies
    • Royal Kingdom v20894 +4 Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Royal Kingdom v3987 +4 Jailed Cheats [ Unlimited Coins ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 101 replies
    • Match Factory! v1.49.147 +3 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Match Factory! By Peak Games
      Bundle ID: net.peakgames.match
      iTunes Store Link: https://apps.apple.com/gb/app/match-factory/id6449094229?uo=4


      Hack Features:
      - Unlimited Everything -> Will increase instead of decrease. Use coins for energy.
      - Auto Win -> Pick up an item.
      - Unlimited Time -> Will not decrease.
      • 63 replies
    • Match Factory! v1.49.147 +3 Cheats [ Unlimited Everything ]
      Modded/Hacked App: Match Factory! By Peak Games
      Bundle ID: net.peakgames.match
      iTunes Store Link: https://apps.apple.com/gb/app/match-factory/id6449094229?uo=4


      Hack Features:
      - Unlimited Everything -> Will increase instead of decrease. Use coins for energy.
      - Auto Win -> Pick up an item.
      - Unlimited Time -> Will not decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Match Factory v1.1.30 +2 Jailed Cheats [ Unlimited Everything ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 61 replies
    • MU: Pocket Knights v0.0.1 +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: MU: Pocket Knights By WEBZEN INC.
      Bundle ID: com.webzen.muidle.ios
      App Store Link: https://apps.apple.com/ph/app/mu-pocket-knights/id6742208743?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      • 3 replies
    • MU: Pocket Knights v0.0.1 +3 Cheats [ Damage + More ]
      Modded/Hacked App: MU: Pocket Knights By WEBZEN INC.
      Bundle ID: com.webzen.muidle.ios
      App Store Link: https://apps.apple.com/ph/app/mu-pocket-knights/id6742208743?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      • 6 replies
    • NFL Rivals 26 Mobile Football v3.0.1 [ +3 Cheats ] AI Stupid
      Modded/Hacked App: NFL Rivals - Football Game By Mythical, Inc.
      Bundle ID: com.mythical.superteam
      iTunes Store Link: https://apps.apple.com/us/app/nfl-rivals-football-game/id1640028998?uo=4


      Hack Features:
      - AI ON Your Team 
      - Tackle 
      - No Interceptions
      • 45 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