Jump to content
  • 0

 Help/Support tweak help


Bandit33800

12 posts in this topic

Question

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

 

084 104 101 121 032 099 097 108 108 032 109 101 032 084 104 101 032 089 111 117 110 103 032 083 119 101 100 101 032

                                              At443aN.png Credit @@Joka

Link to comment
Share on other sites

Recommended Posts

#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?

aSB2uQS.gif

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

1 minute ago, i0s_tweak3r said:

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

 

2 minutes ago, Amuyea said:
+(id)transactionWithEnergy:(long long) arg1 {
if(GetPrefBool(@"key2")) {

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

okay, changed that but now im getting a problem that i got before and i made a post about it but never figured it out 

 

084 104 101 121 032 099 097 108 108 032 109 101 032 084 104 101 032 089 111 117 110 103 032 083 119 101 100 101 032

                                              At443aN.png Credit @@Joka

Link to comment
Share on other sites

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? 

084 104 101 121 032 099 097 108 108 032 109 101 032 084 104 101 032 089 111 117 110 103 032 083 119 101 100 101 032

                                              At443aN.png Credit @@Joka

Link to comment
Share on other sites

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 :)

aSB2uQS.gif

Link to comment
Share on other sites

okay will look, thanks for your help! <3 

084 104 101 121 032 099 097 108 108 032 109 101 032 084 104 101 032 089 111 117 110 103 032 083 119 101 100 101 032

                                              At443aN.png Credit @@Joka

Link to comment
Share on other sites

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

 

084 104 101 121 032 099 097 108 108 032 109 101 032 084 104 101 032 089 111 117 110 103 032 083 119 101 100 101 032

                                              At443aN.png Credit @@Joka

Link to comment
Share on other sites

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

084 104 101 121 032 099 097 108 108 032 109 101 032 084 104 101 032 089 111 117 110 103 032 083 119 101 100 101 032

                                              At443aN.png Credit @@Joka

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Cookie Run: Kingdom v2.6.201 +2 [Dmg, Def]
      Modded/Hacked App: Cookie Run: Kingdom By Devsisters Corp.
      Bundle ID: com.devsisters.ck
      iTunes Store Link: https://apps.apple.com/us/app/cookie-run-kingdom/id1509450845?uo=4


      Hack Features:
      - 5x Damage unlinked
      - 5x Defense unlinked
       


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 826 replies
    • Robot Tactics X -Strategy JRPG v1.2.2.2122 +2 Cheats
      Modded/Hacked App: Robot Tactics X -Strategy JRPG By Game Hollywood Hong Kong Limited
      Bundle ID: com.gamehollywood.rtx
      iTunes Store Link: https://apps.apple.com/us/app/robot-tactics-x-strategy-jrpg/id1563353844?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - x dmg
      - x def


      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







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above.
      STEP 2: Copy the file over to your iDevice using any of the file managers mentioned above or skip this step if you're downloading from your iDevice.
      STEP 3: Using Filza or iFile, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will need to press on 'Install' or 'Installer' from the options on your screen.
      STEP 5: Let Filza / iFile finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: If the hack is a Mod Menu, which is usually the case nowadays, the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 7: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Winner
      • 7 replies
    • HAWK: Airplane Space games Cheats v37.2 +3
      Modded/Hacked App: HAWK: Airplane Fighter jet sky By My.com B.V.
      Bundle ID: com.my.hawk.air.shooter
      iTunes Store Link: https://apps.apple.com/us/app/hawk-airplane-fighter-jet-sky/id1145878423?uo=4


      Hack Features:
      - God Mode
      - OHK
      - Instant Win


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/89813-arm64-hawk-bullet-hell-jet-shooter-v33-jailed-cheats-1/


      Hack Download Link: https://iosgods.com/topic/142184-hawk-airplane-fighter-jet-sky-cheats-v33-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 911 replies
    • ZIO and the Magic Scrolls Cheats v1.1.0 +5
      Modded/Hacked App: ZIO and the Magic Scrolls By SuperPlanet corp.
      Bundle ID: com.superplanet.zio
      iTunes Store Link: https://apps.apple.com/us/app/zio-and-the-magic-scrolls/id1534988573?uo=4


      Hack Features:
      - Multiply Damage
      - Multiply Defense
      - Auto Win
      - Infinite MP
      - Dumb AI


      iOS Hack Download Link: https://iosgods.com/topic/153684-zio-and-the-magic-scrolls-cheats-v1012-5/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 133 replies
    • Sword Master Story Cheats v4.2.336 +3
      Modded/Hacked App: Sword Master Story By SuperPlanet corp.
      Bundle ID: com.superplanet.swordmaster
      iTunes Store Link: https://apps.apple.com/us/app/sword-master-story/id1521447065?uo=4


      Hack Features:
      - Custom Player Stats
      - Weak Enemies
      - One Hit Kill
      - & More

      Press & Hold to read feature description


      iOS Hack Download Link: https://iosgods.com/topic/146819-sword-master-story-cheats-v42294-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 451 replies
    • Archero v3.7.0 Jailed Cheats +2 [ Frozen Enemies ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4


      Hack Features:
      - Frozen Enemies
      - OHK


      Jailbreak required hack(s): https://iosgods.com/topic/96783-arm64-archero-cheats-v223-5/


      iOS Hack Download Link: https://iosgods.com/topic/100710-arm64-archero-v223-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 6,100 replies
    • Archero Cheats v3.7.0 +5 [ God Mode & More ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4



      Hack Features:
      - Multiply Defense to
      - Multiply Damage to
      - God Mode
      - OHK (Must use with God Mode)
      - Freeze Enemies

      NOTE: If you want to use god mode and ohk turn off multiply damage and defense first. I added multiply damage and defense there to avoid ban


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/100710-archero-v210-enemies-dont-attack-x30-attack/


      Hack Download Link: https://iosgods.com/topic/96783-arm64-archero-cheats-v220-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 14,613 replies
    • Garena Liên Quân Mobile / Garena RoV / Garena 傳說對決 Cheats (All Versions) +2
      Modded/Hacked App: Garena Liên Quân Mobile by Garena Mobile Private Limited
      Bundle ID: com.garena.game.kgvn
      iTunes Store Link: https://apps.apple.com/vn/app/garena-li%C3%AAn-qu%C3%A2n-mobile/id1150288115?uo=4&at=1010lce4


      Hack Features:
      - Map Hacks


      iOS Hack Download Link: https://iosgods.com/topic/130903-arm64-garena-li%C3%AAn-qu%C3%A2n-mobile-cheats-v13518-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,764 replies
    • Monopoly Tycoon Cheats (All Versions) +1
      Modded/Hacked App: Monopoly Tycoon By Nvizzio Creations Inc
      Bundle ID: com.nvizziocreations.mayfair
      iTunes Store Link: https://apps.apple.com/us/app/monopoly-tycoon/id1486225508?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/154295-monopoly-tycoon-v0153-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/154293-monopoly-tycoon-cheats-all-versions-1/
        • Agree
        • Thanks
        • Winner
        • Like
      • 19 replies
    • PunBall Cheats v1.5.0 +2
      Modded/Hacked App: PunBall By HABBY PTE. LTD.
      Bundle ID: com.habby.punball
      iTunes Store Link: https://apps.apple.com/us/app/punball/id1585781366?uo=4


      Hack Features:
      - Dumb Enemies
      - One Hit Kill


      iOS Hack Download Link: https://iosgods.com/topic/151406-punball-cheats-v100-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 218 replies
    • 我也是大俠(Kung fu Supreme) Cheats v2.6.1 +1
      Modded/Hacked App: 我也是大俠(Kung fu Supreme) By MUJOY PTE. LTD.
      Bundle ID: com.ledu.m.wysdx.tw
      iTunes Store Link: https://apps.apple.com/vn/app/%E6%88%91%E4%B9%9F%E6%98%AF%E5%A4%A7%E4%BF%A0-kung-fu-supreme/id1518000601?uo=4


      Hack Features:
      - Freeze Coin (Do not abuse and upgrade too fast and too much)

      Change language from iOS Settings


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/147020-%E6%88%91%E4%B9%9F%E6%98%AF%E5%A4%A7%E4%BF%A0kung-fu-supreme-v193-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/147017-%E6%88%91%E4%B9%9F%E6%98%AF%E5%A4%A7%E4%BF%A0kung-fu-supreme-cheats-v193-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 166 replies
    • SUPERSTAR SMTOWN Cheats v3.1.9 +2
      Modded/Hacked App: SUPERSTAR SMTOWN By DalcomSoft Japan, Inc.
      Bundle ID: jp.co.ponos.superstarsmtown
      iTunes Store Link: https://apps.apple.com/jp/app/superstar-smtown/id1216136006?uo=4


      Hack Features:
      - Auto Dance
      - Never Lose Combo


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/154291-superstar-smtown-v319-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/154289-superstar-smtown-cheats-v319-2/
        • Like
      • 4 replies
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
  • 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 possible user experience without cookies. You can accept or decline our non-essential cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines