Jump to content

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 (edited)
%hook classnamehere
-(void)setNoVulnerable:(bool)arg1 {
    if(GetPrefBool(@"key1")) {
        arg1 = TRUE;
    }
        return %orig;  
    }
%end
	
Updated by Amuyea
Posted (edited)
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

Updated by Red16
Posted (edited)
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

Updated by Amuyea
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Heroes vs. Hordes: Survivor v3.6.0 [ +11 Cheats ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       
      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO

       
      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/
      • 47 replies
    • Heroes vs. Hordes: Survivor v3.6.0 [ +11 Jailed ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       

       

      Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 61 replies
    • Spin Break: Roulette Battle v1.4.0 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Spin Break: Roulette Battle By Fifty-one percent Corp.
      Bundle ID: com.FiftyOnePercent.SpinBreak
      iTunes Store Link: https://apps.apple.com/us/app/spin-break-roulette-battle/id6462842820?uo=4

      Hack Features:

      - Currency Max

      - Energy Max

      - LvL Rewards Gold

      - Hero Status [ HP DMG DEF Luck Gold ]

      - Enemy Status [ ATK HP DEF 0 ]

       
      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/
      • 24 replies
    • Spin Break: Roulette Battle v1.4.0 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Spin Break: Roulette Battle By Fifty-one percent Corp.
      Bundle ID: com.FiftyOnePercent.SpinBreak
      iTunes Store Link: https://apps.apple.com/us/app/spin-break-roulette-battle/id6462842820?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.


      Hack Features:

      - Currency Max

      - Energy Max

      - LvL Rewards Gold

      - Hero Status [ HP DMG DEF Luck Gold ]

      - Enemy Status [ ATK HP DEF 0 ]


      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/
      • 17 replies
    • Match Dreams: Puzzle Adventure v0.7.645 [ +2 Jailed ] Auto Win
      Modded/Hacked App: Match Dreams: Puzzle Adventure By Clever Duck LTD
      Bundle ID: com.cleverduck.travelduck
      iTunes Store Link: https://apps.apple.com/us/app/match-dreams-puzzle-adventure/id6446136627?uo=4
       

      Hack Features

      - Coins [ Win LvL After Close Game Then Work ]
      - Auto Win




      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 9 replies
    • Match Dreams: Puzzle Adventure v0.7.645 [ +2 Cheats ] Auto Win
      Modded/Hacked App: Match Dreams: Puzzle Adventure By Clever Duck LTD
      Bundle ID: com.cleverduck.travelduck
      iTunes Store Link: https://apps.apple.com/us/app/match-dreams-puzzle-adventure/id6446136627?uo=4
       

      Hack Features

      - Coins [ Win LvL After Close Game 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/
      • 9 replies
    • DEAD TARGET: FPS Zombie Games v6.149.0 [ +10 Cheats ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 12 replies
    • DEAD TARGET: FPS Zombie Games v6.149.0 [ +10 Jailed ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 20 replies
    • Domino Dreams™ v1.40.1 [ +10 Cheats ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4



      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]

      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task

      - Ticket Free Max [ Linked With Stars ] LvL Cost

      - Undo Max [ Linked With Stars ] 

      - Gold Card Max [ Linked With Stars ] 

      - Chapter Next [ Play LvL Quit & Win ]

      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]

      - Auto Win LvL [ Play LvL Move Anything ] 

      - Bonus Mod LvL [ ON-OFF ] 

      - Spin Free [ Need One Point only Open Play LvL ]
      • 4 replies
    • Domino Dreams™ v1.40.1 [ +10 Jailed ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4


      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]
      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task
      - Ticket Free Max [ Linked With Stars ] LvL Cost
      - Undo Max [ Linked With Stars ] 
      - Gold Card Max [ Linked With Stars ] 
      - Chapter Next [ Play LvL Quit & Win ]
      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]
      - Auto Win LvL [ Play LvL Move Anything ] 
      - Bonus Mod LvL [ ON-OFF ] 
      - Spin Free [ Need One Point only Open Play LvL ]
      • 3 replies
    • Backpacker™ Go! v1.4.4 [ +3 Cheats ] Dice Unlimited
      Modded/Hacked App: Backpacker™ Go! By Qiiwi Games AB
      Bundle ID: com.qiiwi.backpackergo
      iTunes Store Link: https://apps.apple.com/us/app/backpacker-go/id6478389736?uo=4


      Hack Features:
      - ADS NO [ Between Playing ] 
      - Cash Unlimited [ This Hack Linked Other Items - Ticket Exp Etc. Use Only Cash ] Use Another Items Maybe Game Freeze But Works  
      - Dice Unlimited



      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/
      • 17 replies
    • Backpacker™ Go! v1.4.4 [ +3 Jailed ] Dice Unlimited
      Modded/Hacked App: Backpacker™ Go! By Qiiwi Games AB
      Bundle ID: com.qiiwi.backpackergo
      iTunes Store Link: https://apps.apple.com/us/app/backpacker-go/id6478389736?uo=4



      Hack Features:
      - ADS NO [ Between Playing ] 
      - Cash Unlimited [ This Hack Linked Other Items - Ticket Exp Etc. Use Only Cash ] Use Another Items Maybe Game Freeze But Works  
      - Dice Unlimited 


      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/
      • 19 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