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

    • Dawn of Ages: Medieval Games v2.0.4 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
      • 46 replies
    • Dawn of Ages: Medieval Games v2.0.4 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
        • Thanks
      • 26 replies
    • DC: Dark Legion™ v2.1.22 [+2 Cheats]
      Modded/Hacked App: DC: Dark Legion™ By FunPlus International AG
      Bundle ID: com.kingsgroup.dcdl
      App Store Link: https://apps.apple.com/us/app/dc-dark-legion/id6479020757?uo=4

       

      Important


      Doesn't work on PvP contents.

      There is a high chance of ban. Not responsible for any bans. Do not use on main account.

      1- Enable Activate Cheat

      2- Enable both multiplier

       

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      • 14 replies
    • DC: Dark Legion™  v2.1.22 [+2 Jailed Cheats]
      Modded/Hacked App: DC: Dark Legion™ By FunPlus International AG
      Bundle ID: com.kingsgroup.dcdl
      iTunes Store Link: https://apps.apple.com/us/app/dc-dark-legion/id6479020757?uo=4

      🤩 Hack Features
      - Damage Multiplier
      - Defense Multiplier
      • 117 replies
    • Lands of Jail v1.0.13 [+1 Jailed Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)

      • 11 replies
    • Lands of Jail v1.0.13 [+1 Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)
       
      • 19 replies
    • Hammer & Steel: idle business v0.12 [+5 Jailed Cheats]
      Modded/Hacked App: Hammer & Steel: idle business By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: hammer.and.steel.business.game
      App Store Link: https://apps.apple.com/us/app/hammer-steel-idle-business/id6742078527?uo=4



      🤩 Hack Features

      - Free IAP
      - Add Gold
      - Add Ore (Use it after tutorial)
      - No Fatique 
      - No Satiety
      • 0 replies
    • Hammer & Steel: idle business v0.12 [+5 Cheats]
      Modded/Hacked App: Hammer & Steel: idle business By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: hammer.and.steel.business.game
      App Store Link: https://apps.apple.com/us/app/hammer-steel-idle-business/id6742078527?uo=4



      🤩 Hack Features

      - Free IAP
      - Add Gold
      - Add Ore (Use it after tutorial)
      - No Fatique 
      - No Satiety
      • 0 replies
    • Waldur: Monster Hunt v1.8 [+2 Jailed Cheats]
      Modded/Hacked App: Waldur: Medieval Defense Game By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: waldur.tds.tactical.defense.war.strategy
      App Store Link: https://apps.apple.com/us/app/waldur-medieval-defense-game/id6739003797?uo=4

       

      🤩 Hack Features

      - Never Die
      - Add Currency


      • 3 replies
    • Waldur: Monster Hunt v1.8 [+2 Cheats]
      Modded/Hacked App: Waldur: Medieval Defense Game By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: waldur.tds.tactical.defense.war.strategy
      App Store Link: https://apps.apple.com/us/app/waldur-medieval-defense-game/id6739003797?uo=4

       

      🤩 Hack Features

      - Never Die
      - Add Currency

      • 3 replies
    • Go Go Werewolf! v1.3.4 [+3 Jailed Cheats]
      Modded/Hacked App: Go Go Werewolf! By Dejaime Antonio de Oliveira Neto
      Bundle ID: productions.artcode.ggw
      iTunes Store Link: https://apps.apple.com/us/app/go-go-werewolf/id6739493341?uo=4



      🤩 Hack Features

      - Never Die
      - Free Item Upgrade
      - Unlimited Coins (Enable and Finish Stage)
      • 10 replies
    • Go Go Werewolf! v1.3.4 [+3 Cheats]
      Modded/Hacked App: Go Go Werewolf! By Dejaime Antonio de Oliveira Neto
      Bundle ID: productions.artcode.ggw
      iTunes Store Link: https://apps.apple.com/us/app/go-go-werewolf/id6739493341?uo=4


      🤩 Hack Features

      - Never Die
      - Free Item Upgrade
      - Unlimited Coins (Enable and Finish Stage)
      • 5 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