Jump to content

Hooking problem teds template


Red16

12 posts in this topic

Recommended Posts

Posted

Public void QuickSpawnItem(int item, optional int stack); // RVA: 100F2929C Offset: F2929C

 

 

void (*Player_QuickSpawnItem) (void *player, int item) = (void (*) (void *, int))getRealOffset(0x100F2929C);

void (*Player_Update) (void *player);

void _Player_Update (void *player){

int item = [[switches getValueFromSwitch:@"Spawn Item:"] intValue];

 

  if([switches isSwitchOn:@"Spawn Item:"]){

Player_QuickSpawnItem(player, item); 

  }      

 Player_Update(player);

}

 

void setup() {

//ADD YOUR HACKS UNDER THIS

 

 [switches addSwitch:@"Spawn Item:"

              description:@"Put item ID!];

 

dose anyone know why this is not working, it compiles i dont have any errors. The game doesn’t crash when i turn the switch on with my value it doesn’t crash nothing happens

 

i am in the right class

Posted
9 minutes ago, bR34Kr said:

You check for a string "Spawn Item:" (Note the : ) while your switch has a name of "Spawn Item"

I had to rewrite the switch on here but thats not the issue

Posted
18 minutes ago, bR34Kr said:

You check for a string "Spawn Item:" (Note the : ) while your switch has a name of "Spawn Item"

The "Spawn Item:" seems correct. But I'm unsure if that's just the switch title or also an identifier.

Posted
8 minutes ago, DADi said:

The "Spawn Item:" seems correct. But I'm unsure if that's just the switch title or also an identifier.

Its just the switch title :)

14 minutes ago, bR34Kr said:

Are you sure that update function is being called?

Yea

Posted
8 minutes ago, bR34Kr said:

Could you upload your Tweak.xm or part of it to somewhere so we get the full picture?

#import "Macros.h"

/**********************************

 

INSIDE THIS FUNCTION YOU'LL HAVE TO CREATE YOUR SWITCHES!

 

***********************************/

void (*Player_QuickSpawnItem) (void *player, int item) = (void (*) (void *, int))getRealOffset(0x100F2929C);

void (*Player_Update) (void *player);

void _Player_Update (void *player){

int item = [[switches getValueFromSwitch:@"Spawn Item:"] intValue];

 

  if([switches isSwitchOn:@"Spawn Item:"]){

Player_QuickSpawnItem(player, item); 

  }      

 Player_Update(player);

}

 

void setup() {

//ADD YOUR HACKS UNDER THIS.

 

  [switches addTextfieldSwitch:@"Spawn Item:"

              description:@"Put the item ID!"

                inputBorderColor:[UIColor colorWithRed:0.31 green:0.31 blue:0.78 alpha:1.0]];

//you can find examples on iOSGods where the topic is at.

 

}

 

void setupMenu() {

 

menu = [[Menu alloc]  initWithTitle:@"Terraria 1.3.0.7.5 ModMenu"

                        titleColor:[UIColor colorWithRed:0.36 green:0.36 blue:0.91 alpha:1.0]

                        titleFont:@"AppleSDGothicNeo-Regular"

                        credits:@"Mod Menu by Red16 for No Advertising Allowed.com Don’t share this without our community permissions\n\nTap the menu to close!"

                        headerColor:[UIColor colorWithRed:0.09 green:0.11 blue:0.16 alpha:1.0]

                        switchOffColor:[UIColor colorWithRed:0.07 green:0.09 blue:0.14 alpha:0.95]

                        switchOnColor:[UIColor colorWithRed:0.16 green:0.21 blue:0.28 alpha:0.85]

                        switchTitleFont:@"AppleSDGothicNeo-Regular"

                        switchTitleColor:[UIColor colorWithRed:0.36 green:0.36 blue:0.91 alpha:1.0]

                        infoButtonColor:[UIColor colorWithRed:0.36 green:0.36 blue:0.91 alpha:1.0]

                        maxVisibleSwitches:4 // Less than max -> blank space, more than max -> you can scroll!

                        menuWidth:270];

 

 

    //once menu has been initialized, it will run the setup functions. In the setup function, you create your switches!

    setup();

}

 

/*

    If the menu button doesn't show up; Change the timer to a bigger amount.

*/

static void didFinishLaunching(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef info) {

 

  timer(5) {

 

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];

 

    

 [alert addButton: @"No Advertising Allowed.com!" actionBlock: ^(void) {

      [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://No Advertising Allowed.com"]];

      timer(2) {

        setupMenu();

      });        

    }];

 

    [alert addButton: @"Discord!" actionBlock: ^(void) {

      [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://discordapp.com/invite/ukSGD7h"]];

      timer(2) {

        setupMenu();

      });        

    }];

 

    [alert addButton: @"Thanks!" actionBlock: ^(void) {

      timer(2) {

        setupMenu();

      });

    }];    

 

    alert.shouldDismissOnTapOutside = NO;

    alert.customViewColor = [UIColor colorWithRed:0.07 green:0.09 blue:0.14 alpha:1.0];  

    alert.showAnimationType = SCLAlertViewShowAnimationSlideInFromCenter;   

    

    [alert showSuccess: nil

            subTitle:@"Terraria - Mod Menu Cheats by Red16 for No Advertising Allowed.com!\n\nRead the hack's official topic on No Advertising Allowed.com for more information & updates!"

              closeButtonTitle:nil

                duration:99999999.0f];

 

  });

}

 

 

%ctor {

  CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, &didFinishLaunching, (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL, CFNotificationSuspensionBehaviorDeliverImmediately);

}

Posted
5 minutes ago, Red16 said:

#import "Macros.h"

/**********************************

 

INSIDE THIS FUNCTION YOU'LL HAVE TO CREATE YOUR SWITCHES!

 

***********************************/

void (*Player_QuickSpawnItem) (void *player, int item) = (void (*) (void *, int))getRealOffset(0x100F2929C);

void (*Player_Update) (void *player);

void _Player_Update (void *player){

int item = [[switches getValueFromSwitch:@"Spawn Item:"] intValue];

 

  if([switches isSwitchOn:@"Spawn Item:"]){

Player_QuickSpawnItem(player, item); 

  }      

 Player_Update(player);

}

 

void setup() {

//ADD YOUR HACKS UNDER THIS.

 

  [switches addTextfieldSwitch:@"Spawn Item:"

              description:@"Put the item ID!"

                inputBorderColor:[UIColor colorWithRed:0.31 green:0.31 blue:0.78 alpha:1.0]];

//you can find examples on iOSGods where the topic is at.

 

}

 

void setupMenu() {

 

menu = [[Menu alloc]  initWithTitle:@"Terraria 1.3.0.7.5 ModMenu"

                        titleColor:[UIColor colorWithRed:0.36 green:0.36 blue:0.91 alpha:1.0]

                        titleFont:@"AppleSDGothicNeo-Regular"

                        credits:@"Mod Menu by Red16 for No Advertising Allowed.com Don’t share this without our community permissions\n\nTap the menu to close!"

                        headerColor:[UIColor colorWithRed:0.09 green:0.11 blue:0.16 alpha:1.0]

                        switchOffColor:[UIColor colorWithRed:0.07 green:0.09 blue:0.14 alpha:0.95]

                        switchOnColor:[UIColor colorWithRed:0.16 green:0.21 blue:0.28 alpha:0.85]

                        switchTitleFont:@"AppleSDGothicNeo-Regular"

                        switchTitleColor:[UIColor colorWithRed:0.36 green:0.36 blue:0.91 alpha:1.0]

                        infoButtonColor:[UIColor colorWithRed:0.36 green:0.36 blue:0.91 alpha:1.0]

                        maxVisibleSwitches:4 // Less than max -> blank space, more than max -> you can scroll!

                        menuWidth:270];

 

 

    //once menu has been initialized, it will run the setup functions. In the setup function, you create your switches!

    setup();

}

 

/*

    If the menu button doesn't show up; Change the timer to a bigger amount.

*/

static void didFinishLaunching(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef info) {

 

  timer(5) {

 

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];

 

    

 [alert addButton: @"No Advertising Allowed.com!" actionBlock: ^(void) {

      [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://No Advertising Allowed.com"]];

      timer(2) {

        setupMenu();

      });        

    }];

 

    [alert addButton: @"Discord!" actionBlock: ^(void) {

      [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://discordapp.com/invite/ukSGD7h"]];

      timer(2) {

        setupMenu();

      });        

    }];

 

    [alert addButton: @"Thanks!" actionBlock: ^(void) {

      timer(2) {

        setupMenu();

      });

    }];    

 

    alert.shouldDismissOnTapOutside = NO;

    alert.customViewColor = [UIColor colorWithRed:0.07 green:0.09 blue:0.14 alpha:1.0];  

    alert.showAnimationType = SCLAlertViewShowAnimationSlideInFromCenter;   

    

    [alert showSuccess: nil

            subTitle:@"Terraria - Mod Menu Cheats by Red16 for No Advertising Allowed.com!\n\nRead the hack's official topic on No Advertising Allowed.com for more information & updates!"

              closeButtonTitle:nil

                duration:99999999.0f];

 

  });

}

 

 

%ctor {

  CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, &didFinishLaunching, (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL, CFNotificationSuspensionBehaviorDeliverImmediately);

}

Doesn’t seem like you hook to the actual function inside your %ctor. You need to use the MSHookFunction function.

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Alien Survivor: Survival Arena v1.38.1 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Winner
        • Like
      • 15 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Haha
        • Winner
        • Like
      • 26 replies
    • Legend of Survivors V1.2.8 [ +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
        • Thanks
        • Winner
        • Like
      • 48 replies
    • Legend of Survivors V1.2.8 [ +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
      • 132 replies
    • Kitchen Masters v15.0.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4


      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
        • Agree
        • Thanks
        • Like
      • 6 replies
    • Kitchen Masters v15.0.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4
       

      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
        • Haha
        • Like
      • 10 replies
    • Score Masters v2.2 [ +7 Jailed ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
        • Informative
        • Like
      • 5 replies
    • Score Masters v2.2 [ +7 Cheats ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
        • Thanks
        • Winner
        • Like
      • 8 replies
    • Adventure Bay - Farm Games v1.42.14 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4
       

      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
        • Thanks
        • Like
      • 19 replies
    • Adventure Bay - Farm Games v1.42.14 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4


      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 25 replies
    • Disney Solitaire v1.3.0 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4
       

      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 15 replies
    • Disney Solitaire v1.3.0 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4


      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 21 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