Jump to content

Game crashes when using custom text switch


Enoch

23 posts in this topic

Recommended Posts

  • Replies 22
  • Created
  • Last Reply
Posted

Hm, weird. What happens when you just return a custom value? Not a slider switch value. Also, both functions seem to end with a return from another function, you’re probably better of hacking that.

Posted
1 minute ago, Ted2 said:

Hm, weird. What happens when you just return a custom value? Not a slider switch value. Also, both functions seem to end with a return from another function, you’re probably better of hacking that.

The game crashes. It works fine with the one offset patch which I can just use. Thanks for trying to help.

Posted
Just now, ZoZo said:

The game crashes. It works fine with the one offset patch which I can just use. Thanks for trying to help.

I know that you cannot hook functions with two instructions, that might be the case on this one due the weird function end (a function call instead of “RET”). You should try it on the function those two are calling.

Posted
7 minutes ago, Ted2 said:

I know that you cannot hook functions with two instructions, that might be the case on this one due the weird function end (a function call instead of “RET”). You should try it on the function those two are calling.

Alright I'll try it in a bit and get back to you.

Posted
int(*old_get_PointsKillMultiplier)(void *this_);
int get_PointsKillMultiplier(void *this_) {

  int userAmount = [[switches getValueFromSwitch:@"Custom Points:"] intValue];

  if([switches isSwitchOn:@"Custom Points:"]) {
    return userAmount;
  }
  return old_get_PointsKillMultiplier(this_);
}

int(*old_get_GemsRewardForKill)(void *this_);
int get_GemsRewardForKill(void *this_) {

  int userAmount = [[switches getValueFromSwitch:@"Custom Gems:"] intValue];

  if([switches isSwitchOn:@"Custom Gems:"]) {
    return userAmount;
  }
  return old_get_GemsRewardForKill(this_);
}

void setup() {


  HOOK(0x1015AD440, get_PointsKillMultiplier, old_get_PointsKillMultiplier);


  HOOK(0x1015A9F84, get_GemsRewardForKill, old_get_GemsRewardForKill);

    [switches addTextfieldSwitch:@"Custom Points:"
                description:@"Here you can enter your own points amount!"
                  inputBorderColor:[UIColor colorWithRed:0.74 green:0.00 blue:0.00 alpha:1.0]];

    [switches addTextfieldSwitch:@"Custom Gems:"
                description:@"Here you can enter your own coins amount!"
                  inputBorderColor:[UIColor colorWithRed:0.74 green:0.00 blue:0.00 alpha:1.0]];                                                                                      
}

try this, hope it work

Posted
6 minutes ago, Soud_0 said:

int(*old_get_PointsKillMultiplier)(void *this_);
int get_PointsKillMultiplier(void *this_) {

  int userAmount = [[switches getValueFromSwitch:@"Custom Points:"] intValue];

  if([switches isSwitchOn:@"Custom Points:"]) {
    return userAmount;
  }
  return old_get_PointsKillMultiplier(this_);
}

int(*old_get_GemsRewardForKill)(void *this_);
int get_GemsRewardForKill(void *this_) {

  int userAmount = [[switches getValueFromSwitch:@"Custom Gems:"] intValue];

  if([switches isSwitchOn:@"Custom Gems:"]) {
    return userAmount;
  }
  return old_get_GemsRewardForKill(this_);
}

void setup() {


  HOOK(0x1015AD440, get_PointsKillMultiplier, old_get_PointsKillMultiplier);


  HOOK(0x1015A9F84, get_GemsRewardForKill, old_get_GemsRewardForKill);

    [switches addTextfieldSwitch:@"Custom Points:"
                description:@"Here you can enter your own points amount!"
                  inputBorderColor:[UIColor colorWithRed:0.74 green:0.00 blue:0.00 alpha:1.0]];

    [switches addTextfieldSwitch:@"Custom Gems:"
                description:@"Here you can enter your own coins amount!"
                  inputBorderColor:[UIColor colorWithRed:0.74 green:0.00 blue:0.00 alpha:1.0]];                                                                                      
}

try this, hope it work

I still crashed when trying this.

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Dragon Wings: RPG Shoot em up v1.19.0 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Dragon Wings: RPG Shoot 'em up By Spirit Bomb Company Limited
      Bundle ID: rpg.arcade.space.shooter.dragon.wings
      App Store Link: https://apps.apple.com/us/app/dragon-wings-rpg-shoot-em-up/id6741735947?uo=4

       

      🤩 Hack Features

      - Super Card Active

      - Gems

      - Gold

      - Never Die

      - ATK 
        • Informative
        • Agree
        • Like
      • 38 replies
    • Dragon Wings: RPG Shoot em up v1.19.0 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Dragon Wings: RPG Shoot 'em up By Spirit Bomb Company Limited
      Bundle ID: rpg.arcade.space.shooter.dragon.wings
      App Store Link: https://apps.apple.com/us/app/dragon-wings-rpg-shoot-em-up/id6741735947?uo=4
       

      🤩 Hack Features

      - Super Card Active

      - Gems

      - Gold

      - Never Die

      - ATK 
        • Thanks
        • Winner
        • Like
      • 40 replies
    • Castle Crush-Match 3 v2.44.0 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Castle Crush-Match 3 By KIWI MIBO NETWORK TECHNOLOGY CO.,LIMITED
      Bundle ID: com.mibo.castlecrush.apple
      iTunes Store Link: https://apps.apple.com/us/app/castle-crush-match-3/id1663431964?uo=4


      Hack Features

      - Coins

      - Lives

      - Stars

      - Moves Freeze

      - Booster

      - Auto Win [ Just Hit Target ]


      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/
        • Informative
        • Agree
        • Like
      • 47 replies
    • Match Villains v1.49.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Match Villains By Good Job Games Bilisim Yazilim ve Pazarlama AS
      Bundle ID: com.goodjobgames.matchvillains
      iTunes Store Link: https://apps.apple.com/us/app/match-villains/id6479752688?uo=4
       

      🚀 Hack Features

      - Coins
      - Lives
      - Moves Freeze
      - Booster


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Thanks
        • Like
      • 50 replies
    • Match Villains v1.49.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Match Villains By Good Job Games Bilisim Yazilim ve Pazarlama AS
      Bundle ID: com.goodjobgames.matchvillains
      iTunes Store Link: https://apps.apple.com/us/app/match-villains/id6479752688?uo=4
       

      🚀 Hack Features

      - Coins
      - Lives
      - Moves Freeze
      - Booster


      🍏 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
        • Like
      • 43 replies
    • Castle Crush-Match 3 v2.44.0 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Castle Crush-Match 3 By KIWI MIBO NETWORK TECHNOLOGY CO.,LIMITED
      Bundle ID: com.mibo.castlecrush.apple
      iTunes Store Link: https://apps.apple.com/us/app/castle-crush-match-3/id1663431964?uo=4


      Hack Features

      - Coins

      - Lives

      - Stars

      - Moves Freeze

      - Booster

      - Auto Win [ Just Hit Target ]


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Like
      • 43 replies
    • Parties & Puzzles: Tile Games v9.1 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Parties & Puzzles: Tile Games By Snax Games LTD
      Bundle ID: com.snax.puzzle2
      iTunes Store Link: https://apps.apple.com/us/app/parties-puzzles-tile-games/id1587568164?uo=4

      🤩 Hack Features

      - Cash
      - Stars
      - Cards
        • Informative
        • Thanks
        • Like
      • 12 replies
    • Boom Castle Tower Defense TD v1.8.2 [ +7 Jailed ] Easy Win
      Modded/Hacked App: Boom Castle: Tower Defense TD By Terahype s.r.o.
      Bundle ID: castle.heroes.tower.defense.kingdom.magic.battle.archer
      iTunes Store Link: https://apps.apple.com/us/app/boom-castle-tower-defense-td/id6502820312?uo=4


      Hack Features:

      - Enemy Status [ HP DEF ]

      - Base HP 

      - Battle Cost 0 

      - Stage Unlocked [ Play Any Stage ]

      - Battle Pass Unlocked 

      - Battle Pass Claim Unlimited [ Gems Gold ]

      - iGG Speed Hack Max 0 - 10 [ Skill CD - ATK Speed - Animation Speed - Wave Faster ]


      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
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 81 replies
    • Boom Castle Tower Defense TD v1.8.2 [ +7 Cheats ] Easy Win
      Modded/Hacked App: Boom Castle: Tower Defense TD By Terahype s.r.o.
      Bundle ID: castle.heroes.tower.defense.kingdom.magic.battle.archer
      iTunes Store Link: https://apps.apple.com/us/app/boom-castle-tower-defense-td/id6502820312?uo=4


      Hack Features:
      - Enemy Status [ HP DEF ]

      - Base HP 

      - Battle Cost 0 

      -  Stage Unlocked [ Play Any Stage ]

      - Battle Pass Unlocked 

      - Battle Pass Claim Unlimited [ Gems Gold ]

      - iGG Speed Hack Max 0 - 10 [ Skill CD - ATK Speed - Animation Speed - Wave Faster ] 


      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
        • Haha
        • Thanks
        • Winner
        • Like
      • 82 replies
    • Dream Resort - Match 3 Games v1.9.3 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4
       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 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
      • 43 replies
    • Dream Resort - Match 3 Games v1.9.3 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4

       

      🔧 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 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/
        • Thanks
        • Like
      • 40 replies
    • Parties & Puzzles: Tile Games v9.1 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Parties & Puzzles: Tile Games By Snax Games LTD
      Bundle ID: com.snax.puzzle2
      iTunes Store Link: https://apps.apple.com/us/app/parties-puzzles-tile-games/id1587568164?uo=4


      🤩 Hack Features

      - Cash
      - Stars
      - Cards 
        • Like
      • 15 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