Jump to content

Go to solution Solved by Diversityy,

18 posts in this topic

Recommended Posts

Posted

How to hook the method with void and bool?I write like this, but I don't know why can't work.

#include <substrate.h>

 

%hook UserProfessionObj

-(void) setRed:(BOOL)a

{

return %orig(a);

a = TRUE;

}

%end

 

<dict>

<key>methodObjc</key>

<dict>

<key>className</key>

<string>UserProfessionObj</string>

<key>displayName</key>

<string>-(void) setRed:(BOOL)</string>

<key>prefix</key>

<string>-</string>

<key>selector</key>

<string>setRed:</string>

<key>typeEncoding</key>

<string>v12@0:4c8</string>

</dict>

<key>name</key>

<string>Unit for -(void) setRed:(BOOL)</string>

<key>overrides</key>

<array>

<dict>

<key>argument</key>

<integer>1</integer>

<key>type</key>

<dict>

<key>subtype</key>

<integer>0</integer>

<key>type</key>

<integer>5</integer>

</dict>

<key>value</key>

<dict>

<key>type</key>

<integer>5</integer>

<key>value</key>

<true/>

</dict>

</dict>

</array>

this is in flex method,please help me!!

Posted (edited)

what is all these?

 

 

<dict>
<key>methodObjc</key>
<dict>
<key>className</key>
<string>UserProfessionObj</string>
<key>displayName</key>
<string>-(void) setRed:(BOOL)</string>
<key>prefix</key>
<string>-</string>
<key>selector</key>
<string>setRed:</string>
<key>typeEncoding</key>
<string>v12@0:4c8</string>
</dict>
<key>name</key>
<string>Unit for -(void) setRed:(BOOL)</string>
<key>overrides</key>
<array>
<dict>
<key>argument</key>
<integer>1</integer>
<key>type</key>
<dict>
<key>subtype</key>
<integer>0</integer>
<key>type</key>
<integer>5</integer>
</dict>
<key>value</key>
<dict>
<key>type</key>
<integer>5</integer>
<key>value</key>
<true/>
</dict>
</dict>
</array>

did you follow a tutorial?

Updated by ITz_kser
Posted (edited)

what is all these?

 

 

<dict>

<key>methodObjc</key>

<dict>

<key>className</key>

<string>UserProfessionObj</string>

<key>displayName</key>

<string>-(void) setRed:(BOOL)</string>

<key>prefix</key>

<string>-</string>

<key>selector</key>

<string>setRed:</string>

<key>typeEncoding</key>

<string>v12@0:4c8</string>

</dict>

<key>name</key>

<string>Unit for -(void) setRed:(BOOL)</string>

<key>overrides</key>

<array>

<dict>

<key>argument</key>

<integer>1</integer>

<key>type</key>

<dict>

<key>subtype</key>

<integer>0</integer>

<key>type</key>

<integer>5</integer>

</dict>

<key>value</key>

<dict>

<key>type</key>

<integer>5</integer>

<key>value</key>

<true/>

</dict>

</dict>

</array>

did you follow a tutorial?

 

 

 

I want to use flex to build function,then writing a tweak,but I don't actually know the function such as -(void) setRed:(BOOL).Furthermore how to make bool active?@_@

Updated by QQRK
Posted

The <dict>

<key>

<string>

Are for preference bundle

And they shouldn't be in tweak.xm

idk if this will make a different but try to change BOOL to bool

Posted

Okay, so..

%hook UserProfessionObj
-(void) setRed:(BOOL)a
{
%orig(TRUE);
}
%end
Try that. Like what ITz_kser said, you do not include those key, string, dict on your tweak.xm.
Posted

here come another question, how to write a return?  should i change id to null and int to 1 ? (see the picture below the link)

 

http://www.jnbhgbox.org/forum.php?mod=attachment&aid=MjYxNHxmZTA5ZGRhY3wxNDQ4MTY5MTMwfDE5fDUyOQ%3D%3D&nothumb=yes

%hook MGTwitterHTTPURLConnection
-(id)initWithRequest:(id)delegate:(id)requestType:(int)responseTime:(int)
{
return;
}
%end
I believe it's like that. What app are you trying to do this on?
Posted
%hook MGTwitterHTTPURLConnection
-(id)initWithRequest:(id)delegate:(id)requestType:(int)responseTime:(int)
{
return;
}
%end
I believe it's like that. What app are you trying to do this on?

 

like what i think you need to give every function from these a return or the functions that's you want will not work that's what i test

but didn't test the id :turned:

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

    • Warrior Master! v1.31 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Warrior Master! By Shanghai Dreamstone Network Technology Co., Ltd.
      Bundle ID: com.dreamstone.warriormaster
      App Store Link: https://apps.apple.com/us/app/warrior-master/id6753886900?uo=4
      🤩 Hack Features

      - Unlimited Gems / ViP
      - Freeze Gems
      - Freeze Coins
      - Faster Food ADD / ViP 
      - Food ADD
      - Base Upgrade Cost 0
      - Base HP Unlimited
      • 1 reply
    • Warrior Master! v1.31 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Warrior Master! By Shanghai Dreamstone Network Technology Co., Ltd.
      Bundle ID: com.dreamstone.warriormaster
      App Store Link: https://apps.apple.com/us/app/warrior-master/id6753886900?uo=4

      🤩 Hack Features

      - Unlimited Gems / ViP
      - Freeze Gems
      - Freeze Coins
      - Faster Food ADD / ViP 
      - Food ADD
      - Base Upgrade Cost 0
      - Base HP Unlimited
      • 1 reply
    • Soccer Super Hero v0.37.2 [ +3 APK MOD ] Currency Max
      Mod APK Game Name: Soccer Super Hero
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.soccer.football.score&hl=en

       

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Cash
      - Market Value / Easy To Unlock All LvL & Rank

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • Soccer Super Hero v0.36.3 [ +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
      • 10 replies
    • Soccer Super Hero v0.36.3 [ +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
      • 13 replies
    • Super Heavy Iron Tank v1.1.4 [ +7 APK MOD ] Auto Win
      Mod APK Game Name: Super Heavy Iron Tank
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=net.gameduo.vg&hl=en

       

      🤩 Hack Features

      - ADS NO / Rewards Free
      - DMG
      - ATK Speed
      ::::: ViP :::::
      - Auto Win
      - Energy Unlimited
      - Auto Skip Wave
      - Quick Supply

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 1 reply
    • Matching Story v1.67.01 [ +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
      • 109 replies
    • Matching Story v1.67.01 [ +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
      • 107 replies
    • Sport Star - Team Manager Idle v0.10.0 [ +4 APK MOD ] Currency Max
      Mod APK Game Name: Sport Star - Team Manager Idle
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.coolcatsgames.sportstaridle&hl=en

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Currency Freeze
      - Gems Max
      - Cash Increaser
      • 0 replies
    • Sport Star - Team Manager Idle v0.10.0 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Sport Star - Team Manager Idle By Gryphon Games UG (haftungsbeschrankt)
      Bundle ID: com.coolcatsgames.sportstaridle
      App Store Link: https://apps.apple.com/us/app/sport-star-team-manager-idle/id6761053085?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Enough Currency
      - Currency Freeze
      - Gems Max
      - Cash Increaser
      • 0 replies
    • Sport Star - Team Manager Idle v0.10.0 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Sport Star - Team Manager Idle By Gryphon Games UG (haftungsbeschrankt)
      Bundle ID: com.coolcatsgames.sportstaridle
      App Store Link: https://apps.apple.com/us/app/sport-star-team-manager-idle/id6761053085?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Enough Currency
      - Currency Freeze
      - Gems Max
      - Cash Increaser
      • 0 replies
    • God Rivals: RPG Roguelike +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: God Rivals: RPG Roguelike By Gamee Joint Stock Company
      Bundle ID: com.gamee.godslayer.rpg.rougelike
      App Store Link: https://apps.apple.com/us/app/god-rivals-rpg-roguelike/id6747413590?uo=4

       

      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Increased Attack Speed
      - No Skill Cooldown
      - Auto Win
      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlock Premium Pass
      - Unlock Royal Pass
      • 4 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