Jump to content

8 posts in this topic

Recommended Posts

Posted (edited)

I've had this problem for a while now, hopefully someone can fix it.

I need to return the original action of argument 1.

Is it just this I need to add?..

%orig (arg1, %orig)

Here's my tweak.xm

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

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg2, 5);
}
%end
  
%hook AppDelegate

-(bool) application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"Important! Before Use!“ 
						  message:@“Please consider Liking Before using this make sure you stick to 1 active promotion per Google account at one time for it not to get blocked. Watch 1 video to get 100 views on your video, if it ever gets blocked more than once use another Google account then paste the video URL code. Enjoy your free unlimited Views and Likes! Support me by checking out my YouTube Channel youtube.com/AUSSIEG4M3R"
						 delegate:self 
										cancelButtonTitle:@"Thanks AUSSIE G4M3R!" 
										otherButtonTitles:@"Visit iOSGods.com!", nil]; 
[igcredits show];
[igcredits release]; 
return %orig();
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
	if([button isEqualToString:@"Visit iOSGods.com!"])
	{
		[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com/profile/284321-thearmprincess/"]];										
	}
}
%end

 

Updated by TheArmPrincess
Posted
%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg1, 5); <----> Now it returns arg1 as what it is normally & returns argument 2 as 5, if you dont want to change both, change 5 to arg2
}
%end

 

Posted (edited)

@Ted2 But it's already

%orig (arg2, 5)

So if I want to not change arg 1 but only set arg 2 to 5 would I do both?

%orig (arg1)
%orig (arg2, 5)

Or something?

Because what is happening is it is conflicting with the other, basically arg 1 is becoming the original value of arg 2 for some reason. I want to fix arg 1 from being affected by setting it to its original value.

Updated by TheArmPrincess
Posted
Just now, TheArmPrincess said:

@Ted2 But it's already


%orig (arg2, 5)

So if I want to not change arg 1 but only set arg 2 to 5 would I do both?


%orig (arg1)
%orig (arg2, 5)

Or something?

Because what is happening is it is conflicting with the other, basically arg 1 is becoming the original value of arg 2 for some reason.

No.

You do have written now 'return arg2 as normal & return arg1 as 5, which you said you didn't want.

 

this line of code is for all arguments in a function

 %orig (arg1, arg2, arg3, arg4) 

 

So if you need to make arg1 return orignal & arg2 as 5, you do this:

 %orig (arg1, 5) 

 

Posted (edited)

@Ted2

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {

I want to have the first one as original ^ Then only change ^ to 5. For some reason the first one changes by itself to the original value of the second one.

I don't know why the first one is being affected but it is.

Updated by TheArmPrincess
Posted

Your Code:

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg2, 5); <--> Return arg2 as normal & return arg 1 as 5
}
%end

 

The code you want:

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
%orig (arg1, 5); <--> return arg1 as normal & return arg2 as 5.
}
%end

 

You switched them, wile you think the one effects the other.

Posted (edited)

Okay i'll try that, maybe i'm getting it wrong what you mean.

So 

%orig (arg1, 5);

Is the original for arg1 but after the comma it is '5' for arg2?

I'll use it and see what it does.

Edit: Never mind you just said that.

Updated by TheArmPrincess
Posted

I got this error, I've had this before I think it is for using special characters but IDK what it is that's causing it.

Error 1 & Error 2 (I can't upload an image atm)

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

    • Gear Truck! v1.0.23 [+3 Jailed Cheats]
      Modded/Hacked App: Gear Truck! By treeplla Inc.
      Bundle ID: com.tree.hybrid.geartank
      App Store Link: https://apps.apple.com/us/app/gear-truck/id6747216965?uo=4



      🤩 Hack Features

      - Never Die
      - High Wheel Speed Gain
      - One Hit Kill
      • 5 replies
    • Gear Truck! v1.0.23 [+3 Cheats]
      Modded/Hacked App: Gear Truck! By treeplla Inc.
      Bundle ID: com.tree.hybrid.geartank
      App Store Link: https://apps.apple.com/us/app/gear-truck/id6747216965?uo=4



      🤩 Hack Features

      - Never Die
      - High Wheel Speed Gain
      - One Hit Kill
       
      • 5 replies
    • Soul Huntress: Dungeon Crawler v1.1.4 [+3 Jailed Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4


      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
      • 45 replies
    • Soul Huntress: Dungeon Crawler v1.1.4 [+3 Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
        • Like
      • 45 replies
    • Cannon Heroes X v1.2.27 [+2 Jailed Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
      • 10 replies
    • Cannon Heroes X v1.2.27 [+2 Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
       
      • 7 replies
    • Slay Quest v1.3.13 [+3 Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
       
      • 8 replies
    • Slay Quest v1.3.13 [+3 Jailed Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4

       

      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
      • 6 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
      • 22 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
      • 17 replies
    • Bounce Defense v1.10.2 [+5 Jailed Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
      • 22 replies
    • Bounce Defense v1.10.2 [+5 Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
      • 15 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