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

    • Ape Rampage v1.1 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Ape Rampage By Vritank Yadav
      Bundle ID: com.hyperpixelgames.apeevolution
      App Store Link: https://apps.apple.com/ca/app/ape-rampage/id6748993588?uo=4

      🤩 Hack Features

      - Unlimited Currency / Earn
      - Unlimited Resources / Earn
      • 0 replies
    • Ape Rampage v1.1 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Ape Rampage By Vritank Yadav
      Bundle ID: com.hyperpixelgames.apeevolution
      App Store Link: https://apps.apple.com/ca/app/ape-rampage/id6748993588?uo=4

      🤩 Hack Features

      - Unlimited Currency / Earn
      - Unlimited Resources / Earn
      • 0 replies
    • MU: Pocket Knights v1.4.8 +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: MU: Pocket Knights By WEBZEN INC.
      Bundle ID: com.webzen.muidle.ios
      App Store Link: https://apps.apple.com/ph/app/mu-pocket-knights/id6742208743?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      • 39 replies
    • MU: Pocket Knights v1.4.8 +3 Cheats [ Damage + More ]
      Modded/Hacked App: MU: Pocket Knights By WEBZEN INC.
      Bundle ID: com.webzen.muidle.ios
      App Store Link: https://apps.apple.com/ph/app/mu-pocket-knights/id6742208743?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      • 17 replies
    • Good Coffee, Great Coffee v1.5.3 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       


      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
      • 114 replies
    • Good Coffee, Great Coffee v1.5.3 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
      • 81 replies
    • Disney Emoji Blitz Game v72.0.0 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Disney Emoji Blitz Game By Jam City, Inc.
      Bundle ID: com.disney.emojimatch
      iTunes Store Link: https://apps.apple.com/us/app/disney-emoji-blitz-game/id1017551780
       

      Hack Features:
      - Unlimited Currencies -> Earn some.


      Jailbreak required hack(s): https://iosgods.com/topic/168886-disney-emoji-blitz-game-all-versions-1-cheats-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Haha
      • 206 replies
    • Big Brother - The Game v2.2.3 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Big Brother - The Game By Fusebox Games
      Bundle ID: com.fuseboxgames.bigbrother
      iTunes Store Link:https://apps.apple.com/au/app/big-brother-the-game/id6740625561

       
       

      🤩 Hack Features

      - Unlimited Gems -> Earn or spend some.
      - Unlimited Tickets -> Earn or spend some.
      • 13 replies
    • Big Brother - The Game v2.2.3 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Big Brother - The Game By Fusebox Games
      Bundle ID: com.fuseboxgames.bigbrother
      iTunes Store Link:https://apps.apple.com/au/app/big-brother-the-game/id6740625561

       


      🤩 Hack Features

      - Unlimited Gems -> Earn or spend some.
      - Unlimited Tickets -> Earn or spend some.
      • 37 replies
    • Disney Emoji Blitz Game v72.0.0 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Disney Emoji Blitz Game By Jam City, Inc.
      Bundle ID: com.disney.emojimatch
      iTunes Store Link: https://apps.apple.com/us/app/disney-emoji-blitz-game/id1017551780
       

      Hack Features:
      - Unlimited Currencies -> Earn some.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/168888-disney-emoji-blitz-game-v5320-1-jailed-cheat-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 65 replies
    • Angry Birds Rush v1.24.0 +2++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Angry Birds Rush By Dark Matter Oy
      Bundle ID: com.darkmatter.abfam
      App Store Link: https://apps.apple.com/us/app/angry-birds-rush/id6748947745?uo=4

       
       

      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Freeze Currencies
      • 1 reply
    • Angry Birds Rush v1.24.0 +2++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Angry Birds Rush By Dark Matter Oy
      Bundle ID: com.darkmatter.abfam
      App Store Link: https://apps.apple.com/us/app/angry-birds-rush/id6748947745?uo=4

       
       

      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Freeze Currencies
      • 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