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

    • Cooking Chaos Cooking Games v2.4.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Cooking Chaos Cooking Games By Flowmotion Entertainment: Top Free Fun Addictive Cool Games Inc.
      Bundle ID: com.cooking.chaos.restaurant.games
      App Store Link: https://apps.apple.com/us/app/cooking-chaos-cooking-games/id6739048278?uo=4

       
      🤩 Hack Features

      - Gems [ Time Mod Match - Match Time Over Then Show ] Check ScreenShoot
      - Coins [ Tip Reward ] Disable After Get
      - Life
      - Booster + Unlock
      • 9 replies
    • Cooking Chaos Cooking Games v2.4.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Cooking Chaos Cooking Games By Flowmotion Entertainment: Top Free Fun Addictive Cool Games Inc.
      Bundle ID: com.cooking.chaos.restaurant.games
      App Store Link: https://apps.apple.com/us/app/cooking-chaos-cooking-games/id6739048278?uo=4


      🤩 Hack Features

      - Gems [ Time Mod Match - Match Time Over Then Show ] Check ScreenShoot
      - Coins [ Tip Reward ] Disable After Get
      - Life
      - Booster + Unlock 
      • 10 replies
    • Idle Nuns Tycoon v1.1.1 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Idle Nuns Tycoon By SAMZU LIMITED
      Bundle ID: com.idle.nums.empire.tycoon
      App Store Link: https://apps.apple.com/us/app/idle-nuns-tycoon/id6747325865?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]
      - Gold [ Disable After Get ]
      - Money [ Disable After Get ]
      - Silver [ Disable After Get ] Don't Use When Earn [ LVL & EXP ] Because Linked LvL & EXP Not Work
      • 9 replies
    • Idle Nuns Tycoon v1.1.1 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Idle Nuns Tycoon By SAMZU LIMITED
      Bundle ID: com.idle.nums.empire.tycoon
      App Store Link: https://apps.apple.com/us/app/idle-nuns-tycoon/id6747325865?uo=4

       
      🤩 Hack Features

      - ADS NO [ Rewards Free ]
      - Gold [ Disable After Get ]
      - Money [ Disable After Get ]
      - Silver [ Disable After Get ] Don't Use When Earn [ LVL & EXP ] Because Linked LvL & EXP Not Work
      • 14 replies
    • Heroes vs. Hordes: Survivor v7.2.3 [ +11 Cheats ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       
      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO

       
      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 112 replies
    • Heroes vs. Hordes: Survivor v7.2.3 [ +11 Jailed ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       

       

      Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 145 replies
    • Undead Slayer: Offline Action v3.45.15 [ +14 Cheats ] Currency Max
      Modded/Hacked App: Undead Slayer: Horde Survivor By Enigma Publishing Limited
      Bundle ID: com.undeadslayer.athree.epl.as
      App Store Link: https://apps.apple.com/ph/app/undead-slayer-horde-survivor/id6746744005?uo=4


      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems

      - Soul Coins

      - Abyss Key

      - Rune Key

      - Gold Key

      - Red Dust

      - Blue Dust

      - Master Coin

      - Daily Star

      - HP [ Weapon Upgrade Then Equip ]

      - ATK [ Weapon Upgrade Then Equip ]
      • 23 replies
    • Undead Slayer: Offline Action v3.45.15 [ +14 Jailed ] Currency Max
      Modded/Hacked App: Undead Slayer: Horde Survivor By Enigma Publishing Limited
      Bundle ID: com.undeadslayer.athree.epl.as
      App Store Link: https://apps.apple.com/ph/app/undead-slayer-horde-survivor/id6746744005?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems

      - Soul Coins

      - Abyss Key

      - Rune Key

      - Gold Key

      - Red Dust

      - Blue Dust

      - Master Coin

      - Daily Star

      - HP [ Weapon Upgrade Then Equip ]

      - ATK [ Weapon Upgrade Then Equip ]
      • 32 replies
    • Zombie Roguebie: Shooting Game v1.4.0 Jailed Cheats +9
      Modded/Hacked App: Zombie Roguebie: Shooting Game By Metajoy Limited
      Bundle ID: com.boom.zombie.survival
      App Store Link: https://apps.apple.com/us/app/zombie-roguebie-shooting-game/id6752294198?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Infinite Ammo
      - No Reload
      - High Pickup Range
      - Premium

      ViP
      - God Mode
      - High Damage
      - High Fire Rate
      - Freeze Currencies
      - Unlock All Guns

       

      Jailbroken Hack: https://iosgods.com/topic/203205-zombie-roguebie-shooting-game-cheats-v122-9/


      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/203204-zombie-roguebie-shooting-game-v122-jailed-cheats-9/
      • 14 replies
    • Falltopia: Epic Space Idle RPG v1.0.203 [ +12 Cheats ] Currency
      Modded/Hacked App: Falltopia: Epic Space Idle RPG By Pusilung HK Limited
      Bundle ID: com.threehp013.idle.plane.shooting.space.force.game
      App Store Link: https://apps.apple.com/ph/app/falltopia-epic-space-idle-rpg/id6748329424?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Speed Boost Active
      - Currency / NO Need
      - Resources / NO Need
      - Defensec Pass
      - Upgrade Pass
      - Season Pass
      - Battle Pass
      - Blessings Active
      - HP / Equip & Unequip
      - ATK / Equip & Unequip
      - Def / Equip & Unequip
      • 22 replies
    • Falltopia: Epic Space Idle RPG v1.0.203 [ +12 Jailed ] Currency
      Modded/Hacked App: Falltopia: Epic Space Idle RPG By Pusilung HK Limited
      Bundle ID: com.threehp013.idle.plane.shooting.space.force.game
      App Store Link: https://apps.apple.com/ph/app/falltopia-epic-space-idle-rpg/id6748329424?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Speed Boost Active
      - Currency / NO Need
      - Resources / NO Need
      - Defensec Pass
      - Upgrade Pass
      - Season Pass
      - Battle Pass
      - Blessings Active
      - HP / Equip & Unequip
      - ATK / Equip & Unequip
      - Def / Equip & Unequip
      • 17 replies
    • Pandao Wars: Fight for Freedom v0.7.0 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Pandao Wars: Fight for Freedom By JBX GAMES DOO
      Bundle ID: com.jbxgames.island.wars.fight.defender
      App Store Link: https://apps.apple.com/ca/app/pandao-wars-fight-for-freedom/id6479307717?uo=4


      🤩 Hack Features

      - Crystal
      - Coins

      • 14 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