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

    • Galaxy Attack: Alien Shooter v5.11.10 [ +30++ Cheats ] Currency Max
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Linked With Battle Pass ]

      - Gold [ Linked With Battle Pass ]

      - Chest [ Linked With Battle Pass ]

      - Monthly Card Normal

      - Monthly Card Super

      - Monthly Card Premium

      - Energy NO Need [ When 0 Play Unlimited ]

      - Evolve Stone

      - Unlimited Ship [ Select Any Ship Before The Battle ]

      - Drone Ticket

      - Terminator Point

      - Tech Point

      - Overload Ball

      - Matrix Max

      - Golden Revive Max

      - Revive Unlimited

      - Campain Revive Cost Gold [ Earn With Gold ]

      - Gems Revive  [Earn With Gems ]

      - Endless Revive Cost Gold [Earn With Gold ]

      - Talent Upgrade Cost  [Earn With Gold ]

      - Battle Pass Premium Active

      - BP Free [ Claim Unlimited ]

      - BP Premium [ Claim Unlimited ]

      - BP Free Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - BP Premium Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - Bullet Max

      - Life Max

      - Damage

      Warning 


      Don"t Abuse The Hack In Case Banned Any Data Lose I'M Not Responsible  

       

      🍏 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/
      • 22 replies
    • Galaxy Attack: Alien Shooter v5.11.10 [ +30++ Jailed ] Currency Max
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?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

      - ADS NO [ Rewards Free ]

      - Gems [ Linked With Battle Pass ]

      - Gold [ Linked With Battle Pass ]

      - Chest [ Linked With Battle Pass ]

      - Monthly Card Normal

      - Monthly Card Super

      - Monthly Card Premium

      - Energy NO Need [ When 0 Play Unlimited ]

      - Evolve Stone

      - Unlimited Ship [ Select Any Ship Before The Battle ]

      - Drone Ticket

      - Terminator Point

      - Tech Point

      - Overload Ball

      - Matrix Max

      - Golden Revive Max

      - Revive Unlimited

      - Campain Revive Cost Gold [ Earn With Gold ]

      - Gems Revive  [Earn With Gems ]

      - Endless Revive Cost Gold [Earn With Gold ]

      - Talent Upgrade Cost  [Earn With Gold ]

      - Battle Pass Premium Active

      - BP Free [ Claim Unlimited ]

      - BP Premium [ Claim Unlimited ]

      - BP Free Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - BP Premium Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - Bullet Max

      - Life Max

      - Damage

      Warning 


      Don"t Abuse The Hack In Case Banned Any Data Lose I'M Not Responsible 


      🍏 Jailbreak 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
      • 25 replies
    • Galaxy Attack Alien Shooter v5.11.10 [ +3 Jailed ] Never Die
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4


      Hack Features:
      - Max Bullet
      - Max Life
      - DMG



      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/
        • Like
      • 32 replies
    • Galaxy Attack Alien Shooter v5.11.10 [ +3 Cheats ] Never Die
      Modded/Hacked App: Galaxy Attack: Alien Shooter By ABIGAMES PTE. LTD
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?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:
      - Max Life 
      - Damage Multi [PvP Use Only Boss ] 
      - Max Bullet



      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/


      iOS Hack Download Link:

      Hidden Content

      Download Hack
      • 190 replies
    • Tropicats: Match 3 Puzzle Game v1.75.411 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Tropicats: Match 3 Puzzle Game By wooga gmbh
      Bundle ID: net.wooga.tropicats-tropical-cats-puzzle-paradise
      iTunes Store Link: https://apps.apple.com/us/app/tropicats-match-3-puzzle-game/id1215220850?uo=4
       

      🤩 Hack Features

      - Diamond

      - Coins

      - Lives

      - Booster

      - LvL

      - Auto Win
      • 0 replies
    • Tropicats: Match 3 Puzzle Game v1.75.411 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Tropicats: Match 3 Puzzle Game By wooga gmbh
      Bundle ID: net.wooga.tropicats-tropical-cats-puzzle-paradise
      iTunes Store Link: https://apps.apple.com/us/app/tropicats-match-3-puzzle-game/id1215220850?uo=4
       

      🤩 Hack Features

      - Diamond

      - Coins

      - Lives

      - Booster

      - LvL

      - Auto Win
      • 0 replies
    • Epic Shaman Battle: 4P Defense v1.2.0 +2 Jailed Cheats [ Damage ]
      Modded/Hacked App: Epic Shaman Battle: 4P Defense By Crater Co., Ltd.
      Bundle ID: com.percent.ios.p4defense
      iTunes Store Link: https://apps.apple.com/us/app/epic-shaman-battle-4p-defense/id6511224754?uo=4

       


      🤩 Hack Features

      - God Mode
      - Damage Multiplier
        • Like
      • 26 replies
    • Epic Shaman Battle: 4P Defense v1.2.0 +2 Cheats [ Damage ]
      Modded/Hacked App: Epic Shaman Battle: 4P Defense By Crater Co., Ltd.
      Bundle ID: com.percent.ios.p4defense
      iTunes Store Link: https://apps.apple.com/us/app/epic-shaman-battle-4p-defense/id6511224754?uo=4

       

       

      🤩 Hack Features

      - God Mode
      - Damage Multiplier
      • 17 replies
    • Blades of Deceron v0.1.6 [+4 Jailed Cheats]
      Modded/Hacked App: Blades of Deceron By Dreamon Studios AB
      Bundle ID: com.DreamonStudios.BladesOfDeceron
      iTunes Store Link: https://apps.apple.com/us/app/blades-of-deceron/id6739307553?uo=4



      🤩 Hack Features

      - Unlimited Stat Point (Gain Xp)
      - God Mode / Never Die
      - Infinite Stamina
      - Infinite Gold (Enable and Win Fight)
      • 7 replies
    • Blades of Deceron v0.1.6 [+4 Cheats]
      Modded/Hacked App: Blades of Deceron By Dreamon Studios AB
      Bundle ID: com.DreamonStudios.BladesOfDeceron
      iTunes Store Link: https://apps.apple.com/us/app/blades-of-deceron/id6739307553?uo=4


      🤩 Hack Features

      - Unlimited Stat Point (Gain Xp)
      - God Mode / Never Die
      - Infinite Stamina
      - Infinite Gold (Enable and Win Fight)
      • 3 replies
    • LEGO® DUPLO® Peppa Pig v6.1.0 +1 Jailed Cheat [ Unlocked ]
      Modded/Hacked App: LEGO® DUPLO® Peppa Pig By StoryToys Limited
      Bundle ID: com.storytoys.lego.duplo.peppa.pig.ios
      iTunes Store Link: https://apps.apple.com/us/app/lego-duplo-peppa-pig/id6474300843?uo=4

       


      🤩 Hack Features

      - Everything Unlocked
      • 0 replies
    • LEGO® DUPLO® Peppa Pig v6.1.0 +1 Cheat [ Unlocked ]
      Modded/Hacked App: LEGO® DUPLO® Peppa Pig By StoryToys Limited
      Bundle ID: com.storytoys.lego.duplo.peppa.pig.ios
      iTunes Store Link: https://apps.apple.com/us/app/lego-duplo-peppa-pig/id6474300843?uo=4

       
       

      🤩 Hack Features

      - Everything Unlocked
      • 0 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