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

    • Merge Magic Academy v1.7.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4


      🤩 Hack Features

      - Gems
      - Energy
      - Stars
        • Like
      • 1 reply
    • Merge Magic Academy v1.7.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4
       

      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 1 reply
    • Loot Heroes v1.8.0 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 118 replies
    • Loot Heroes v1.8.0 +10 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 270 replies
    • Fisherman 2 v1.03.11 [+6 Jailed Cheats]
      Modded/Hacked App: Fisherman 2 By Little Star Games Oy
      Bundle ID: com.littlestargames.fm2
      App Store Link: https://apps.apple.com/us/app/fisherman-2/id6446778412?uo=4



      🤩 Hack Features

      - Add Coins (Enable inside main menu and enter game)
      - Add Diamonds (Enable inside main menu and enter game)
      - Catch 50 Fish (Enable inside game)
      - Complete All Task (Enable inside main menu)
      - Update All Task (Enable inside main menu)
      - End Current Round (Enable inside game)
        • Like
      • 3 replies
    • Fisherman 2 v1.03.11 [+6 Cheats]
      Modded/Hacked App: Fisherman 2 By Little Star Games Oy
      Bundle ID: com.littlestargames.fm2
      App Store Link: https://apps.apple.com/us/app/fisherman-2/id6446778412?uo=4



      🤩 Hack Features

      - Add Coins (Enable inside main menu and enter game)
      - Add Diamonds (Enable inside main menu and enter game)
      - Catch 50 Fish (Enable inside game)
      - Complete All Task (Enable inside main menu)
      - Update All Task (Enable inside main menu)
      - End Current Round (Enable inside game)
        • Winner
        • Like
      • 0 replies
    • Tasty Travels: Merge Game v33.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
        • Agree
        • Winner
        • Like
      • 14 replies
    • Tasty Travels: Merge Game v33.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
        • Thanks
        • Winner
        • Like
      • 14 replies
    • Endless Wander - Roguelike RPG v2.4.28 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
        • Agree
        • Thanks
        • Winner
        • Like
      • 16 replies
    • Endless Wander - Roguelike RPG v2.4.28 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
        • Winner
        • Like
      • 13 replies
    • Zombies Clicker v20.1.8 [+4 Jailed Cheats]
      Modded/Hacked App: Zombies Clicker By EDENAP d.o.o.
      Bundle ID: com.edenap.a3
      App Store Link: https://apps.apple.com/us/app/zombies-clicker/id6746955704?uo=4


      🤩 Hack Features

      - Add Currency
      - Add Prestige
      - Never Die
      - One Hit Kill
        • Haha
        • Like
      • 1 reply
    • Zombies Clicker v20.1.8 [+4 Cheats]
      Modded/Hacked App: Zombies Clicker By EDENAP d.o.o.
      Bundle ID: com.edenap.a3
      App Store Link: https://apps.apple.com/us/app/zombies-clicker/id6746955704?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Prestige
      - Never Die
      - One Hit Kill
      • 3 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