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

    • Treasure Heroes v1.0.137 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Treasure Heroes By Axellect Development Information Technology - Sole Proprietorship LLC
      Bundle ID: com.kibugames.treasureheroes
      App Store Link: https://apps.apple.com/ca/app/treasure-heroes/id6771740522?uo=4

      🤩 Hack Features

      - FREE AD REWARDS
      - Currency Max
      - UNIT LIMIT 100
      • 0 replies
    • Treasure Heroes v1.0.137 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Treasure Heroes By Axellect Development Information Technology - Sole Proprietorship LLC
      Bundle ID: com.kibugames.treasureheroes
      App Store Link: https://apps.apple.com/ca/app/treasure-heroes/id6771740522?uo=4

      🤩 Hack Features

      - FREE AD REWARDS
      - Currency Max
      - UNIT LIMIT 100
      • 0 replies
    • The Keeper : Idle RPG +3 Cheats
      Mod APK Game Name: The Keeper : Idle RPG
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.rrg.ecliptor.gp

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Unlimited Currencies → Spend/Gain

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download Modded APK







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS 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.
        • Thanks
        • Winner
        • Like
      • 5 replies
    • Aeterna Loop +7 Mods [ Damage & Defence ]
      Mod APK Game Name: Aeterna Loop By Yes Games Corp.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.yesgames.aeternaloop

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - No Skill Cooldown
      -- No Ads
        • Winner
      • 1 reply
    • Legend of Duck Bros: Idle RPG +11 Mods [ Damage & Defence ]
      Mod APK Game Name: Legend of Duck Bros: Idle RPG By Teamsparta Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.TeamSparta.DuckBrothers

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - XP Multiplier
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
      - No Skill Cooldown
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      -- All Tutorials Bypassed
        • Winner
      • 1 reply
    • Aeterna Loop +8 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Aeterna Loop By Yes Games Co., Ltd.
      Bundle ID: com.yesgames.aeternaloop
      App Store Link: https://apps.apple.com/us/app/aeterna-loop/id6756427099?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
      - No Skill Cooldown
      -- No Ads
        • Winner
      • 1 reply
    • The Catapult 2: Castle defense v8.1.0 [ +13 Cheats ] Add Currency
      Modded/Hacked App: The Catapult 2: Castle defense By BYV GAMES EOOD
      Bundle ID: com.byv.TheCatapult2
      App Store Link: https://apps.apple.com/us/app/the-catapult-2-castle-defense/id1449450263?uo=4

      🤩 Hack Features

      - Ads No
      - ViP Active
      - Double XP Active
      - Battle Pass Active
      - Unlock All Map
      - Unlock All Weapons
      - Play Any Level
      - Add Currency
      - Add Ticket
      - Aimbot
      - Aim Power
      - Never Die
      - Max Damage
      - Enemy Can't Attack
      • 1 reply
    • The Catapult 2: Castle defense v8.1.0 [ +13 Jailed ] Add Currency
      Modded/Hacked App: The Catapult 2: Castle defense By BYV GAMES EOOD
      Bundle ID: com.byv.TheCatapult2
      App Store Link: https://apps.apple.com/us/app/the-catapult-2-castle-defense/id1449450263?uo=4

      🤩 Hack Features

      - Ads No
      - ViP Active
      - Double XP Active
      - Battle Pass Active
      - Unlock All Map
      - Unlock All Weapons
      - Play Any Level
      - Add Currency
      - Add Ticket
      - Aimbot
      - Aim Power
      - Never Die
      - Max Damage
      - Enemy Can't Attack
        • Like
      • 3 replies
    • Arcane Breakout +4 Mods [ Damage & Defence ]
      Mod APK Game Name: Arcane Breakout By KEYSTORM HOLDINGS LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.game.arcanebreakout

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      • 1 reply
    • Dream Zone: My Fantasy Episode +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Dream Zone: My Fantasy Episode By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.dreamzone

       

      🤩 Hack Features

      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.
      • 0 replies
    • Love Sparks: Dating Sim +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Love Sparks: Dating Sim By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.lovespark

       

      🤩 Hack Features

      - Unlimited Currencies -> Earn or spend some.
      -- VIP Enabled
      • 0 replies
    • Field Day +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Field Day By BIT ODD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.bitodd.vortex

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
        • Agree
        • Winner
      • 1 reply
×
  • 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