Jump to content

Hook (Coding)


Go to solution Solved by TheChief,

14 posts in this topic

Recommended Posts

Posted

I'm converting a Flex patch to Tweak.xm and encounter some of these while coding.

 

What is the correct format for this if you convert it to Tweak.xm:

 

-(void)setCurrentCredits:(long long) ???

 

***This what I make***

 

%hook CCUserCounts

 

-(void)setCurrentCredits:(int) {

return 99999;

}

%end

 

Please correct me

----------------------------

Also to (bool)

 

-(bool)userHasPurchaseProUpgrade ???

 

***This what I make***

 

%hook CCChatViewControllerDataSource

 

-(bool)userHasPurchaseProUpgrade {

return TRUE;

}

%end

 

Please correct me

 

:/

------------------------

Posted

The bool one is correct.


-(void)setCurrentCredits:(long long)arg {

arg = 1234;

%orig(arg);

}

 

That should be good. I'm on phone so double check it if you can :3

  • Solution
Posted

%hook CCUserCounts

-(void)setCurrentCredits:(int)fp8 {

%orig(999999);

}

%end

The bool one is correct.


-(void)setCurrentCredits:(long long)arg {

arg = 1234;

%orig(arg);

}

That should be good. I'm on phone so double check it if you can :3

combine these two :3 and you will get it . An alternative way of the one done by DragonSlayers is

-(void)setCurrentCredits:(int)fp8 {
fp8=99999999;
%orig(fp8);
}
Posted

Thanks guys! Works fine :)

@@DiDA Tweak.xm:39 error: %end does not make sense inside a block :/

Check line: 39. Probably have two %end

Posted

I somehow make the deb succesfully.

 

Get the class targets base on the Flex.

 

Follow the formats.

 

Can install successfully (the .deb). But when I open the app that I hack, the hack won't show. (I mean the effect).

 

Hows this happen?

Posted

I somehow make the deb succesfully.

Get the class targets base on the Flex.

Follow the formats.

Can install successfully (the .deb). But when I open the app that I hack, the hack won't show. (I mean the effect).

Hows this happen?

Wrong bundle id? :)

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

    • Dungeon Hunter 6 v1.3.8 +1 Jailed Cheat [ Dumb Enemies ]
      Modded/Hacked App: Dungeon Hunter 6 By Goat Co. Ltd
      Bundle ID: com.goatgames.dhs.gb.ios
      App Store Link: https://apps.apple.com/us/app/dungeon-hunter-6/id1664335636?uo=4

       
       

      🤩 Hack Features

      - Dumb Enemies
      • 43 replies
    • Dungeon Hunter 6 v1.3.8 +1 Cheat [ Dumb Enemies ]
      Modded/Hacked App: Dungeon Hunter 6 By Goat Co. Ltd
      Bundle ID: com.goatgames.dhs.gb.ios
      App Store Link: https://apps.apple.com/us/app/dungeon-hunter-6/id1664335636?uo=4

       
       

      🤩 Hack Features

      - Dumb Enemies
      • 253 replies
    • All in Hole: Black Hole Games v4.3.2 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: All in Hole: Black Hole Games By HOMA GAMES
      Bundle ID: com.homagames.studio.allinhole
      App Store Link: https://apps.apple.com/us/app/all-in-hole-black-hole-games/id6503284107?uo=4

       
       

      🤩 Hack Features

      - Unlimited Coins -> Earn some.
      - Unlimited Lives
      • 14 replies
    • All in Hole: Black Hole Games v4.3.2 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: All in Hole: Black Hole Games By HOMA GAMES
      Bundle ID: com.homagames.studio.allinhole
      App Store Link: https://apps.apple.com/us/app/all-in-hole-black-hole-games/id6503284107?uo=4

       


      🤩 Hack Features

      - Unlimited Coins -> Earn some.
      - Unlimited Lives
        • Haha
      • 7 replies
    • Backpack Brawl v1.1.1 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Backpack Brawl By 1986 GAMES SIA
      Bundle ID: com.rapidfiregames.backpackbrawl
      iTunes Store Link: https://apps.apple.com/us/app/backpack-brawl/id6479175676?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.


      Jailbreak required hack(s): [Mod Menu Hack] Backpack Brawl v0.14.0 +1++ Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 72 replies
    • Backpack Brawl v1.1.1 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Backpack Brawl By 1986 GAMES SIA
      Bundle ID: com.rapidfiregames.backpackbrawl
      iTunes Store Link: https://apps.apple.com/us/app/backpack-brawl/id6479175676?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Backpack Brawl v0.14.0 +1++ Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 54 replies
    • Amikin Village: Magic Sim RPG v1.4.0 +5 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Amikin Village: Magic Sim RPG By HELIO LTD
      Bundle ID: com.heliogames.amikin.survival
      App Store Link: https://apps.apple.com/us/app/amikin-village-magic-sim-rpg/id6478102304?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      - Unlimited Weapon Durability
      - Split Hack
        • Like
      • 356 replies
    • Amikin Village: Magic Sim RPG v1.4.0 +5 Cheats [ Damage + More ]
      Modded/Hacked App: Amikin Village: Magic Sim RPG By HELIO LTD
      Bundle ID: com.heliogames.amikin.survival
      App Store Link: https://apps.apple.com/us/app/amikin-village-magic-sim-rpg/id6478102304?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      - Unlimited Weapon Durability
      - Split Hack
      • 123 replies
    • MY LITTLE PONY: MAGIC PRINCESS v10.6.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MY LITTLE PONY: MAGIC PRINCESS By Gameloft
      Bundle ID: com.gameloft.mylittlepony
      App Store Link: https://apps.apple.com/us/app/my-little-pony-magic-princess/id533173905?uo=4

       


      🤩 Hack Features

      - Freeze Coins
      - Freeze Gems
      - Freeze Hearts
      • 368 replies
    • MY LITTLE PONY: MAGIC PRINCESS v10.6.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MY LITTLE PONY: MAGIC PRINCESS By Gameloft
      Bundle ID: com.gameloft.mylittlepony
      App Store Link: https://apps.apple.com/us/app/my-little-pony-magic-princess/id533173905?uo=4

       
       

      🤩 Hack Features

      - Freeze Coins
      - Freeze Gems
      - Freeze Hearts
        • Agree
      • 134 replies
    • Loot Heroes v1.14.3 +28 Jailed Cheats [ Unlimited Everything ]
      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 Everything -> Currencies, Hero Cards, Hero Skill Points will all freeze.
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - No Attack Delay
      - All Critical Hits
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - Nickname Edit Unlocked
      - No Nickname Filter
      - No Guild Name Filter
      - No Dash Cooldown
      - Unlimited Boosters
      - Auto Play
      - No Camp Upgrade Cost
      - Unlimited Bolts
      - No Ads

      VIP
      - Unlimited Everything -> Currencies, Hero Cards, Hero Skill Points will all increase instead of decrease.
      - Currency Modifier -> Earn or spend some.
      - Unlimited Hero Cards -> Earn some.
      - Unlimited Hero Skill Points -> Earn some.
      - Trophy Modifier -> Earn or lose some to stick to the leaderboard.
      - Guild Score Modifier -> Earn some.
      - Unlimited Event Score -> Earn some.
      - Max Hero Mastery Level
      - Auto Win
      - Battle Pass Unlocked
      - VIP Enabled
      • 208 replies
    • Mob Control v2.95.1 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Jailbreak required hack(s): [Mod Menu Hack] Mob Control v2.78.0 +7 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 261 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