Jump to content

7 posts in this topic

Recommended Posts

Posted
So this is the pack that has a template for a Tweak.

If you want the template, scroll to the bottom

 

Remember to always start off with %hook and then add the class name

after it. For example:

%hook Classname

 

 

Now, you may know of functions 

 

Example: -(int)gold

 

The easiest way to find functions is by using Flex. Much easier than

having to dump all of the headers.

 

 

So, in a Tweak, you would write:



%hook Classname


-(int)gold


 

 

Now, here's what to write for the function:

 



-(int)gold {
return XXXXX;
}


 

All of the XXXs means that you have to replace the X's with a number.

Any number, like 999999.

And to end the function, just write this at the bottom of the function:

%end

 

So all in all, you would have this:



%hook Classname


-(int)gold {
return XXXXX;
}


%end


 

 

Now make sure that you end the function only when the functions

that come from the same class are finished.

 

Here is an example.

Say you found -(int)gold and -(BOOL)hasGold in the same class

If you want to use them both, make sure you use them underneath the

same class, don't end them in separate classes. Otherwise it won't

work.

 

So, you would have to do this:



%hook Classname


-(int)gold {
return XXXXX;
}


-(BOOL)hasGold {
return TRUE;
}


%end


 

 

Let's skim through the functions very quickly:

 

-(int) Means that the function is a number

-(double) Means that the function is a number

-(long) or -(long long) Means that the function is a number

-(float) Means that the function is a number, BUT it is a decimal

number. A FLOAT typically goes like this:

-(float)gold {

return XXXXX.Xf;

}

After writing down the number, you place a decimal point and write

down one number. Like 0. Then add the letter f to the front.

-(BOOL) Means that the function is either TRUE or FALSE

 

Here are the tricky ones:

-(id) Now these ones are tricky. You'd better check a Mobile Substrate

Tutorial

 

-(void) Read the one about -(id)

 

 

Very nice!

 

Now here is the template:

 



%hook Classname


-(FunctionHeader)Functionname {
return XXXXX;
}


%end


 

(If you have more than one function, just copy and paste the above)

That's it for today! :D

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

    • Matching Story v1.39.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
        • Agree
        • Haha
        • Winner
        • Like
      • 20 replies
    • Matching Story v1.39.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
        • Haha
        • Like
      • 29 replies
    • Eliminate Undead v1.0 [+2 Cheats]
      Modded/Hacked App: Eliminate Undead By 学涛 曹
      Bundle ID: com.raidsquad.dianadian
      App Store Link: https://apps.apple.com/us/app/eliminate-undead/id6739250912?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources
       
      • 0 replies
    • Eliminate Undead v1.0 [+2 Jailed Cheats]
      Modded/Hacked App: Eliminate Undead By 学涛 曹
      Bundle ID: com.raidsquad.dianadian
      App Store Link: https://apps.apple.com/us/app/eliminate-undead/id6739250912?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources
        • Like
      • 1 reply
    • Loot Lancer v1.0.1 [+3 Cheats]
      Modded/Hacked App: Loot Lancer By 学涛 曹
      Bundle ID: com.lootlancer.dianadian
      App Store Link: https://apps.apple.com/us/app/loot-lancer/id6743701566?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Skill Point
      - Unlimited Resources
      • 0 replies
    • Loot Lancer v1.0.1 [+3 Jailed Cheats]
      Modded/Hacked App: Loot Lancer By 学涛 曹
      Bundle ID: com.lootlancer.dianadian
      App Store Link: https://apps.apple.com/us/app/loot-lancer/id6743701566?uo=4


       

      🤩 Hack Features

      - Never Die
      - Unlimited Skill Point
      - Unlimited Resources
      • 0 replies
    • Z Survivor: Backpack Shooter v0.61 [+2 Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
        • Thanks
        • Winner
        • Like
      • 10 replies
    • Z Survivor: Backpack Shooter v0.61 [+2 Jailed Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
        • Informative
        • Agree
        • Winner
        • Like
      • 9 replies
    • Omega Royale - Tower Defense v1.5.0 [+2 Jailed Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4

       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Winner
        • Like
      • 36 replies
    • Omega Royale - Tower Defense v1.5.0 [+2 Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4


       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 36 replies
    • Townfall: Zombie Tower Defense v20.1.1 [+4 Cheats]
      Modded/Hacked App: Townfall: Zombie Tower Defense By Sugarscone
      Bundle ID: com.nmg.townfall.ios
      App Store Link: https://apps.apple.com/us/app/townfall-zombie-tower-defense/id6476259669?uo=4



      🤩 Hack Features

      - No Reload
      - Add Gold (Enable inside battle and finish stage)
      - Add Wood (Enable inside battle)
      - Skip Wave (Enable inside wave)
        • Agree
      • 6 replies
    • Townfall: Zombie Tower Defense v20.1.1 [+4 Jailed Cheats]
      Modded/Hacked App: Townfall: Zombie Tower Defense By Sugarscone
      Bundle ID: com.nmg.townfall.ios
      App Store Link: https://apps.apple.com/us/app/townfall-zombie-tower-defense/id6476259669?uo=4



      🤩 Hack Features

      - No Reload
      - Add Gold (Enable inside battle and finish stage)
      - Add Wood (Enable inside battle)
      - Skip Wave (Enable inside wave)
        • Winner
        • Like
      • 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