Jump to content

16 posts in this topic

Recommended Posts

Posted

Hello. Im making a patcher for happyWheels.

 

My tweak.xm:

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.happyw.plist"

 

inline bool GetPrefBool(NSString *key) {

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

%hook Session

 

-(float)gravity {

if(GetPrefBool(@"key1")) {

return -5.00f;

}

return %orig;

}

 

%end

 

%hook CharacterB2D

 

-(void)headSmash:(float)argument {

if(GetPrefBool(@"key2")) {

argument = 9999999.9f;

}

return %orig;

}

 

-(void)chestSmash:(float)argument {

if(GetPrefBool(@"key2")) {

argument = 9999999.9f;

}

return %orig;

}

 

-(void)pelvisSmash:(float)argument {

if(GetPrefBool(@"key2")) {

argument = 999999.9f;

}

return %orig;

}

 

%end

 

%hook SomethingElse

 

-(BOOL)SomeMethod {

if(GetPrefBool(@"key4")) {

return TRUE;

}

return %orig;

}

 

%end

 

 

The switcher "lowGravity" works but the godmode doesn't. Im not sure if this is the right way to put more methods in one switch but when i return those values in flex, the godmode works fine. Just the godmode switch isnt gonna change anything ingame.

Please Help.

Posted

Post your preference plist also.

<?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>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key1</string>

<key>label</key>

<string>LowGravity</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>You can only die through arrow/harpoon/spikes</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key2</string>

<key>label</key>

<string>GodMode</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>This text will appear under your third switch.</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key3</string>

<key>label</key>

<string>Switch Text 3</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>This text will appear under your fourth switch.</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key4</string>

<key>label</key>

<string>GodMode</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

</dict>

<dict>

<key>cell</key>

<string>PSTextCell</string>

<key>label</key>

<string>Made by axce.</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>happyw Cheats</string>

</dict>

</plist>

Try

 

-(void)headSmash:(float)argument {
if(GetPrefBool(@"key2")) {
%orig(9999999.9f);
}
return %orig;
}
for those methods :dunno:
Ill try, Thanks. And btw how can i make my for ex. Tweak.xm colorful?
Posted

<?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>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key1</string>

<key>label</key>

<string>LowGravity</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>You can only die through arrow/harpoon/spikes</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key2</string>

<key>label</key>

<string>GodMode</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>This text will appear under your third switch.</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key3</string>

<key>label</key>

<string>Switch Text 3</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>This text will appear under your fourth switch.</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key4</string>

<key>label</key>

<string>GodMode</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

</dict>

<dict>

<key>cell</key>

<string>PSTextCell</string>

<key>label</key>

<string>Made by axce.</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>happyw Cheats</string>

</dict>

</plist>

Ill try, Thanks. And btw how can i make my for ex. Tweak.xm colorful?

Use the code tag if you're trying to do what I did

Posted

Use the code tag if you're trying to do what I did

What is the tag? I coulden't find it.
Posted (edited)

Try this.

 

Tweak.xm:

 

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.happyw.plist"

 

inline bool GetPrefBool(NSString *key) {

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

#include <Foundation/Foundation.h>

 

%hook Session

-(float)gravity {

if(GetPrefBool(@"key1")) {

return -5.00f;

}

return %orig;

}

%end

 

%hook CharacterB2D

-(void)headSmash:(float)argument1 {

if(GetPrefBool(@"key2")) {

argument1 = 9999999.0f;

}

return %orig;

}

%end

 

%hook CharacterB2D

-(void)chestSmash:(float)argument2 {

if(GetPrefBool(@"key2")) {

argument2 = 9999999.0f;

}

return %orig;

}

%end

 

%hook CharacterB2D

-(void)pelvisSmash:(float)argument3 {

if(GetPrefBool(@"key2")) {

argument3 = 999999.0f;

}

return %orig;

}

%end

 

%hook SomethingElse

-(BOOL)SomeMethod {

if(GetPrefBool(@"key3")) {

return TRUE;

}

return %orig;

}

%end

 

 

 

Preference Plist:

 

dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key1</string>

<key>label</key>

<string>LowGravity</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>You can only die through arrow/harpoon/spikes</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key2</string>

<key>label</key>

<string>GodMode</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>This text will appear under your fourth switch.</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key3</string>

<key>label</key>

<string>GodMode</string>

</dict>

Updated by Crypto
Posted

Try this.

Tweak.xm:

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iosgods.happyw.plist"

inline bool GetPrefBool(NSString *key) {

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

#include <Foundation/Foundation.h>

%hook Session

-(float)gravity {

if(GetPrefBool(@"key1")) {

return -5.00f;

}

return %orig;

}

%end

%hook CharacterB2D

-(void)headSmash:(float)argument1 {

if(GetPrefBool(@"key2")) {

argument1 = 9999999.0f;

}

return %orig;

}

%end

%hook CharacterB2D

-(void)chestSmash:(float)argument2 {

if(GetPrefBool(@"key2")) {

argument2 = 9999999.0f;

}

return %orig;

}

%end

%hook CharacterB2D

-(void)pelvisSmash:(float)argument3 {

if(GetPrefBool(@"key2")) {

argument3 = 999999.0f;

}

return %orig;

}

%end

%hook SomethingElse

-(BOOL)SomeMethod {

if(GetPrefBool(@"key3")) {

return TRUE;

}

return %orig;

}

%end

Preference Plist:

dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key1</string>

<key>label</key>

<string>LowGravity</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>You can only die through arrow/harpoon/spikes</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key2</string>

<key>label</key>

<string>GodMode</string>

</dict>

<dict>

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>This text will appear under your fourth switch.</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.iosgods.happyw</string>

<key>key</key>

<string>key3</string>

<key>label</key>

<string>GodMode</string>

</dict>

No, still nothing. :/

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

    • Claw Master – Roguelike Hero v1.0.11 [ +15 Cheats  ] Currency Max
      Modded/Hacked App: Claw Master – Roguelike Hero By AI GAMES FZ LLC
      Bundle ID: hero.claw.master
      App Store Link: https://apps.apple.com/us/app/claw-master-roguelike-hero/id6755685940?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Hero Cards / Easy To Unlock Just 1 Earn
      - Unlimited Dungeon Ticket
      - Unlimited Tower Ticket
      - Unlimited Relics Keys
      - Unlimited Battle Red Star
      - Unlimited Battle Yellow Stars
      - Unlimited Luck Balls
      - Unlimited Reroll Dice
      - Unlimited Resurrection Stone
      - Unlimited Shuffle Coins
      - DMG
        • Like
      • 6 replies
    • Claw Master – Roguelike Hero v1.0.11 [ +15 Jailed ] Currency Max
      Modded/Hacked App: Claw Master – Roguelike Hero By AI GAMES FZ LLC
      Bundle ID: hero.claw.master
      App Store Link: https://apps.apple.com/us/app/claw-master-roguelike-hero/id6755685940?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Hero Cards / Easy To Unlock Just 1 Earn
      - Unlimited Dungeon Ticket
      - Unlimited Tower Ticket
      - Unlimited Relics Keys
      - Unlimited Battle Red Star
      - Unlimited Battle Yellow Stars
      - Unlimited Luck Balls
      - Unlimited Reroll Dice
      - Unlimited Resurrection Stone
      - Unlimited Shuffle Coins
      - DMG
      • 9 replies
    • Matching Story v1.62.02 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
      • 102 replies
    • Matching Story v1.62.02 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4

       
      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
      • 100 replies
    • Splat! 2 v1.10.0 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Splat! 2 By Sequel Games Inc.
      Bundle ID: com.sequel.nabba
      App Store Link: https://apps.apple.com/us/app/splat-2/id6745966578?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Ballz
      - Unlimited Talent Order
      - Unlimited Hero Order
      • 6 replies
    • Splat! 2 v1.10.0 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Splat! 2 By Sequel Games Inc.
      Bundle ID: com.sequel.nabba
      App Store Link: https://apps.apple.com/us/app/splat-2/id6745966578?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Ballz
      - Unlimited Talent Order
      - Unlimited Hero Order
      • 5 replies
    • Ninja Scroll Rush v0.2.12 [ +8 Cheats ] Currency Max
      Modded/Hacked App: Ninja Scroll Rush By Yso Corp
      Bundle ID: com.YsoCorp.NinjaScrollRush
      App Store Link: https://apps.apple.com/us/app/ninja-scroll-rush/id6755685134?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Keys +3
      - Unlimited Coins
      - Unlimited EXP / Faster LvL UP
      - HP MAX
      - ATK MAX
      - DEF MAX
      - Skill CD
      • 10 replies
    • Ninja Scroll Rush v0.2.12 [ +8 Jailed ] Currency Max
      Modded/Hacked App: Ninja Scroll Rush By Yso Corp
      Bundle ID: com.YsoCorp.NinjaScrollRush
      App Store Link: https://apps.apple.com/us/app/ninja-scroll-rush/id6755685134?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Keys +3
      - Unlimited Coins
      - Unlimited EXP / Faster LvL UP
      - HP MAX
      - ATK MAX
      - DEF MAX
      - Skill CD
      • 5 replies
    • Soccer Super Hero v0.32 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Soccer Super Hero By Omnithos Games HongKong Limited
      Bundle ID: com.soccer.football.score.ios
      App Store Link: https://apps.apple.com/ph/app/soccer-super-hero/id6754830171?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins
      - Market Value / Easy To Unlock All LvL & Rank
      • 8 replies
    • Soccer Super Hero v0.32 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Soccer Super Hero By Omnithos Games HongKong Limited
      Bundle ID: com.soccer.football.score.ios
      App Store Link: https://apps.apple.com/ph/app/soccer-super-hero/id6754830171?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins
      - Market Value / Easy To Unlock All LvL & Rank
      • 10 replies
    • Merge Cats: Catopia Puzzle v1.7.3 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Merge Cats: Catopia Puzzle By Sticky Hands Inc.
      Bundle ID: com.stickyhands.mergecats
      App Store Link: https://apps.apple.com/us/app/merge-cats-catopia-puzzle/id6746182545?uo=4
      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gold
      - Unlimited Energy
      • 7 replies
    • Merge Cats: Catopia Puzzle v1.7.3 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Merge Cats: Catopia Puzzle By Sticky Hands Inc.
      Bundle ID: com.stickyhands.mergecats
      App Store Link: https://apps.apple.com/us/app/merge-cats-catopia-puzzle/id6746182545?uo=4

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gold
      - Unlimited Energy
      • 6 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