Jump to content

1 post in this topic

Recommended Posts

Posted

i make tweak shmoos and [NIC Template] Settings Based Mod Menu

but when install not work and i try onther game same not work 

this my tweak is this true or not 

Spoiler

#import "Macros.h"
#import "ModMenu.h"
#import "Hack.h"
#import "Hook.h"
#import "SliderHook.h"
#import "TextfieldHook.h"
#import <substrate.h>
#import <initializer_list>
#import <vector>
#import <mach-o/dyld.h>

static NSString *const title = @"tales  Mod Menu"; //title of your menu
static NSString *const credits = @"Hacked by intell"; //who made the hack?
static NSString *const font = @"Copperplate-Bold"; //what font do you want the text to be? don't put anything for the default font
static UIColor *const themeColor = rgb(0x3a539b); //the overall color for the menu and the button

uint64_t getRealOffset(uint64_t);

void addHack(NSString *, NSString *, NSString *, std::initializer_list<uint64_t>, std::initializer_list<uint64_t>, std::initializer_list<uint64_t>);
void addHook(NSString *, NSString *, NSString *, uint64_t, void *, void *);
void addSliderHook(NSString *, NSString *, NSString *, float, float, uint64_t, void *, void *);
void addTextfieldHook(NSString *, NSString *, NSString *, uint64_t, void *, void *);

static ModMenu *menu;

bool buttonAdded;

%hook UnityAppController

- (void)applicationDidBecomeActive:(id)arg0 {
UIWindow *main = [UIApplication sharedApplication].keyWindow.rootViewController.view;

UIButton *openButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
openButton.frame = CGRectMake((main.frame.size.width/2)-15, (main.frame.size.height/2)+75, 30, 30);
openButton.backgroundColor = [UIColor clearColor];
openButton.layer.cornerRadius = 16;
openButton.layer.borderWidth = 2;
openButton.layer.borderColor = themeColor.CGColor;
[openButton addTarget:self action:@selector(wasDragged:withEvent:) 
forControlEvents:UIControlEventTouchDragInside];
[openButton addTarget:self action:@selector(showMenu) 
forControlEvents:UIControlEventTouchDownRepeat];

if(!buttonAdded){
timer((int64_t)1){
UIWindow *main = [UIApplication sharedApplication].keyWindow.rootViewController.view;

menu = [[ModMenu alloc] initWithTitle:title credits:credits fontName:font theme:themeColor];


addHack(@"damage", @"Description of the hack", font, {0x03E7854}, {0x0C90241E}, {0x0C102E1E});


[main addSubview:openButton];
[main addSubview:menu];

buttonAdded = true;
});
}

%orig;
}

%new
- (void)showMenu {
[menu show];
}

%new
- (void)wasDragged:(UIButton *)button withEvent:(UIEvent *)event
{
    UITouch *touch = [[event touchesForView:button] anyObject];

    CGPoint previousLocation = [touch previousLocationInView:button];
    CGPoint location = [touch locationInView:button];
    CGFloat delta_x = location.x - previousLocation.x;
    CGFloat delta_y = location.y - previousLocation.y;

    button.center = CGPointMake(button.center.x + delta_x, button.center.y + delta_y);
}
%end

void addHack(NSString *name, NSString *description, NSString *fontName, std::initializer_list<uint64_t> offsets, std::initializer_list<uint64_t> hackedHexes, std::initializer_list<uint64_t> originalHexes){
    std::vector<uint64_t> offsetVector;
    std::vector<uint64_t> hackedHexVector;
    std::vector<uint64_t> originalHexVector;
    
    offsetVector.insert(offsetVector.begin(), offsets.begin(), offsets.end());
    hackedHexVector.insert(hackedHexVector.begin(), hackedHexes.begin(), hackedHexes.end());
    originalHexVector.insert(originalHexVector.begin(), originalHexes.begin(), originalHexes.end());
    
    Hack *h = [[Hack alloc] initWithHackName:name info:description fontName:fontName theme:themeColor offset:offsetVector hackedHex:hackedHexVector originalHex:originalHexVector];
    [menu addHack:h];
}

void addHook(NSString *name, NSString *description, NSString *fontName, uint64_t offset, void *hooked, void *orig){
    MSHookFunction(((void*)getRealOffset(offset + 1)), hooked, &orig);

    Hook *h = [[Hook alloc] initWithHookName:name info:description fontName:fontName theme:themeColor offset:0x251832];
    [menu addHook:h];
}

void addSliderHook(NSString *name, NSString *description, NSString *fontName, float minValue, float maxValue, uint64_t offset, void *hooked, void *orig){
    MSHookFunction(((void*)getRealOffset(offset + 1)), hooked, &orig);

    SliderHook *sh = [[SliderHook alloc] initWithSliderHookName:name info:description fontName:fontName theme:themeColor offset:offset minValue:minValue maxValue:maxValue];
    [menu addHook:sh];
}

void addTextfieldHook(NSString *name, NSString *description, NSString *fontName, uint64_t offset, void *hooked, void *orig){
    MSHookFunction(((void*)getRealOffset(offset + 1)), hooked, &orig);

    TextfieldHook *th = [[TextfieldHook alloc] initWithTextfieldHookName:name info:description fontName:fontName theme:themeColor offset:offset];
    [menu addHook:th];
}

uint64_t getRealOffset(uint64_t offset){
    return _dyld_get_image_vmaddr_slide(0)+offset;
}

any file need change inside or only tweak ? im just work for only tweak 

@DiDA anyhelp notlikethis

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

    • Stickman vs Zombie: Idle RPG v1.0.10 [ +5 Cheats ] Easy Win
      Modded/Hacked App: Stickman vs Zombie: Idle RPG By Pusilung HK Limited
      Bundle ID: com.TSH011.stickman.zombie.epic.war.idle.rpg.warfare
      App Store Link: https://apps.apple.com/us/app/stickman-vs-zombie-idle-rpg/id6743597727?uo=4

       
      🤩 Hack Features

      - Currency [ No Need ]

      - Resources [ No Need ]

      - Hero Status

      - Pet Status

      - Skill Status

      Note:- Hero Pet Skill After Hack Game Close Reopen Then Work
        • Winner
      • 1 reply
    • Stickman vs Zombie: Idle RPG v1.0.10 [ +5 Jailed ] Easy Win
      Modded/Hacked App: Stickman vs Zombie: Idle RPG By Pusilung HK Limited
      Bundle ID: com.TSH011.stickman.zombie.epic.war.idle.rpg.warfare
      App Store Link: https://apps.apple.com/us/app/stickman-vs-zombie-idle-rpg/id6743597727?uo=4


      🤩 Hack Features

      - Currency [ No Need ]

      - Resources [ No Need ]

      - Hero Status

      - Pet Status

      - Skill Status

      Note:- Hero Pet Skill After Hack Game Close Reopen Then Work
      • 2 replies
    • Block Clash!! v1.0.4 [+2 Jailed Cheats]
      Modded/Hacked App: Block Clash!! By treeplla Inc.
      Bundle ID: com.tree.hybrid.blockclash
      App Store Link: https://apps.apple.com/us/app/block-clash/id6745582734?uo=4

       


      🤩 Hack Features

      - Never Die
      - One Hit Kill
        • Winner
      • 2 replies
    • Block Clash!! v1.0.4 [+2 Cheats]
      Modded/Hacked App: Block Clash!! By treeplla Inc.
      Bundle ID: com.tree.hybrid.blockclash
      App Store Link: https://apps.apple.com/us/app/block-clash/id6745582734?uo=4


      🤩 Hack Features

      - Never Die
      - One Hit Kill
       
        • Winner
      • 1 reply
    • HAWK: Airplane Space games Cheats v42.6 +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
      • 1,053 replies
    • June’s Journey: Hidden Objects v3.39.1 Jailed Cheats +2
      Modded/Hacked App: June’s Journey: Hidden Objects By wooga gmbh
      Bundle ID: net.wooga.junes-journey-hidden-object-mystery-game
      iTunes Store Link: https://apps.apple.com/us/app/junes-journey-hidden-objects/id1200391796?uo=4


      Hack Features:
      - Infinite Currencies
      - Instant Hint


      iOS Hack Download IPA Link: https://iosgods.com/topic/176104-june%E2%80%99s-journey-hidden-objects-v2946-jailed-cheats-2/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 53 replies
    • Hex Warriors v2.4.4 Cheat Menu [+10 Jailed Cheats]
      Modded/Hacked App: Hex Warriors By Voodoo
      Bundle ID: com.dong.hexwarriors
      App Store Link: https://apps.apple.com/us/app/hex-warriors/id6736930021?uo=4


       

      🤩 Hack Features

      Cheat Menu (Currency, Auto Win, Cards and more)
        • Like
      • 16 replies
    • Hex Warriors v2.4.4 Cheat Menu [+10 Cheats]
      Modded/Hacked App: Hex Warriors By Voodoo
      Bundle ID: com.dong.hexwarriors
      App Store Link: https://apps.apple.com/us/app/hex-warriors/id6736930021?uo=4



      🤩 Hack Features

      - Cheat Menu (Currency, Auto Win, Cards and more)
        • Winner
        • Like
      • 11 replies
    • Gangster Universe! v6.0.0 [+2 Cheats]
      Modded/Hacked App: Gangster Universe! By Supercent Inc.
      Bundle ID: io.supercent.beachamp2
      iTunes Store Link: https://apps.apple.com/us/app/gangster-universe/id6742225641?uo=4


      🤩 Hack Features

      - Never Die
      - Add Currency (Toggle on/off gives you currency use only in game)
       
        • Agree
        • Winner
        • Like
      • 4 replies
    • Gangster Universe! v6.0.0 [+2 Jailed Cheats]
      Modded/Hacked App: Gangster Universe! By Supercent Inc.
      Bundle ID: io.supercent.beachamp2
      iTunes Store Link: https://apps.apple.com/us/app/gangster-universe/id6742225641?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency (Toggle on/off gives you currency use only in game)
        • Agree
        • Like
      • 8 replies
    • Endless Wander - Roguelike RPG v2.4.29 [+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)
        • Agree
        • Thanks
        • Winner
        • Like
      • 18 replies
    • Endless Wander - Roguelike RPG v2.4.29 [+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)
       
        • Winner
        • Like
      • 14 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