Jump to content

tweak help


Go to solution Solved by Amuyea,

12 posts in this topic

Recommended Posts

Posted

so i need someone to take a look at my tweak to see if everything looks good :)

the only concern i have is transactionWithEnergy and Energy at the bottom

#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

%hook Transaction
-(void)setCoins:(long long) arg1 {
arg1 = 1000;
}
%end

%PGAchievementChain
-(int)costToExtend arg1 {
arg1 = 1;
}
%end

%PGAchievementChain
-(void)SetCostToExtend:(int) arg1 {
arg1 = 1;
}
%end

%Transaction
+(id)transactionWithEnergy:(long long) arg2{
return = (null);
arg1 = 0;
}
%end

%Transaction
-(long long) energy fp8 {
fp8 = 100;
}
%orig(fp8);
%end

 

  • Solution
Posted
#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

%hook Transaction
-(void)setCoins:(long long) arg1 {
arg1 = 1000;
}
%end

%PGAchievementChain
-(int)costToExtend {
return 1;
}
%end

%PGAchievementChain
-(void)SetCostToExtend:(int) arg1 {
arg1 = 1;
}
%end

%Transaction
+(id)transactionWithEnergy:(long long) arg2{
return nil;
arg1 = 0;
}
%end

%Transaction
-(long long)energy {
return 100;
}
%end

Are you sure that you typed these (functions) right?

Posted
1 minute ago, Amuyea said:

#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

%hook Transaction
-(void)setCoins:(long long) arg1 {
arg1 = 1000;
}
%end

%PGAchievementChain
-(int)costToExtend {
return 1;
}
%end

%PGAchievementChain
-(void)SetCostToExtend:(int) arg1 {
arg1 = 1;
}
%end

%Transaction
+(id)transactionWithEnergy:(long long) arg2{
return nil;
arg1 = 0;
}
%end

%Transaction
-(long long)energy {
return 100;
}
%end

thanks & how would i do if i wanted to add them to a key? for example: key1 is for Coins, key2 is for Cost to expand and key3 is for No energy drained? 

Posted
2 minutes ago, Frank Sinatra said:

thanks & how would i do if i wanted to add them to a key? for example: key1 is for Coins, key2 is for Cost to expand and key3 is for No energy drained? 

There are examples in tutorial :)

Posted
34 minutes ago, Frank Sinatra said:

okay will look, thanks for your help! <3 

Feel free to post if unsure so that I or other can help

Posted
3 minutes ago, Amuyea said:

Feel free to post if unsure so that I or other can help

hmm, so i found this TuT and i used option 1 and now i got this error

 

G-Eazy-Jr:/var/mobile/holiday root# make package
Making all for tweak Holiday...
 Preprocessing Tweak.xm...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
 Compiling Tweak.xm...
Tweak.xm:6:1: error: unknown type name 'Inline'; did
      you mean 'inline'?
Inline bool GetPrefBool(NSString *key)
^~~~~~
inline
Tweak.xm:9:1: error: use of undeclared identifier
      'Return'
Return [[[NSDictionary dictionaryWithContents...
^
Tweak.xm:9:65: error: instance method '-ValueForKey:'
      not found (return type defaults to 'id'); did
      you mean '-valueForKey:'?
      [-Werror,-Wobjc-method-access]
  ...dictionaryWithContentsOfFile:PLIST_PATH] Valu...
                                              ^
/var/mobile/holiday/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h:12:12: note: 
      receiver is instance of class declared here
@interface NSDictionary : NSObject <NSCopying...
           ^
Tweak.xm:9:9: error: missing '[' at start of message
      send expression
Return [[[NSDictionary dictionaryWithContents...
        ^
        [
Tweak.xm:9:92: error: expected ']'
  ...ValueForKey:key] boolValue];
                                ^
Tweak.xm:9:8: note: to match this '['
Return [[[NSDictionary dictionaryWithContents...
       ^
Tweak.xm:17:56: error: redefinition of 'Transaction'
      as different kind of symbol
  ...@class SurvivorAppDelegate; @class Transaction; 
                                 ^
/var/mobile/holiday/theos/include/QuartzCore/QuartzCore-Structs.h:138:3: note: 
      previous definition is here
} Transaction;
  ^
Tweak.xm:29:1: error: use of undeclared identifier
      'arg1'; did you mean 'arg2'?
arg1 = 0;
^~~~
arg2
Tweak.xm:25:108: note: 'arg2' declared here
  ...self, SEL _cmd, long long arg2) {
                               ^
7 errors generated.
make[2]: *** [obj/Tweak.xm.5a107aa2.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Holiday.all.tweak.variables] Error 2
G-Eazy-Jr:/var/mobile/holiday root# 

this is my tweak:

#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>
#define PLIST_PATH @"/var/mobile/holiday/Holiday/Resources/Holiday.plist"

Inline bool GetPrefBool(NSString *key)

{
Return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] ValueForKey:key] boolValue];

}



%hook Transaction


-(void)setCoins:(long long) arg1 {
if(GetPrefBool(@"key1")) {
arg1 = 1000;
}
return %orig;
}

+(id)transactionWithEnergy:(long long) arg2 {
if(GetPrefBool(@"key2")) {

return nil;
arg1 = 0;
}
return %orig;
}


-(long long)energy {
if(GetPrefBool(@"key2")) {
return 100;
}
return %orig;
}
%end

%hook PGAchievementChain
-(int)costToExtend {
if(GetPrefBool(@"key3")) {
return 1;
}
return %orig;
}


-(void)SetCostToExtend:(int) arg1 {
if(GetPrefBool(@"key3")) {
arg1 = 1;
}
return %orig;
}
%end


%hook SurvivorAppDelegate

-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hacked By Frank Sinatra"
message:@"Visit iOSGods for more cheats & hacks" delegate:nil cancelButtonTitle:@"Thanks "
otherButtonTitles:nil];
[alert show];
[alert release];
return %orig;
}

%end

 

Posted

i've fixed those where i needed lowercase letters but the other problems i dont understand how i should fix them :(

Posted
+(id)transactionWithEnergy:(long long) arg1 {
if(GetPrefBool(@"key2")) {

return nil;
arg1 = 0;
}
return %orig;
}
Posted (edited)
18 minutes ago, Frank Sinatra said:

i've fixed those where i needed lowercase letters but the other problems i dont understand how i should fix them :(

your +(id)transactionWithEnergy:(long long) declares an arg2 yet you return an arg1 value.. change the arg2 to arg1 that'll fix one error.

Edit: @Amuyea lol i typed too slow u beat me by less then a minute lol.

Updated by i0s_tweak3r

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Eternium Cheats v1.37.7 +11
      Modded/Hacked App: Eternium By Making Fun, Inc.
      Bundle ID: com.makingfun.mageandminions
      iTunes Store Link: https://apps.apple.com/us/app/eternium/id579931356?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

      - 5K Gems When Completed Stage
      - Infinite Gold
      - Infinite Cosmetic
      - Infinite Yellow Stone
      - Multiply Attack (Linked with Enemy)
      - No Skills Cooldown
      - No Consumable Cooldown
      - Multiply Attack Speed
      - Instant Regen Health
      - Always Crit
      - Material Drops (When you killed an Enemy it will drop materials for crafts)



      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194526-eternium-cheats-v13355-6/
      • 75 replies
    • Candy Crush Saga v1.304.1 Jailed Cheats +3
      Modded/Hacked App: Candy Crush Saga By King.com Limited
      Bundle ID: com.midasplayer.apps.candycrushsaga
      iTunes Store Link: https://apps.apple.com/us/app/candy-crush-saga/id553834731?uo=4


      Hack Features:
      - Infinite Life
      - Infinite Booster
      - Infinite Move


      Jailbreak required hack(s): https://iosgods.com/topic/190447-candy-crush-saga-cheats-v12941-3/


      iOS Hack Download IPA Link: https://iosgods.com/topic/190448-candy-crush-saga-v12941-jailed-cheats-3/
      • 96 replies
    • [ JP / Global/ KR] Puzzle & Dragons Cheats v22.3.0 +3
      Modded/Hacked App: Puzzle & Dragons (English) by GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK
      - Frozen Enemies


      iOS Hack Download Link: https://iosgods.com/topic/133984-puzzle-dragons-jp-english-cheats-all-versions-3/
      • 454 replies
    • DomiNation Asia By NEXON Company v12.1480.1481 - [ Currencies Freeze & More ]
      Modded/Hacked App: ドミネーションズ -文明創造- (DomiNations) By NEXON Company
      Bundle ID: com.nexon.dominations.asia
      iTunes Store Link: https://itunes.apple.com/jp/app/ドミネーションズ-文明創造-dominations/id1012778321


      Hack Features:
      - Unlimited Crowns/Food/Oil/Gold -> Resources will add instead of subtracting. Works with Crowns. Read note inside the feature for more information! This does not work for speeding up buildings.
      - All Achievements Unlocked 
      - Freeze Crowns/Food/Oil/Gold -> Freezes Resources so they do not decrease when used! This does not work for speeding up buildings.
      - No Citizen Cost 
      - 0 Cost to Speed Up Training Troops
      - 0 Cost to Speed Up Tactics
      - 0 Food Cost to Train Troops
      - 0 Food Cost to Upgrade Troops
      - No Timer to Upgrade Troops
      - 0 Food Cost to Train Spells
      - 0 General Train Cost
      - No General Train CoolDown
      - 0 Food Cost to Build Wonder
      - 0 Food Cost to Research Troops
      - 0 Food Cost to Upgrade Tactics
      - No Timer to Library Research
      - No Timer to Upgrade Spells
      - 0 Cost to Upgrade Buildings
      - 0 Workers Required to Upgrade
      - 0 Crown Cost For Peace

      This hack works on the latest x64 or ARM64 & ARM64e iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, 11, 11 Pro, 11 Pro Max, 12, 12 Pro, 12 Pro Max, 12 Mini, 13, 13 Pro, 13 Pro Max, 13 Mini, 14, 14 Plus, 14 Pro, 14 Pro Max, SE, iPod Touch 6G, 7G, iPad Air, Air 2, iPad Pro & iPad Mini 2, 3, 4, 5, 6 and later.


      Global hack(s): https://iosgods.com/topic/50401-ultrahack-dominations-v6660661-40-cheats-iosgods-exclusive/?tab=comments#comment-1582742
      • 1,100 replies
    • DomiNations v12.1480.1481 +40++ Cheats [ Exclusive ]
      Modded/Hacked App: DomiNations by NEXON M Inc.
      Bundle ID: com.nexonm.dominations
      iTunes Store Link: https://itunes.apple.com/us/app/dominations/id922558758


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Crowns/Food/Oil/Gold -> Resources will add instead of subtracting. Works with Crowns. Read note inside the feature for more information! This does not work for speeding up buildings.
      - All Achievements Unlocked
      - Freeze Crowns/Food/Oil/Gold -> Freezes Resources so they do not decrease when used! This does not work for speeding up buildings.
      - No Citizens Cost
      - Place Multiple of Same Building
      - 0 Cost to Speed Up Training Troops
      - 0 Cost to Speed Up Tactics
      - 0 Food Cost to Train Troops
      - 0 Food Cost to Upgrade Troops
      - No Timer to Upgrade Troops
      - 0 Food Cost to Train Spells
      - 0 General Train Cost
      - No General Train Cooldown
      - 0 Food Cost to Build Wonder
      - 0 Food Cost to Research Troops
      - 0 Food Cost to Upgrade Tactics
      - No Timer to Library Research
      - No Timer to Upgrade Spells
      - 0 Cost to Upgrade Buildings
      - 0 Workers Required to Upgrade
      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app.
      • 4,984 replies
    • Monster Legends: Collect all Cheats v17.9.5 +8
      Modded/Hacked App: Monster Legends: Merge RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-merge-rpg/id653508448?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - 1 Hit Kill
      - Skip Enemy Turn
      - Multiply Attack
      - Multiply Defense
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win
      - Auto Play Battle Enabled for All Maps


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/topic/140543-monster-legends-collect-all-v1778-5-cheats-for-jailed-idevices/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-cheats-v1779-8/
      • 337 replies
    • Simply Piano: Learn Piano Fast Modded v9.10.14 +1
      Modded/Hacked App: Simply Piano: Learn Piano Fast By Simply Ltd
      Bundle ID: com.joytunes.asla
      iTunes Store Link: https://apps.apple.com/us/app/simply-piano-learn-piano-fast/id1019442026?uo=4


      Hack Features:
      - PREMIUM
       

      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/68652-simply-piano-v975-jailed-mod-1/


      Hack Download Link: https://iosgods.com/topic/83369-simply-piano-learn-piano-fast-modded-all-versions-1/
      • 1,540 replies
    • [ Chiikawa Pocket JP ] ちいかわぽけっと v1.2.0 Jailed Cheats +3
      Modded/Hacked App: ちいかわぽけっと By Applibot Inc.
      Bundle ID: jp.co.applibot.chiikawapocket
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%81%A1%E3%81%84%E3%81%8B%E3%82%8F%E3%81%BD%E3%81%91%E3%81%A3%E3%81%A8/id6596745408?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

      - God Mode
      - Multiply Attack
      - Custom Speed (Customize before Login or Clear stage to get apply)

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/194281-chiikawa-pocket-jp-%E3%81%A1%E3%81%84%E3%81%8B%E3%82%8F%E3%81%BD%E3%81%91%E3%81%A3%E3%81%A8-v1111-jailed-cheats-3/
      • 23 replies
    • Chiikawa Pocket Cheats v1.2.0 +3
      Modded/Hacked App: Chiikawa Pocket By Applibot Inc.
      Bundle ID: jp.co.applibot.chiikawapocketgl
      iTunes Store Link: https://apps.apple.com/us/app/chiikawa-pocket/id6740838442?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

      - God Mode
      - Multiply Attack

       

      Non-Jailbroken Hack: https://iosgods.com/topic/193718-chiikawa-pocket-v111-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/193717-chiikawa-pocket-cheats-v111-2/
      • 39 replies
    • Loot Heroes v1.6.2 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - Unlimited Currencies [ VIP ]
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - Auto Win [ VIP ]
      - Battle Pass Unlocked [ VIP ]


      Jailbreak required hack(s): [Mod Menu Hack] Loot Heroes v1.1.5 +8 Cheats [ Unlimited Currencies + More ] - 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/
      • 104 replies
    • Loot Heroes v1.6.3 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - Unlimited Currencies [ VIP ]
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - Auto Win [ VIP ]
      - Battle Pass Unlocked [ VIP ]


      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/
      • 244 replies
    • The Seven Deadly Sins Cheats v2.79.0 +5
      Modded/Hacked App: The Seven Deadly Sins by Netmarble Corporation
      Bundle ID: com.netmarble.nanagb
      iTunes Store Link: https://apps.apple.com/us/app/the-seven-deadly-sins/id1475440231?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK
      - Infinite MP


      iOS Hack Download Link: https://iosgods.com/topic/131686-arm64-the-seven-deadly-sins-cheats-v117-3/
        • Thanks
      • 2,045 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