Jump to content

Ms hook settings


Red16

7 posts in this topic

Recommended Posts

Posted

Ever since I added this I know I wrote it worng just my lucky day :rofl:

 

also so tell me how to write a void with if(GetPrefBool) pepehands

- (void) setNoVulnerable:(bool)arg1 {

arg1 = TRUE;

}

if(GetPrefBool("@keyReal")){

return; %orig (arg1);

}

%end

error im geting-

 

==> Preprocessing Tweak.xm…                             

Tweak.xm:74: error: %orig does not make sense outside a block                                                    

make[3]: *** [/var/theos/makefiles/instance/rules.mk:265: /var/mobile/goblinsw0rdhack/.theos/obj/armv7/Tweak.xm.mm] Error 255                                             

rm /var/mobile/goblinsw0rdhack/.theos/obj/armv7/Tweak.xm.mm                                                      

==> Preprocessing Tweak.xm…                             

Tweak.xm:74: error: %orig does not make sense outside a block                                                    

make[3]: *** [/var/theos/makefiles/instance/rules.mk:265: /var/mobile/goblinsw0rdhack/.theos/obj/arm64/Tweak.xm.mm] Error 255                                             

rm /var/mobile/goblinsw0rdhack/.theos/obj/arm64/Tweak.xm.mm                                                      

make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/goblinsw0rdhack/.theos/obj/armv7/GoblinSw0rdHack.dylib] Error 2                                    

make[2]: *** Waiting for unfinished jobs....            

make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/goblinsw0rdhack/.theos/obj/arm64/GoblinSw0rdHack.dylib] Error 2                                    

make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2                        

make: *** [/var/theos/makefiles/master/rules.mk:123: GoblinSw0rdHack.all.tweak.variables] Error 2              

Posted
%hook classnamehere
-(void)setNoVulnerable:(bool)arg1 {
    if(GetPrefBool(@"key1")) {
        arg1 = TRUE;
    }
        return %orig;  
    }
%end
	
Posted
18 minutes ago, Amuyea said:

%hook classnamehere
-(void)setNoVulnerable:(bool)arg1 {
    if(GetPrefBool(@"key1")) {
        arg1 = TRUE;
    }
        return %orig;  
    }
%end
	

I get the same error 

i also have the %hook Class

Posted
31 minutes ago, Red16 said:

I get the same error 

i also have the %hook Class

Did you copy the class name from Flex2/3?

Show Tweak.xm

Posted
41 minutes ago, Amuyea said:

Did you copy the class name from Flex2/3?

Show Tweak.xm

Yes I did copy class name from flex here is tweak.xm

@import Foundation;

@import UIKit;

#import <substrate.h>

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.rednick16.goblin.plist"

 

inline bool GetPrefBool(NSString *key) {

        return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

%hook Gem

- (int) gemvalue {

if(GetPrefBool(@"keyGem")){

return 999;

}

return %orig;

}

%end

 

%hook Player

 

- (bool) invincible {

if(GetPrefBool(@"keyinvincible")){

return TRUE;

}

return %orig;

}

 

- (int) dJumpcount {

if(GetPrefBool(@"keyJump")){

return 1;

}

return %orig;

}

 

- (bool) onGround {

if(GetPrefBool(@"keyGA")){

return TRUE;

}

return %orig;

}

 

%end

 

%hook GameObject

 

- (bool) isHarmless {

if(GetPrefBool(@"keyHarmless")){

return TRUE;

}

return %orig;

}

 

- (void) setNoVulnerable:(bool)arg1 {

if(GetPrefBool("@keyReal")){

arg1 = TRUE;

}

return %orig;

}

%end

 

%hook Water

- (bool) isLava

if(GetPrefBool(@"KeyLava")){

return FALSE;

}

return %orig;

}

%end

 

void setup() {

    UIAlertController *igcredits = [UIAlertController alertControllerWithTitle:@"Goblin Sword Cheats" message:@"Goblin Sword Cheats by @Rednick16_ for iOSGods.com" preferredStyle:UIAlertControllerStyleAlert];

 

    UIAlertAction *thankyou = [UIAlertAction actionWithTitle:@"Thank you!" style:UIAlertActionStyleCancel handler:nil];

 

    [igcredits addAction:thankyou];

 

    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:igcredits animated:true completion:nil];

}

 

void unsubscribeToLaunchEvent(void);

 

static void didFinishLaunching(CFNotificationCenterRef center, void *observer,

                               CFStringRef name, const void *object, CFDictionaryRef info) {

    setup();

    unsubscribeToLaunchEvent();

}

 

const char *authObserver = "authObserver";

 

void subscribeToLaunchEvent() {

    CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), authObserver, &didFinishLaunching,

                                    (CFStringRef)UIApplicationDidFinishLaunchingNotification,

                                    NULL, CFNotificationSuspensionBehaviorDrop);

}

 

void unsubscribeToLaunchEvent() {

    CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), authObserver,

                                       (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL);

}

 

__attribute__((constructor)) static void initialize() {

    subscribeToLaunchEvent();

}

 
Posted
15 hours ago, Red16 said:

Yes I did copy class name from flex here is tweak.xm

@import Foundation;

@import UIKit;

#import <substrate.h>

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.rednick16.goblin.plist"

 

inline bool GetPrefBool(NSString *key) {

        return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

%hook Gem

- (int) gemvalue {

if(GetPrefBool(@"keyGem")){

return 999;

}

return %orig;

}

%end

 

%hook Player

 

- (bool) invincible {

if(GetPrefBool(@"keyinvincible")){

return TRUE;

}

return %orig;

}

 

- (int) dJumpcount {

if(GetPrefBool(@"keyJump")){

return 1;

}

return %orig;

}

 

- (bool) onGround {

if(GetPrefBool(@"keyGA")){

return TRUE;

}

return %orig;

}

 

%end

 

%hook GameObject

 

- (bool) isHarmless {

if(GetPrefBool(@"keyHarmless")){

return TRUE;

}

return %orig;

}

 

- (void) setNoVulnerable:(bool)arg1 {

if(GetPrefBool("@keyReal")){

arg1 = TRUE;

}

return %orig;

}

%end

 

%hook Water

- (bool) isLava

if(GetPrefBool(@"KeyLava")){

return FALSE;

}

return %orig;

}

%end

 

void setup() {

    UIAlertController *igcredits = [UIAlertController alertControllerWithTitle:@"Goblin Sword Cheats" message:@"Goblin Sword Cheats by @Rednick16_ for iOSGods.com" preferredStyle:UIAlertControllerStyleAlert];

 

    UIAlertAction *thankyou = [UIAlertAction actionWithTitle:@"Thank you!" style:UIAlertActionStyleCancel handler:nil];

 

    [igcredits addAction:thankyou];

 

    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:igcredits animated:true completion:nil];

}

 

void unsubscribeToLaunchEvent(void);

 

static void didFinishLaunching(CFNotificationCenterRef center, void *observer,

                               CFStringRef name, const void *object, CFDictionaryRef info) {

    setup();

    unsubscribeToLaunchEvent();

}

 

const char *authObserver = "authObserver";

 

void subscribeToLaunchEvent() {

    CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), authObserver, &didFinishLaunching,

                                    (CFStringRef)UIApplicationDidFinishLaunchingNotification,

                                    NULL, CFNotificationSuspensionBehaviorDrop);

}

 

void unsubscribeToLaunchEvent() {

    CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), authObserver,

                                       (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL);

}

 

__attribute__((constructor)) static void initialize() {

    subscribeToLaunchEvent();

}

 

Change this:

- (void) setNoVulnerable:(bool)arg1 {

if(GetPrefBool("@keyReal")){

arg1 = TRUE;

}

return %orig;

}

To this:

- (void) setNoVulnerable:(bool)arg1 {

if(GetPrefBool(@"keyReal")){

arg1 = TRUE;

}

return %orig;

}

 

Posted
4 minutes ago, Joka said:

Change this:


- (void) setNoVulnerable:(bool)arg1 {

if(GetPrefBool("@keyReal")){

arg1 = TRUE;

}

return %orig;

}

To this:


- (void) setNoVulnerable:(bool)arg1 {

if(GetPrefBool(@"keyReal")){

arg1 = TRUE;

}

return %orig;

}

 

Thank you it worked such a simple error I did not even see it

Archived

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

  • Our picks

    • Car Match - Traffic Puzzle v2.61 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Car Match - Traffic Puzzle By GRAND GAMES OYUN VE YAZILIM ANONIM SIRKETI
      Bundle ID: com.grandgames.carmatch
      App Store Link: https://apps.apple.com/us/app/car-match-traffic-puzzle/id6504421808?uo=4

       
       

      🤩 Hack Features

      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      - Auto Win -> Quit the level.
      - Level Modifier
      • 0 replies
    • Car Match - Traffic Puzzle v2.61 +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Car Match - Traffic Puzzle By GRAND GAMES OYUN VE YAZILIM ANONIM SIRKETI
      Bundle ID: com.grandgames.carmatch
      App Store Link: https://apps.apple.com/us/app/car-match-traffic-puzzle/id6504421808?uo=4

       
       

      🤩 Hack Features

      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      - Auto Win -> Quit the level.
      - Level Modifier
      • 0 replies
    • Last War:Survival v1.0.300 [+1 Jailed Cheats]
      Modded/Hacked App: Last War:Survival By FUNFLY PTE. LTD.
      Bundle ID: com.lastwar.ios
      App Store Link: https://apps.apple.com/us/app/last-war-survival/id6448786147?uo=4



      Important


      Only work on Pve contents

      Enable on loading screen!

       

      🤩 Hack Features

      - Never Die
       
      • 16 replies
    • Last War:Survival v1.0.300 [+1 Cheats]
      Modded/Hacked App: Last War:Survival By FUNFLY PTE. LTD.
      Bundle ID: com.lastwar.ios
      App Store Link: https://apps.apple.com/us/app/last-war-survival/id6448786147?uo=4



      Important


      Only work on Pve contents

      Enable on loading screen!

       

       

      🤩 Hack Features

      - Never Die
       
      • 23 replies
    • Dawn of Ages: Medieval Games v2.0.7 +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
        • Like
      • 8 replies
    • Disney Speedstorm v1.13.0 +1 Jailed Cheat [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Jailbreak required hack(s): [Mod Menu Hack] Disney Speedstorm v1.5.0 +2 Cheats [ Unlimited Nitro ] - 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/
      • 85 replies
    • Disney Speedstorm v1.13.0 +1 Cheat [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Disney Speedstorm v1.5.0 +2 Jailed Cheats [ Unlimited Nitro ] - 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/
      • 78 replies
    • Dawn of Ages: Medieval Games v2.0.7 +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

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - @Puddin
      - @Laxus

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 14 replies
    • Earth Inc. Tycoon Idle Miner v5.3.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Earth Inc. Tycoon Idle Miner By Treetop Crew Oy
      Bundle ID: com.TreetopCrew.EarthInc
      iTunes Store Link: https://apps.apple.com/us/app/earth-inc-tycoon-idle-miner/id1582514877?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.


      Jailbreak required hack(s): [Mod Menu Hack] Earth Inc. v2.2.1 +3 Cheats [ 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/
      • 81 replies
    • Earth Inc. Tycoon Idle Miner v5.3.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Earth Inc. Tycoon Idle Miner By Treetop Crew Oy
      Bundle ID: com.TreetopCrew.EarthInc
      iTunes Store Link: https://apps.apple.com/us/app/earth-inc-tycoon-idle-miner/id1582514877?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Diamonds -> Will increase instead of decrease.
      - Free In-App Purchases


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Earth Inc. v2.2.1 +3 Jailed Cheats [ 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/
      • 49 replies
    • Slots Era - Slot Machines 777 v2.57.0 +100++ Jailed Cheats [ ULTIMATE HACK ]
      Modded/Hacked App: Slots Era - Slot Machines 777 By Murka Games Limited
      Bundle ID: com.murka.slotsera
      iTunes Store Link: https://apps.apple.com/us/app/slots-era-slot-machines-777/id1133138987
       

      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Privacy Policy button.


      Jailbreak required hack(s): https://iosgods.com/topic/172023-slots-era-slot-machines-777-v2200-100-cheat-srdebugger/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Winner
      • 177 replies
    • Slots Era - Slot Machines 777 v2.57.0 +100++ Cheats [ ULTIMATE HACK ]
      Modded/Hacked App: Slots Era - Slot Machines 777 By Murka Games Limited
      Bundle ID: com.murka.slotsera
      iTunes Store Link: https://apps.apple.com/us/app/slots-era-slot-machines-777/id1133138987
       

      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Privacy Policy button.


      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/
        • Haha
        • Like
      • 283 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