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

    • ACECRAFT v1.3.73 [+5 Jailed Cheats]
      Modded/Hacked App: ACECRAFT By VIZTA PTE. LTD.
      Bundle ID: com.vizta.wefly
      App Store Link: https://apps.apple.com/ca/app/acecraft/id6499112583?uo=4


       

      🤩 Hack Features

      - Never Die
      - One Hit Kill
      - High Energy Gain (Ultimate Skill)
      - Exp Gain Multiplier
      - Attack Multiplier
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 39 replies
    • ACECRAFT v1.3.73 [+5 Cheats]
      Modded/Hacked App: ACECRAFT By VIZTA PTE. LTD.
      Bundle ID: com.vizta.wefly
      App Store Link: https://apps.apple.com/ca/app/acecraft/id6499112583?uo=4



      🤩 Hack Features

      - Never Die
      - One Hit Kill
      - High Energy Gain (Ultimate Skill)
      - Exp Gain Multiplier
      - Attack Multiplier
        • Haha
        • Thanks
        • Winner
        • Like
      • 18 replies
    • Legend of Survivors V1.2.12 [ +17 Jailed ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      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
      • 60 replies
    • Legend of Survivors V1.2.12 [ +17 Cheats ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:
      - IAP Free [ Buy Anything - Gems Gold Ads Premium Packs ]

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 139 replies
    • Chef Treat v1.0.4 [ +1 Cheats ] Auto Win
      Modded/Hacked App: Chef Treat By HONGKONG 707 INTERACTIVE TECHNOLOGY CO., LIMITED
      Bundle ID: com.match.cheftreat.ios
      App Store Link: https://apps.apple.com/us/app/chef-treat/id6748721903?uo=4


      🤩 Hack Features

      - Auto Win


        • Like
      • 2 replies
    • Chef Treat v1.0.4 [ +1 Jailed ] Auto Win
      Modded/Hacked App: Chef Treat By HONGKONG 707 INTERACTIVE TECHNOLOGY CO., LIMITED
      Bundle ID: com.match.cheftreat.ios
      App Store Link: https://apps.apple.com/ph/app/chef-treat/id6748721903?uo=4

       
      🤩 Hack Features

      - Auto Win


        • Agree
        • Thanks
        • Like
      • 3 replies
    • North War: Island Defense 3D v1.1.1 [ +6 Cheats ] Currency Max
      Modded/Hacked App: North War: Island Defense 3D By ONDI TECHNOLOGY JSC
      Bundle ID: com.bgg.island.battle
      App Store Link: https://apps.apple.com/ph/app/north-war-island-defense-3d/id6744058107?uo=4 

      🤩 Hack Features

      - Unlimited Gems / Use & Earn
      - Unlimited Coins / Use & Earn
      - Unlimited Energy / Use & Earn
        • Agree
        • Winner
        • Like
      • 12 replies
    • North War: Island Defense 3D v1.1.1 [ +6 Jailed ] Currency Max
      Modded/Hacked App: North War: Island Defense 3D By ONDI TECHNOLOGY JSC
      Bundle ID: com.bgg.island.battle
      App Store Link: https://apps.apple.com/ph/app/north-war-island-defense-3d/id6744058107?uo=4 

      🤩 Hack Features

      - Unlimited Gems / Use & Earn
      - Unlimited Coins / Use & Earn
      - Unlimited Energy / Use & Earn
        • Winner
      • 6 replies
    • Zombie Blaster-Survive&Rescue v1.0.4 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Zombie Blaster-Survive&Rescue By Shenzhen Hijoy Information Technology Co., Ltd
      Bundle ID: com.sfromance.zombieblaster
      App Store Link: https://apps.apple.com/us/app/zombie-blaster-survive-rescue/id6749564079?uo=4

       
      🤩 Hack Features

      - Gems

      - Gold

      - Energy

      - Keys +2

      - Shader

      - Battle Coins

      - ATK Weapon
        • Winner
        • Like
      • 4 replies
    • Zombie Blaster-Survive&Rescue v1.0.4 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Zombie Blaster-Survive&Rescue By Shenzhen Hijoy Information Technology Co., Ltd
      Bundle ID: com.sfromance.zombieblaster
      App Store Link: https://apps.apple.com/us/app/zombie-blaster-survive-rescue/id6749564079?uo=4

       

      🤩 Hack Features

      - Gems

      - Gold

      - Energy

      - Keys +2

      - Shader

      - Battle Coins

      - ATK Weapon
        • Like
      • 2 replies
    • RiftCraft v2.44.30 [ +4 Jailed ] Auto Win
      Modded/Hacked App: RiftCraft By Sneaky Panda LTD
      Bundle ID: com.sneakypanda.riftcraft
      App Store Link: https://apps.apple.com/us/app/riftcraft/id6744392381?uo=4
       

      🤩 Hack Features

      - Auto Win [ PvP & Stage ]
      - ADS [ Rewards Free ]
      - Gems
      - Tokens
        • Winner
        • Like
      • 6 replies
    • RiftCraft v2.44.30 [ +4 Cheats ] Auto Win
      Modded/Hacked App: RiftCraft By Sneaky Panda LTD
      Bundle ID: com.sneakypanda.riftcraft
      App Store Link: https://apps.apple.com/us/app/riftcraft/id6744392381?uo=4 

      🤩 Hack Features

      - Auto Win [ PvP & Stage ]
      - ADS [ Rewards Free ]
      - Gems
      - Tokens
        • Winner
        • Like
      • 7 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