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

    • Planet Miner: Idle Action Game v0.13.0 [ +18 Cheats ] Currency Max
      Modded/Hacked App: Planet Miner: Idle Action Game By Gryphon Games UG (haftungsbeschrankt)
      Bundle ID: com.gryphongames.planetminer
      App Store Link: https://apps.apple.com/us/app/planet-miner-idle-action-game/id6755299482?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins / Linked DMG
      - Unlimited Skill Token / Linked DMG & Prestige
      - Lucky Draw Cost 0
      :: Status ViP ::
      - Faster Remove Planet / Linked DMG
      - Unlimited Rocket Spawn
      - Unlimited DMG
      - Unlimited HP
      - Unlimited DEF
      - Unlimited Life steal
      - Unlimited DMG Reduction
      - Unlimited Criti DMG
      - Unlimited Criti Chance
      - Unlimited Elite Ship DMG
      - Unlimited Elite Ship HP
      - Unlimited Elite Ship Chance
      - Muliti Ship Chance

      Note:- Just One Upgrade Status
      • 11 replies
    • Planet Miner: Idle Action Game v0.13.0 [ +18 Jailed ] Currency Max
      Modded/Hacked App: Planet Miner: Idle Action Game By Gryphon Games UG (haftungsbeschrankt)
      Bundle ID: com.gryphongames.planetminer
      App Store Link: https://apps.apple.com/us/app/planet-miner-idle-action-game/id6755299482?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems
      - Unlimited Coins / Linked DMG
      - Unlimited Skill Token / Linked DMG & Prestige
      - Lucky Draw Cost 0
      :: Status ViP ::
      - Faster Remove Planet / Linked DMG
      - Unlimited Rocket Spawn
      - Unlimited DMG
      - Unlimited HP
      - Unlimited DEF
      - Unlimited Life steal
      - Unlimited DMG Reduction
      - Unlimited Criti DMG
      - Unlimited Criti Chance
      - Unlimited Elite Ship DMG
      - Unlimited Elite Ship HP
      - Unlimited Elite Ship Chance
      - Muliti Ship Chance

      Note:- Just One Upgrade Status
      • 13 replies
    • Tower And Swords v2.502 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Tower And Swords By Jisu Im
      Bundle ID: com.Jaems.ProjectCreationRPG
      iTunes Store Link: https://apps.apple.com/us/app/tower-and-swords/id1660251779?uo=4


      🤩 Hack Features

      - IAP Free

      - Gems

      - Coins

      - Never Die

      - DMG

      - Crit Hit
      • 32 replies
    • Tower And Swords v2.502 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Tower And Swords By Jisu Im
      Bundle ID: com.Jaems.ProjectCreationRPG
      iTunes Store Link: https://apps.apple.com/us/app/tower-and-swords/id1660251779?uo=4
       

      🤩 Hack Features

      - IAP Free

      - Gems

      - Coins

      - Never Die

      - DMG

      - Crit Hit
      • 24 replies
    • Forest Cabin: Survive v2.00.019 [ +4 Cheats ] Battle Coins
      Modded/Hacked App: Forest Cabin: Survive By HARVEST STAR INTERACTIVE LIMITED
      Bundle ID: com.qxgame.gmerge
      App Store Link: https://apps.apple.com/us/app/forest-cabin-survive/id6755801812?uo=4

      🤩 Hack Features

      - Speed 2X Active
      - Unlimited Battle Coin
      - Unlimited Battle Energy
      - ATK Speed
      • 9 replies
    • Forest Cabin: Survive v2.00.019 [ +4 Jailed ] Battle Coins
      Modded/Hacked App: Forest Cabin: Survive By HARVEST STAR INTERACTIVE LIMITED
      Bundle ID: com.qxgame.gmerge
      App Store Link: https://apps.apple.com/us/app/forest-cabin-survive/id6755801812?uo=4

      🤩 Hack Features

      - Speed 2X Active
      - Unlimited Battle Coin
      - Unlimited Battle Energy
      - ATK Speed
      • 5 replies
    • Michi Café: Cat Café v1.3.92 [ +1 Cheats ] Coin Unlimited
      Modded/Hacked App: Michi Café: Cat Café By Juan Bustos
      Bundle ID: com.Pintordenubes.Michi-Cafe
      App Store Link: https://apps.apple.com/vn/app/michi-caf%C3%A9-cat-caf%C3%A9/id6756552185?uo=4

      🤩 Hack Features

      - Unlimited Coins
      • 3 replies
    • Michi Café: Cat Café v1.3.92 [ +1 Jailed ] Coin Unlimited
      Modded/Hacked App: Michi Café: Cat Café By Juan Bustos
      Bundle ID: com.Pintordenubes.Michi-Cafe
      App Store Link: https://apps.apple.com/vn/app/michi-caf%C3%A9-cat-caf%C3%A9/id6756552185?uo=4
      🤩 Hack Features

      - Unlimited Coins
      • 2 replies
    • World of Artillery Tank Fire v2.0.26 [ +7 Cheats ] Easy Win
      Modded/Hacked App: World of Artillery: Tank Fire By CHEELY APPS TOO
      Bundle ID: com.battle.worldofartillery
      iTunes Store Link: https://apps.apple.com/us/app/world-of-artillery-tank-fire/id1660614297?uo=4
      Hack Features:
      - Anti Cheat
      - Premium
      - Damage
      - Ammo
      - No Reload
      - Energy
      - 1 Kill To Win
      • 38 replies
    • World of Artillery Tank Fire v2.0.26 [ +7 Jailed ] Easy Win
      Modded/Hacked App: World of Artillery: Tank Fire By CHEELY APPS TOO
      Bundle ID: com.battle.worldofartillery
      App Store Link: https://apps.apple.com/us/app/world-of-artillery-tank-fire/id1660614297?uo=4

      🤩 Hack Features

      - Anti Cheat
      - Premium
      - Damage
      - Ammo
      - No Reload
      - Energy
      - 1 Kill To Win
      • 3 replies
    • UnderGuild: Offense v1.4.8 [ +3 Cheats ] Currency Max
      Modded/Hacked App: UnderGuild: Offense By SeungHo Chung
      Bundle ID: com.FreeDust.UnderDarkOffense
      App Store Link: https://apps.apple.com/us/app/underguild-offense/id6752882356?uo=4

      🤩 Hack Features

      - Unlimited Diamond
      - Unlimited Gold
      - Max Trop
      • 47 replies
    • UnderGuild: Offense v1.4.8 [ +3 Jailed ] Currency Max
      Modded/Hacked App: UnderGuild: Offense By SeungHo Chung
      Bundle ID: com.FreeDust.UnderDarkOffense
      App Store Link: https://apps.apple.com/us/app/underguild-offense/id6752882356?uo=4

      🤩 Hack Features

      - Unlimited Diamond
      - Unlimited Gold
      - Max Trop
      • 37 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