Skip to content
Guest Big Announcement

Featured Replies

Solved by FuroowHD

@Al00X Try this:
 

hook PBGlobalStatistic

-(int)money {
return 99999;
}

-(int)coinsCount {
return 99999;
}

-(BOOL)itemIsBought:(id) {
return TRUE;
}

-(BOOL)buyItemWithPrice:(int)inCoins:(BOOL) {
return TRUE;
}

-(int)money {
return 99999;
}
%end

%hook PBExperienceManager

-(float)experienceForNextLevel {
return 0.1;
}

-(float)experienceForLevel:(unsigned int) {
return 0.1;
}
%end

%hook BMNotepadBaseItemCell

-(BOOL)itemBought {
return TRUE;
}
%end
  • Replies 34
  • Views 6.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Author

 

Try this:

 

 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:4:756: error: redefinition of
      '_logos_orig$_ungrouped$PBGlobalStatistic$money'
  ...SEL); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlo...
                        ^
Tweak.xm:4:14: note: previous definition is here
static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...
             ^
Tweak.xm:19:12: error: redefinition of
      '_logos_method$_ungrouped$PBGlobalStatistic$money'
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
           ^
Tweak.xm:3:12: note: previous definition is here
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
           ^
2 errors generated.
make[2]: *** [obj/Tweak.xm.b45140c6.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [KickTheBuddy2_Hack.all.tweak.variables] Error 2
alis-iPad:/var/mobile/Projects/kickthebuddy2_hack root# make package
/var/mobile/Projects/kickthebuddy2_hack/theos/makefiles/targets/Darwin-arm/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/Projects/kickthebuddy2_hack/theos/makefiles/targets/Darwin-arm/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak KickTheBuddy2_Hack...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:4:778: error: redefinition of
      '_logos_orig$_ungrouped$PBGlobalStatistic$money'
  ...SEL, int); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(...
                             ^
Tweak.xm:4:14: note: previous definition is here
static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...
             ^
Tweak.xm:17:122: error: expected class member or base class name
  ...self, SEL _cmd, int inCoins):(BOOL) {
                                  ^
Tweak.xm:17:122: error: expected '{' or ','
Tweak.xm:17:121: error: only constructors take base initializers
  ...self, SEL _cmd, int inCoins):(BOOL) {
                                 ^
Tweak.xm:18:78: error: too many arguments to function call, expected 3, have 5
_logos_orig$_ungrouped$PBGlobalStatistic$buyItemWithPrice$(self, _cmd, TRUE, 1, TRUE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                   ^~~~~~~
Tweak.xm:21:12: error: redefinition of
      '_logos_method$_ungrouped$PBGlobalStatistic$money'
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
           ^
Tweak.xm:3:12: note: previous definition is here
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
           ^
Tweak.xm:32:115: error: expected class member or base class name
  ...self, SEL _cmd):(unsigned int) {
                     ^
Tweak.xm:32:115: error: expected '{' or ','
Tweak.xm:32:114: error: only constructors take base initializers
  ...self, SEL _cmd):(unsigned int) {
                    ^
Tweak.xm:33:75: error: too many arguments to function call, expected 2, have 4
_logos_orig$_ungrouped$PBExperienceManager$experienceForLevel(self, _cmd, 1, 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~             ^~~~
10 errors generated.

 

@Al00X Try this:

 

hook PBGlobalStatistic

-(int)money {
return 99999;
}

-(int)coinsCount {
return 99999;
}

-(BOOL)itemIsBought:(id) {
return TRUE;
}

-(BOOL)buyItemWithPrice:(int)inCoins:(BOOL) {
return TRUE;
}

-(int)money {
return 99999;
}
%end

%hook PBExperienceManager

-(float)experienceForNextLevel {
return 0.1;
}

-(float)experienceForLevel:(unsigned int) {
return 0.1;
}
%end

%hook BMNotepadBaseItemCell

-(BOOL)itemBought {
return TRUE;
}
%end

Won't Work ;(

 

 

Try this:

 

 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:4:756: error: redefinition of
      '_logos_orig$_ungrouped$PBGlobalStatistic$money'
  ...SEL); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlo...
                        ^
Tweak.xm:4:14: note: previous definition is here
static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...
             ^
Tweak.xm:19:12: error: redefinition of
      '_logos_method$_ungrouped$PBGlobalStatistic$money'
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
           ^
Tweak.xm:3:12: note: previous definition is here
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
           ^
2 errors generated.
make[2]: *** [obj/Tweak.xm.b45140c6.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [KickTheBuddy2_Hack.all.tweak.variables] Error 2
alis-iPad:/var/mobile/Projects/kickthebuddy2_hack root# make package
/var/mobile/Projects/kickthebuddy2_hack/theos/makefiles/targets/Darwin-arm/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/Projects/kickthebuddy2_hack/theos/makefiles/targets/Darwin-arm/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak KickTheBuddy2_Hack...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:4:778: error: redefinition of
      '_logos_orig$_ungrouped$PBGlobalStatistic$money'
  ...SEL, int); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(...
                             ^
Tweak.xm:4:14: note: previous definition is here
static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...
             ^
Tweak.xm:17:122: error: expected class member or base class name
  ...self, SEL _cmd, int inCoins):(BOOL) {
                                  ^
Tweak.xm:17:122: error: expected '{' or ','
Tweak.xm:17:121: error: only constructors take base initializers
  ...self, SEL _cmd, int inCoins):(BOOL) {
                                 ^
Tweak.xm:18:78: error: too many arguments to function call, expected 3, have 5
_logos_orig$_ungrouped$PBGlobalStatistic$buyItemWithPrice$(self, _cmd, TRUE, 1, TRUE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                   ^~~~~~~
Tweak.xm:21:12: error: redefinition of
      '_logos_method$_ungrouped$PBGlobalStatistic$money'
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
           ^
Tweak.xm:3:12: note: previous definition is here
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
           ^
Tweak.xm:32:115: error: expected class member or base class name
  ...self, SEL _cmd):(unsigned int) {
                     ^
Tweak.xm:32:115: error: expected '{' or ','
Tweak.xm:32:114: error: only constructors take base initializers
  ...self, SEL _cmd):(unsigned int) {
                    ^
Tweak.xm:33:75: error: too many arguments to function call, expected 2, have 4
_logos_orig$_ungrouped$PBExperienceManager$experienceForLevel(self, _cmd, 1, 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~             ^~~~
10 errors generated.

 

Looks like an error with your theos. :3 Did you install it correctly?

  • Author

Looks like an error with your theos. :3 Did you install it correctly?

You mean is not correctly Installed ?

  • Author

Extract the SDK using iFile. :3

 

I get the same error too btw -_-

ok

ok

done. and not worked

 

Extract the SDK using iFile. :3

 

I get the same error too btw -_-

done. And not worked

Take a look at this working tweak.xm  for buddyman:

%hook BMMenuItemStars
- (void)setStarsCount:(unsigned int)fp8 animated:(BOOL)fp12 {
fp12=true;
fp8=999999999;
%orig(fp8, fp12);
}
%end

%hook PBSlotsManager
-(unsigned int)getSpinsCount {
return 999999999;
}
%end

%hook PBGlobalStatistic
-(int)coinsCount {
return 999999999;
}
%end

Add your extra stuff but follow the above code.

  • Author

Take a look at this working tweak.xm  for buddyman:

%hook BMMenuItemStars
- (void)setStarsCount:(unsigned int)fp8 animated:(BOOL)fp12 {
fp12=true;
fp8=999999999;
%orig(fp8, fp12);
}
%end

%hook PBSlotsManager
-(unsigned int)getSpinsCount {
return 999999999;
}
%end

%hook PBGlobalStatistic
-(int)coinsCount {
return 999999999;
}
%end

Add your extra stuff but follow the above code.

Dude..... i want to make buddyman 2 

Guest
This topic is now closed to further replies.

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.