Jump to content

How to Add a PSSliderCell to Your PreferenceBundle


Rook

13 posts in this topic

Recommended Posts

Updated

Fy7mUys.png

In this tutorial, I will show you how you can add a PSSliderCell in your Patcher/PreferenceBundle project.

Step 1. Start a new theos project.

Step 2:

This is the code required in Tweak.xm:


#import <substrate.h>
#import <Foundation/Foundation.h>

#define PLIST_PATH @"/var/mobile/Library/Preferences/YOUR PLIST NAME HERE.plist"
 
inline bool GetPrefBool(NSString *key) {
	return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

inline int GetPrefInt(NSString *key) {
	return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] intValue];
}

%hook Coins
- (int)have {
	if(GetPrefBool(@"key1")) { // Your key name here
			int newValue = GetPrefInt(@"key1slider"); // Your key name here
			return newValue;
		} else {
			return %orig;
	}
}
%end

Step 3: Now in your preferences plist file, you will need to add two cells. One is a button to toggle the PSSliderCell on/of and the other is the PSSliderCell itself.


                <dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>iosgods.com.pouslider</string>
			<key>key</key>
			<string>key1</string>
			<key>label</key>
			<string>Enable Coins Hack</string> <!-- The text of your switch -->
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSliderCell</string>
			<key>default</key>
			<integer>50</integer> <!-- Default value of the slider -->
			<key>defaults</key>
			<string>iosgods.com.pouslider</string> <!-- Your package name here -->
			<key>key</key>
			<string>key1slider</string> <!-- Your key name here -->
			<key>max</key>
			<real>99</real> <!-- Enter your maximum value here -->
			<key>min</key>
			<real>1</real> <!-- Enter your minimum value here -->
			<key>showValue</key> <!-- Show the value of the slider. true or false. -->
			<true/>
		</dict>

Now save and compile and you should be good to go!

If you have any questions or need any help, post down below. :)

Posted
This is very useful.

But my problem is that I want an example, parameters are offset attack function is 0x234567, I know that in most cases this is a floating-point functions, if I want to attack the original attack 1-10 times, how to write code tweak.xm Lane? This is the problem has been bothering me, I hope I can help DIDA@@DiDA

Posted

 

This is very useful.
But my problem is that I want an example, parameters are offset attack function is 0x234567, I know that in most cases this is a floating-point functions, if I want to attack the original attack 1-10 times, how to write code tweak.xm Lane? This is the problem has been bothering me, I hope I can help DIDA@@DiDA

 

You want to return a custom value in a function instead of a huge amount?

Posted

@DiDA i want to return several times attack values. such as ,if orig attack value is 1000,then return 2 times,it is 2000

.if return 5 times ,it is 1000*5=5000

players can select himself times to attack.

i want to you can give me code example.

I wonder if you know what I mean.

Posted

@DiDA i want to return several times attack values. such as ,if orig attack value is 1000,then return 2 times,it is 2000

.if return 5 times ,it is 1000*5=5000

players can select himself times to attack.

i want to you can give me code example.

I wonder if you know what I mean.

PM me. :)

Archived

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

  • Our picks

    • Inkvasion v1.0.1 [+2 Jailed Cheats]
      Modded/Hacked App: Inkvasion By ChillyRoom Inc.
      Bundle ID: com.chillyroom.inkvasion
      App Store Link: https://apps.apple.com/us/app/inkvasion/id6499471518?uo=4



      🤩 Hack Features

      - Enemy Can't Attack Building
      - Unlimited Battle Resource
      • 0 replies
    • Inkvasion v1.0.1 [+2 Cheats]
      Modded/Hacked App: Inkvasion By ChillyRoom Inc.
      Bundle ID: com.chillyroom.inkvasion
      App Store Link: https://apps.apple.com/us/app/inkvasion/id6499471518?uo=4



      🤩 Hack Features

      - Enemy Can't Attack Building
      - Unlimited Battle Resource
       
      • 1 reply
    • 鬼谷八荒 Tale of Immortal v1.0012 +4 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: 鬼谷八荒 Tale of Immortal By HKWENXINTECHNOLOGYLIMITED
      Bundle ID: com.guigugame.guigubahuangoverseas
      App Store Link: https://apps.apple.com/us/app/%E9%AC%BC%E8%B0%B7%E5%85%AB%E8%8D%92-tale-of-immortal/id6742472194?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Dumb AI
      -- All DLC Unlocked
      • 55 replies
    • 鬼谷八荒 Tale of Immortal v1.0012 +4 Cheats [ Unlocked ]
      Modded/Hacked App: 鬼谷八荒 Tale of Immortal By HKWENXINTECHNOLOGYLIMITED
      Bundle ID: com.guigugame.guigubahuangoverseas
      App Store Link: https://apps.apple.com/us/app/%E9%AC%BC%E8%B0%B7%E5%85%AB%E8%8D%92-tale-of-immortal/id6742472194?uo=4

       
       

      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Dumb AI
      -- All DLC Unlocked
      • 9 replies
    • BOWBLITZ v25.10.20 Jailed Cheats +5
      Modded/Hacked App: BOWBLITZ By Hong Kong Kaboom Technology Co., Limited
      Bundle ID: com.ka60omgame.bowblitz
      App Store Link: https://apps.apple.com/us/app/bowblitz/id6740192739?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - God Mode
      - High Damage X10
      - No Shoot Cooldown
      - No Ads + Skip Ads
      - Unlocked PREMIUM Auto Play

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/201968-bowblitz-v251020-jailed-cheats-5/
      • 1 reply
    • Zombie Waves-shooting game v2.1.2 Jailed Cheats +6
      Modded/Hacked App: Zombie Waves-shooting game By FUN FORMULA PTE. LTD.
      Bundle ID: com.ddup.zombiewaves.zw
      App Store Link: https://apps.apple.com/us/app/zombie-waves-shooting-game/id6443760593?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - God Mode
      - Infinite Ammo
      - No Reload
      - Increase Magnet Range
      - High Damage X10
      - High Fire Rate

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/201966-zombie-waves-shooting-game-v212-jailed-cheats-6/
      • 2 replies
    • EvoCreo 2: Monster Trainer RPG v1.5.5 +8 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: EvoCreo 2: Monster Trainer RPG By Ilmfinity Studios LLC
      Bundle ID: com.ilmfinity.evocreo2
      iTunes Store Link: https://apps.apple.com/us/app/evocreo-2-monster-trainer-rpg/id1499001662?uo=4

       


      🤩 Hack Features

      - Unlimited Money -> Will increase instead of decrease.
      - Unlimited Skill Points
      - Unlimited Bag Items -> Will increase instead of decrease.
      - Prestige Cleo Allowed
      - Max Creo Level -> Earn some XP.
      - Damage Multiplier - Linked -> Affects both you and enemy. Use carefully.
      - Free In-App Purchases
      - Unlock All Achievements/Badges
      • 41 replies
    • EvoCreo 2: Monster Trainer RPG v1.5.5 +8 Cheats [ Damage + More ]
      Modded/Hacked App: EvoCreo 2: Monster Trainer RPG By Ilmfinity Studios LLC
      Bundle ID: com.ilmfinity.evocreo2
      iTunes Store Link: https://apps.apple.com/us/app/evocreo-2-monster-trainer-rpg/id1499001662?uo=4

       


      🤩 Hack Features

      - Unlimited Money -> Will increase instead of decrease.
      - Unlimited Skill Points
      - Unlimited Bag Items -> Will increase instead of decrease.
      - Prestige Cleo Allowed
      - Max Creo Level -> Earn some XP.
      - Damage Multiplier - Linked -> Affects both you and enemy. Use carefully.
      - Free In-App Purchases
      - Unlock All Achievements/Badges
      • 25 replies
    • MONOPOLY: The Board Game v1.15.8 +1 Jailed Cheat [ Everything Owned ]
      Modded/Hacked App: MONOPOLY: The Board Game By Marmalade Game Studio Limited
      Bundle ID: com.marmalade.monopoly
      iTunes Store Link: https://apps.apple.com/us/app/monopoly-the-board-game/id1477966166?uo=4


      Hack Features:
      - Everything Owned -> All packs, themes, boards, tokens, all purchased and owned.


      Jailbreak required hack(s): https://iosgods.com/topic/169254-monopoly-classic-board-game-all-versions-1-cheat-everything-owned/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 428 replies
    • MONOPOLY: The Board Game v1.15.8 +1 Cheat [ Everything Owned ]
      Modded/Hacked App: MONOPOLY: The Board Game By Marmalade Game Studio Limited
      Bundle ID: com.marmalade.monopoly
      iTunes Store Link: https://apps.apple.com/us/app/monopoly-the-board-game/id1477966166?uo=4


      Hack Features:
      - Everything Owned -> All packs, themes, boards, tokens, all purchased and owned.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/169256-monopoly-classic-board-game-v189-1-jailed-cheat-everything-owned/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 211 replies
    • Resident Evil Survival Unit v1.2.0 +6 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Resident Evil Survival Unit By Aniplex Inc.
      Bundle ID: com.aniplex.resu
      App Store Link: https://apps.apple.com/us/app/resident-evil-survival-unit/id6744668327?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier [ Battle ]
      - Defence Multiplier [ Battle ]
      - God Mode [ Battle ]
      - God Mode [ Explore ]
      - One-Hit Kill [ Explore ]
      - Freeze Items & Ammo
      • 54 replies
    • Resident Evil Survival Unit v1.2.0 +6 Cheats [ Damage & Defence ]
      Modded/Hacked App: Resident Evil Survival Unit By Aniplex Inc.
      Bundle ID: com.aniplex.resu
      App Store Link: https://apps.apple.com/us/app/resident-evil-survival-unit/id6744668327?uo=4

       


      🤩 Hack Features

      - Damage Multiplier [ Battle ]
      - Defence Multiplier [ Battle ]
      - God Mode [ Battle ]
      - God Mode [ Explore ]
      - One-Hit Kill [ Explore ]
      - Freeze Items & Ammo
      • 60 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