Jump to content

6 posts in this topic

Recommended Posts

Posted (edited)

Hi,

 

I'm using the code for the 'Modemenu settings based'

 

Worked fine for one function, but when I'm adding a second function it's telling me this: 

%end does not make sense inside a block

 

Mostly, I do understand this 'error' when I look into my code, but now nothing works. I must see something wrong.

 

This codes works fine:

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg {
    if(GetPrefBool(@"key4")) {
    vm_writeData(0x1004316D8, 0x20008052);
    vm_writeData(0x1004316DC, 0xC0035FD6); 
    vm_writeData(0x1002BE83C, 0x20008052); 
    vm_writeData(0x1002BE840, 0xC0035FD6);
    } else {
    vm_writeData(0x1004316D8, 0xC00000B4); //Original HEX
    vm_writeData(0x1004316DC, 0x889F0090); //Original HEX
    vm_writeData(0x1002BE83C, 0xC00000B4); //Original HEX
    vm_writeData(0x1002BE840, 0x889F0090); //Original HEX 
}
}
%end


%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.{

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
    
    [alert addButton: @"Visit my Channel!" actionBlock: ^(void) {
        [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://iosgods.com"]];
    }];
    
    alert.shouldDismissOnTapOutside = NO; //Dismiss alert when tapped outside? YES or NO
    alert.backgroundType = Blur; // Blur, Shadow or Transparent background
    alert.customViewColor = [UIColor redColor]; // Overwrite SCLAlertView (Buttons, top circle and borders) colors
    
    
    alert.showAnimationType = SlideInFromLeft; // Animation when the popup is shown. Default is SlideInFromTop
    //alert.hideAnimationType = SlideOutToBottom; // Animation when closing the popup. Default is FadeOut
    
    [alert showSuccess: nil // Success, Error, Notice, Warning, Info, Edit, Custom, Waiting
              subTitle: @"Hacked by Ted2\n"
      closeButtonTitle: @"Thank You" // The text on the button which closes the popup
              duration: 10.0f]; // Seconds until the popup auto closes.
        return %orig;
}
%end

 

& then I add my second function, which looks like this:

 

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg {
    if(GetPrefBool(@"key4")) {
    vm_writeData(0x1004316D8, 0x20008052);
    vm_writeData(0x1004316DC, 0xC0035FD6); 
    vm_writeData(0x1002BE83C, 0x20008052); 
    vm_writeData(0x1002BE840, 0xC0035FD6);
    } else {
    vm_writeData(0x1004316D8, 0xC00000B4); //Original HEX
    vm_writeData(0x1004316DC, 0x889F0090); //Original HEX
    vm_writeData(0x1002BE83C, 0xC00000B4); //Original HEX
    vm_writeData(0x1002BE840, 0x889F0090); //Original HEX 
}
}
%end

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg { 
    if(GetPrefBool(@"key4")) {
        vm_writeData(0x1004316F4, 0x20008052);
        vm_writeData(0x1004316F8, 0xC0035FD6); 
        vm_writeData(0x1002BE89C, 0x20008052);
        vm_writeData(0x1002BE8A0, 0xC0035FD6);
    } else {
        vm_writeData(0x1004316F4, 0xC00000B4); //Original HEX
        vm_writeData(0x1004316F8, 0x889F0090); //Original HEX
        vm_writeData(0x1002BE89C, 0xC00000B4); //Original HEX
        vm_writeData(0x1002BE8A0, 0x889F0090); //Original HEX 
}
}
%end


%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.{

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
    
    [alert addButton: @"Visit my Channel!" actionBlock: ^(void) {
        [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://iosgods.com"]];
    }];
    
    alert.shouldDismissOnTapOutside = NO; //Dismiss alert when tapped outside? YES or NO
    alert.backgroundType = Blur; // Blur, Shadow or Transparent background
    alert.customViewColor = [UIColor redColor]; // Overwrite SCLAlertView (Buttons, top circle and borders) colors
    
    
    alert.showAnimationType = SlideInFromLeft; // Animation when the popup is shown. Default is SlideInFromTop
    //alert.hideAnimationType = SlideOutToBottom; // Animation when closing the popup. Default is FadeOut
    
    [alert showSuccess: nil // Success, Error, Notice, Warning, Info, Edit, Custom, Waiting
              subTitle: @"Hacked by Ted2\n"
      closeButtonTitle: @"Thank You" // The text on the button which closes the popup
              duration: 10.0f]; // Seconds until the popup auto closes.
        return %orig;
}
%end

 

First code compiles fine, second one doesn't.

 

I gotta close the %hook AppDelgate & add a new one right?

I mean otherwise it'll load the same function in one hook, which shouldn't be possible.

 

Can anyone tell me what's wrong with the code.. O.o 

 

Thanks xD

Updated by Ted2
Fixed code thingy
Posted

You've got key4 used for two different functions/ cheats.  Was that supposed to be key4 and key5? If not shouldn't all of it be in same hooked function?

Posted (edited)
2 minutes ago, i0s_tweak3r said:

You've got key4 used for two different functions/ cheats.  Was that supposed to be key4 and key5? If not shouldn't all of it be in same hooked function?

Oh yea, it the second should be other key, key5. Not sure if that what makes it a error. lemme test 

 

edit: nope, doesn't fix

Updated by Ted2
Posted (edited)
32 minutes ago, Ted2 said:

Oh yea, it the second should be other key, key5. Not sure if that what makes it a error. lemme test 

Usually that error is from a missing begin "{" or end "}".  I'm too tired right now to find it tho.  Hopefully someone will see it.  Just looked and seemed to be same number of each.

Edit: Actually try combining both of ur -(void)applicationDidBecomeActive's with the two keys inside same hook. Have both the getprefbools / keys in one hook rather then two separate.   

    } else {    vm_writeData(0x1004316D8, 0xC00000B4); //Original HEX    vm_writeData(0x1004316DC, 0x889F0090); //Original HEX    vm_writeData(0x1002BE83C, 0xC00000B4); //Original HEX    vm_writeData(0x1002BE840, 0x889F0090); //Original HEX }} // delete this%end // delete this%hook AppDelegate //delete this-(void)applicationDidBecomeActive:(id)arg { //delete this  if(GetPrefBool(@"key4"))//change key name {        vm_writeData(0x1004316F4, 0x20008052);        vm_writeData(0x1004316F8, 0xC0035FD6); 	//add rest of function then put ur 	}	}	//%end;	
Updated by i0s_tweak3r
trying to erase semicolon after %end at end but mobile editing of code sux it pastes weird and doesn't let u edit..
Posted

That code pasted weird I'm on mobile and copy paste isn't working well.  I'm sure u get the idea tho.

If key 4 {do stuff} else {do orig}  if key 5 {do stuff} else {do orig} then your },and %end

Hopefully that helps a little. Time for me to sleep. Good luck! 

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

    • Train of Hope: Survival Game v1.11.0 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Train of Hope: Survival Game By Samfinaco LLC
      Bundle ID: com.samfinaco.tos
      iTunes Store Link: https://apps.apple.com/us/app/train-of-hope-survival-game/id6636482655?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Resources -> Will increase instead of decrease.
      - Unlimited Hero Experience -> Will increase instead of decrease.
        • Haha
        • Thanks
        • Winner
        • Like
      • 69 replies
    • Train of Hope: Survival Game v1.11.0 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Train of Hope: Survival Game By Samfinaco LLC
      Bundle ID: com.samfinaco.tos
      iTunes Store Link: https://apps.apple.com/us/app/train-of-hope-survival-game/id6636482655?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Resources -> Will increase instead of decrease.
      - Unlimited Hero Experience -> Will increase instead of decrease.
        • Agree
        • Winner
        • Like
      • 51 replies
    • Amikin Village: Magic Sim RPG v1.3.0 +5 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Amikin Village: Magic Sim RPG By HELIO LTD
      Bundle ID: com.heliogames.amikin.survival
      App Store Link: https://apps.apple.com/us/app/amikin-village-magic-sim-rpg/id6478102304?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      - Unlimited Weapon Durability
      - Split Hack
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 336 replies
    • SpongeBob Adventures: In A Jam v2.25.1 +1++ Jailed Cheats [ Everything ]
      Modded/Hacked App: SpongeBob Adventures: In A Jam By Tilting Point LLC
      Bundle ID: com.tiltingpoint.sbadventures
      iTunes Store Link: https://apps.apple.com/us/app/spongebob-adventures-in-a-jam/id1641251535?uo=4


      Hack Features:
      - Unlimited Everything -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] SpongeBob Adventures: In A Jam +20++ Cheats [ Cheat Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      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
      • 152 replies
    • SpongeBob Adventures: In A Jam v2.25.1 +1++ Cheats [ Everything ]
      Modded/Hacked App: SpongeBob Adventures: In A Jam By Tilting Point LLC
      Bundle ID: com.tiltingpoint.sbadventures
      iTunes Store Link: https://apps.apple.com/us/app/spongebob-adventures-in-a-jam/id1641251535?uo=4


      Hack Features:
      - Unlimited Everything -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] SpongeBob Adventures: In A Jam +20++ Jailed Cheats [ Cheat Menu ] - ViP Non-Jailbroken Hacks & Cheats - iOSGods
      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
      • 168 replies
    • Dragoneer Squad: Idle v1.0.14 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dragoneer Squad: Idle By DAERI SOFT
      Bundle ID: com.daerigame.dragon
      App Store Link: https://apps.apple.com/us/app/dragoneer-squad-idle/id6746182414?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Informative
        • Winner
        • Like
      • 15 replies
    • Dragoneer Squad: Idle v1.0.14 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dragoneer Squad: Idle By DAERI SOFT
      Bundle ID: com.daerigame.dragon
      App Store Link: https://apps.apple.com/us/app/dragoneer-squad-idle/id6746182414?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Thanks
        • Winner
        • Like
      • 27 replies
    • Amikin Village: Magic Sim RPG v1.3.0 +5 Cheats [ Damage + More ]
      Modded/Hacked App: Amikin Village: Magic Sim RPG By HELIO LTD
      Bundle ID: com.heliogames.amikin.survival
      App Store Link: https://apps.apple.com/us/app/amikin-village-magic-sim-rpg/id6478102304?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      - Unlimited Weapon Durability
      - Split Hack
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 119 replies
    • Zombie State: FPS Shooter v2.4.2 +13 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Zombie State: Survival game By MYGAMES MENA FZ LLC
      Bundle ID: games.my.zombie.shooter
      App Store Link: https://apps.apple.com/us/app/zombie-state-survival-game/id6451382835?uo=4

       
       

      🤩 Hack Features

      - Freeze Currencies
      - Freeze Ammo
      - No Recoil
      - No Spread
      - Increased Fire Rate

      VIP
      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Unlimited Currencies
      - Kill All Enemies
      - Become Invisible
      - Battle Pass Purchased
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 109 replies
    • Zombie State: FPS Shooter v2.4.2 +13 Cheats [ Damage & Defence ]
      Modded/Hacked App: Zombie State: Survival game By MYGAMES MENA FZ LLC
      Bundle ID: games.my.zombie.shooter
      App Store Link: https://apps.apple.com/us/app/zombie-state-survival-game/id6451382835?uo=4

       


      🤩 Hack Features

      - Freeze Currencies
      - Freeze Ammo
      - No Recoil
      - No Spread
      - Increased Fire Rate

      VIP
      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Unlimited Currencies
      - Kill All Enemies
      - Become Invisible
      - Battle Pass Purchased
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 86 replies
    • Goblins Wood: Tycoon Idle Sim v2.52.3 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Goblins Wood: Tycoon Idle Sim By ProGamesLab LTD
      Bundle ID: idle.goblins.wood.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/goblins-wood-tycoon-idle-sim/id6446766326?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Goblins Wood: Tycoon Idle Sim v2.42.0 +1++ Cheat [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Thanks
        • Winner
        • Like
      • 40 replies
    • Goblins Wood: Tycoon Idle Sim v2.52.3 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Goblins Wood: Tycoon Idle Sim By ProGamesLab LTD
      Bundle ID: idle.goblins.wood.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/goblins-wood-tycoon-idle-sim/id6446766326?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Goblins Wood: Tycoon Idle Sim v2.42.0 +1++ Jailed Cheat [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      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
      • 51 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