Jump to content

7 posts in this topic

Recommended Posts

Posted

This topic issues the Flex 2 patch conversation for frequently used methods. You are expected to have some basic knowledge of the coding languages Objective-C or Swift or at least have a decent understanding of code and logical thinking. What I mostly see when people in help are trying to convert a patch to a tweak is a simple lack of logical sequence as they progress through methods with only one minor change in the code itself and they get stuck at this point. I hereby want to assist you in converting most frequently used methods and functions alike as those can be applied on every method of its kind.
 
 
 
First some "typedefs" Flex 2 uses:
 
target class - header
units - methods
override type - parameter
override value - return value





void
 
The most commonly used function parameter you will find. void simply calls a method to be executed. There are multiple varities of it and I will be going into detail below. 

void:

- (void)playerCanDie

Here you can see a void function. What is does is, for instance when the players hits an obstacle it calls the method to let the player die. If we make the void execute nothing, our player cannot die.


Flex 2:

Target Method
- (void)playerCanDie

Return Value (void)
pass-through 

Fom my understanding Flex 2 uses pass-through to compansate empty spaces or serves as replacement for NULL/nil.

 

Converted to Objective-C:

- (void)playerCanDie {

} 

As you can see there is nothing between the code brackets to be returned or anything. pass-through really pisses me off since it causes such a fuss when converting.



void with arguments:

- (void)setPlayerMoney:(int)withGold:(int)

It does not matter how many arguments a method has. Keep calm and think logically so you can deal with any amount of arguments coming at you (even when not used in conjunction with void methods).

 

Flex 2

Target Method
- (void)setPlayerMoney:(int)withGold:(int)

Return Value (void)
pass-through

Argument #1 (int)
999999

Argument #2 (int)
999999

Converted to Objective-C:

- (void)setPlayerMoney:(int)fp8 withGold:(int)fp12 {
fp8 = 99999;
fp12 = 999999;
%orig;
}

fp8 is the unique identifier of the int argument allocated to the money. It can literally be anything you want as long you only use it once within a method. %orig calls the original method since we do not want to touch the void here.

- (void)setPlayerMoney:(int)sexyass withGold:(int)drinkyourmilk {
sexyass = 99999;
drinkyourmilk = 999999;
%orig;
}





int
 
integer also known as int are numeric parameters and give a fixed value when the method is called.

int:

- (int)money

Here you can see an int function. It holds your current amount of money in the game. If we set the value really high, we have more cash than we ever need. $_$


Flex 2:

Target Method
- (int)money

Return Value (int)
999999

 
Converted to Objective-C:

- (int)money {
return 999999;
}

double are also typedefs of int.

 

 

int with arguments:
see void with arguments






bool

booleans also known as bool are conditional parameters and determine whether something is true or false

bool:

- (bool)isLevelUnlocked

Here you can see a bool function. It holds the value of the level being unlocked or not (value as in 1=true; 0=false). If we set it to true, the level is unlocked for us.


Flex 2:

Target Method (BOOL)
- (bool)isLevelUnlocked

Return Value (BOOL)
TRUE

Converted to Objective-C:

- (bool)isLevelUnlocked {
return true;
}

There is no actual difference between true/false, TRUE/FALSE, Yes/No it's personal preference.

 

 

 

bool with arguments:

see void with arguments

 

 

 

 

 

 

float

 

float are numeric parameters and give a point value when the method is called.

 

float:

- (float)velocity

Here you can see a float function. For instance it determines how fast our car drives. If we set it to a high value, we will be unbeatable in races.

 

 

Flex 2:

Target Method (float)
- (float)velocity

Return Value (float)
500.00

Converted to Objective-C:

- (float)velocity {
return 500.00f
}

long and long long are also typedefs of float.

 

 

 

float with arguments:

see void with arguments

Posted

When you don't understand a single thing.

Maybe pictures would have been better or a video but I never used Flex

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

    • From Pawn to King - Idle RPG v6.1.9 [ +18 Jailed ] Currency Max
      Modded/Hacked App: From Pawn to King - Idle RPG By Toward Inc.
      Bundle ID: com.towardmobile.fromsoldiertoking
      iTunes Store Link: https://apps.apple.com/us/app/from-pawn-to-king-idle-rpg/id1645843355?uo=4


      Hack Features:

      - ADS NO [ Reward Free ]

      - Speed UP 2x

      - Gems 

      - Gold 

      - Smelt Stone 

      - Mileage Point 

      - Normal Raid Ticket 

      - Quest Completed [ Earn 1 Point ]

      - Heroes Ticket +6 

      - Heroes LvL Up Medal 

      - Heroes LvL Up Magic Stone 

      - Stage Pass Unlocked [ Premium ]

      - Mine LvL Up [ Gems Reward Unlimited ]

      - ATK Speed 

      - Hero Status

      - Enemy Status 

      - Boss Status 

      - Boss Time Unlimited
        • Like
      • 21 replies
    • From Pawn to King - Idle RPG v6.1.9 [ +18 Cheats ] Currency Max
      Modded/Hacked App: From Pawn to King - Idle RPG By Toward Inc.
      Bundle ID: com.towardmobile.fromsoldiertoking
      iTunes Store Link: https://apps.apple.com/us/app/from-pawn-to-king-idle-rpg/id1645843355?uo=4


      Hack Features:
      - ADS NO [ Reward Free ]

      - Speed UP 2x

      - Gems 

      - Gold 

      - Smelt Stone 

      - Mileage Point 

      - Normal Raid Ticket 

      - Quest Completed [ Earn 1 Point ]

      - Heroes Ticket +6 

      - Heroes LvL Up Medal 

      - Heroes LvL Up Magic Stone 

      - Stage Pass Unlocked [ Premium ]

      - Mine LvL Up [ Gems Reward Unlimited ]

      - ATK Speed 

      - Hero Status

      - Enemy Status 

      - Boss Status 

      - Boss Time Unlimited

        • Thanks
        • Winner
        • Like
      • 42 replies
    • Squad Alpha - Action Shooting v1.7.27 [ +20 Jailed ] Currency Max
      Modded/Hacked App: Squad Alpha - Action Shooting By SayGames LTD
      Bundle ID: com.game.missioncrit
      iTunes Store Link: https://apps.apple.com/us/app/squad-alpha-action-shooting/id1571487050?uo=4


      Hack Features:

      - ADS Free 

      - ViP Member [ Active ] 

      - ViP PoPup Disable 

      - Gems Unlimited [ Daily Offer ]

      - Elite Pass [ Active ]

      - Elite Pass+ [ Active ]

      - Elite Pass [ Claim Unlimited ]

      - Elite Pass+ [ Claim Unlimited ]

      - Free Pass [ Claim Unlimited ]

      - Elite Pass LvL Skip [ Price -9999 ] Increased Gems

      - Loot Box [ Price -9999 ] Increased Gems

      - Inventory Expand [ Price -9999 ] Increased Gems

      - Inventory Space [ First Open Inventory Then Enable Cheat Next + ADD Then Buy Get Max Space ]

      - Health Max

      - DMG Unlimited

      - Speed Movement

      - Ammo Max

      - No Reload

      - Enemy Freeze

      - Wall Hack [ Move Anywhere ]

      Note:- Don"t Abuse The Hack Maybe Banned I'M Not Responsible 

       
      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Winner
        • Like
      • 24 replies
    • Squad Alpha - Action Shooting v1.7.27 [ +20 Cheats ] Currency Max
      Modded/Hacked App: Squad Alpha - Action Shooting By SayGames LTD
      Bundle ID: com.game.missioncrit
      iTunes Store Link: https://apps.apple.com/us/app/squad-alpha-action-shooting/id1571487050?uo=4

      Hack Features:
      - ADS Free 

      - ViP Member [ Active ] 

      - ViP PoPup Disable 

      - Gems Unlimited [ Daily Offer ]

      - Elite Pass [ Active ]

      - Elite Pass+ [ Active ]

      - Elite Pass [ Claim Unlimited ]

      - Elite Pass+ [ Claim Unlimited ]

      - Free Pass [ Claim Unlimited ]

      - Elite Pass LvL Skip [ Price -9999 ] Increased Gems

      - Loot Box [ Price -9999 ] Increased Gems

      - Inventory Expand [ Price -9999 ] Increased Gems

      - Inventory Space [ First Open Inventory Then Enable Cheat Next + ADD Then Buy Get Max Space ]

      - Health Max

      - DMG Unlimited

      - Speed Movement

      - Ammo Max

      - No Reload

      - Enemy Freeze

      - Wall Hack [ Move Anywhere ]

      Note:- Don"t Abuse The Hack Maybe Banned I'M Not Responsible 


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Winner
        • Like
      • 30 replies
    • Rumble Bag Fight: Legend Games v1.4.1 [ +10 Jailed ] Currency Max
      Modded/Hacked App: Rumble Bag: backpack battle By HappyTapLand Technology Co., Ltd.
      Bundle ID: com.defense.fight.merge.rumble.bag.game
      iTunes Store Link: https://apps.apple.com/us/app/rumble-bag-backpack-battle/id6547851442?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:

      - ADS No [ Free Rewards ]

      - ViP Active [ Check Store ]

      - Currency

      - Recourses

      - Weapon Unlocked

      - Ability Take All Unlimited

      - Ability Refresh Unlimited

      - Merge Anything Weapons [ Max LvL 5 Merging Above Disable Weapons ] 

      - Always Last Wave [Before Enter The Battle ]

      - DMG [ Merge Weapons ]
        • Agree
        • Winner
        • Like
      • 17 replies
    • Rumble Bag Fight: Legend Games v1.4.1 [ +10 Cheats ] Currency Max
      Modded/Hacked App: Rumble Bag: backpack battle By HappyTapLand Technology Co., Ltd.
      Bundle ID: com.defense.fight.merge.rumble.bag.game
      iTunes Store Link: https://apps.apple.com/us/app/rumble-bag-backpack-battle/id6547851442?uo=4


      Hack Features:
      - ADS No [ Free Rewards ]

      - ViP Active [ Check Store ]

      - Currency

      - Recourses

      - Weapon Unlocked

      - Ability Take All Unlimited

      - Ability Refresh Unlimited

      - Merge Anything Weapons [ Max LvL 5 Merging Above Disable Weapons ] 

      - Always Last Wave [Before Enter The Battle ]

      - DMG [ Merge Weapons ]
        • Agree
        • Thanks
        • Winner
        • Like
      • 18 replies
    • Dragon Village Survival v1.120 [ +9 Cheats ] Never Die
      Modded/Hacked App: Dragon Survival By Alchemist Games Inc
      Bundle ID: com.alchemist.games.dvs
      iTunes Store Link: https://apps.apple.com/us/app/dragon-survival/id6453701946?uo=4


      Hack Features:
      - No ADS

      - Never Die

      - DMG

      - Max Ammo

      - Pick Up Range [ Enter The Game Then Use ]

      - Movement Speed

      - Enemy No Limit 

      - Fire Radius

      - Max Revive 


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 99 replies
    • Dragon Survival v1.120 [ +9 Jailed ] Never Die
      Modded/Hacked App: Dragon Survival By Alchemist Games Inc
      Bundle ID: com.alchemist.games.dvs
      iTunes Store Link: https://apps.apple.com/us/app/dragon-survival/id6453701946?uo=4


      Hack Features:
      - No ADS [ Rewards Free]

      - Immortal

      - Damage

      - Ammo

      - Pick Up Range

      - Movement Speed

      - Enemy No Limit

      - Revive

      - Fire Radius


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Thanks
        • Winner
        • Like
      • 28 replies
    • Friends Adventure Match v3.5.1 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Friends Adventure Match By NARCADE TEKNOLOJI ANONIM SIRKETI
      Bundle ID: com.nar.FriendsMatch
      iTunes Store Link: https://apps.apple.com/us/app/friends-adventure-match/id6479395668?uo=4

       

      Hack Features

      - Coins [ Win Match ]

      - Lives

      - Stars

      - Booster

      - Moves


      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/

       

      iOS Hack Download Link


      Hidden Content

      Download Hack
        • Like
      • 4 replies
    • Friends Adventure Match v3.5.1 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Friends Adventure Match By NARCADE TEKNOLOJI ANONIM SIRKETI
      Bundle ID: com.nar.FriendsMatch
      iTunes Store Link: https://apps.apple.com/us/app/friends-adventure-match/id6479395668?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

      - Coins [ Win Match ]

      - Lives

      - Stars

      - Booster

      - Moves


      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
      • 4 replies
    • Vampirio: Defend & Survive v1.1.6 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Vampirio: Defend & Survive By Outfit7 Neo Limited
      Bundle ID: com.outfit7neo.onehelsing
      App Store Link: https://apps.apple.com/ph/app/vampirio-defend-survive/id6670539564?uo=4

       

      🤩 Hack Features

      - Currency Max [ Disable After Get ]
      - Resources Max [ Use Only Resources - Disable After Get ] Becasue Linked Population When You Build Disable OtherWise Crash

        • Like
      • 4 replies
    • Vampirio: Defend & Survive v1.1.6 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Vampirio: Defend & Survive By Outfit7 Neo Limited
      Bundle ID: com.outfit7neo.onehelsing
      App Store Link: https://apps.apple.com/ph/app/vampirio-defend-survive/id6670539564?uo=4


      🤩 Hack Features

      - Currency Max [ Disable After Get ]
      - Resources [ Use Only Resources - Disable After Get ] Becasue Linked Population When You Build Disable OtherWise Crash
        • Winner
        • Like
      • 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