Jump to content

Profq

Senior Member
  • Posts

    319
  • Joined

  • Last visited

Everything posted by Profq

  1. 16.5h on csgo, im in shock
  2. any ideas how i can make it so it doesn't conflict?
  3. Cant i hook "Transaction"?
  4. fixed it
  5. 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
  6. i've fixed those where i needed lowercase letters but the other problems i dont understand how i should fix them
  7. 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
  8. okay lets give this a try
  9. okay will look, thanks for your help!
  10. 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?
  11. 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
  12. Good Job Edit: @ZahirSher seems like its only visible, not working as it should, sorry
  13. Working on a Jailbroken version for this
  14. Good Job
  15. the usual, can send pm
  16. the cheat only works for 10.2 sorry
×
  • 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