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

    • Boom! Zombies v1.1.8 [+3 Jailed Cheats]
      Modded/Hacked App: Boom! Zombies By ONEMT PTE. LTD.
      Bundle ID: com.onemt.ios.tk
      App Store Link: https://apps.apple.com/us/app/boom-zombies/id6745877105?uo=4



      🤩 Hack Features

      - Never Die
      - High Damage
      - No Reload
      • 7 replies
    • Boom! Zombies v1.1.8 [+3 Cheats]
      Modded/Hacked App: Boom! Zombies By ONEMT PTE. LTD.
      Bundle ID: com.onemt.ios.tk
      App Store Link: https://apps.apple.com/us/app/boom-zombies/id6745877105?uo=4



      🤩 Hack Features

      - Never Die
      - High Damage
      - No Reload
       
        • Haha
      • 10 replies
    • Royal Match v30524 +10 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Royal Match By Dream Games Teknoloji Anonim Sirketi
      Bundle ID: com.dreamgames.royalmatch
      iTunes Store Link: https://apps.apple.com/us/app/royal-match/id1482155847?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Stars
      - Freeze Boosters
      - Freeze Time
      - Freeze Moves
      - Unlock VIP Badges
      - Unlock VIP Name Styles
      - Unlock VIP Frames
      - Auto Win -> Quit the level.


      Jailbreak required hack(s): [Mod Menu Hack] Royal Match v26455 +11 Cheats [ Unlimited Coins + More ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
      • 415 replies
    • Royal Match v30524 +10 Cheats [ Coins + More ]
      Modded/Hacked App: Royal Match By Dream Games Teknoloji Anonim Sirketi
      Bundle ID: com.dreamgames.royalmatch
      iTunes Store Link: https://apps.apple.com/us/app/royal-match/id1482155847?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Stars
      - Freeze Boosters
      - Freeze Time
      - Freeze Moves
      - Unlock VIP Badges
      - Unlock VIP Name Styles
      - Unlock VIP Frames
      - Auto Win -> Quit the level.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Royal Match v26455 +11 Jailed Cheats [ Unlimited Coins + More ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Haha
      • 523 replies
    • Project Makeover v2.120.1 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Project Makeover By Magic Tavern, Inc.
      Bundle ID: com.bgg.jump
      App Store Link: https://apps.apple.com/us/app/project-makeover/id1483058899?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Lives

      This hack was made by @Cashlaz. Give him all your love & appreciation! ❤️
      • 26 replies
    • Project Makeover ( All Versions ) +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Project Makeover By Magic Tavern, Inc.
      Bundle ID: com.bgg.jump
      App Store Link: https://apps.apple.com/us/app/project-makeover/id1483058899?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Lives

      This hack was made by @Cashlaz. Give him all your love & appreciation! ❤️
      • 11 replies
    • Hunt Royale: Action RPG Battle v3.15.1 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       
       

      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
      • 179 replies
    • Hunt Royale: Action RPG Battle v3.15.1 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       


      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier
        • Informative
      • 33 replies
    • Pocket Survivor: Expansion 2d v2.02.2 [ +1+++ Cheats ] Unlimited All Off
      Modded/Hacked App: Pocket Survivor: Expansion 2d By APPWILL COMPANY LTD
      Bundle ID: develop.pocket.survivor.expansion
      App Store Link: https://apps.apple.com/us/app/pocket-survivor-expansion-2d/id1644395434?uo=4


      🤩 Hack Features

      - Unlimited ALL OFF


      • 1 reply
    • Pocket Survivor: Expansion 2d v2.02.2 [ +1+++ Jailed ] Unlimited All Off
      Modded/Hacked App: Pocket Survivor: Expansion 2d By APPWILL COMPANY LTD
      Bundle ID: develop.pocket.survivor.expansion
      App Store Link: https://apps.apple.com/us/app/pocket-survivor-expansion-2d/id1644395434?uo=4


      🤩 Hack Features

      - Unlimited ALL OFF


      • 1 reply
    • Immortal Rising 2 Cheats v1.3.12 +5
      Modded/Hacked App: Immortal Rising 2 By Planetarium Labs Pte. Ltd.
      Bundle ID: com.badbeans.immortalrising2
      iTunes Store Link: https://apps.apple.com/us/app/immortal-rising-2/id6467105374?uo=4

       


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - More damage
      - No CD
      - Earn more gold
      - Earn more exp
      - Freeze combokill
      - God mode
        • Agree
        • Like
      • 180 replies
    • Village Tales v0.2.1 [ +1 Cheats ] Currency Max
      Modded/Hacked App: Village Tales By Texas PFCG Aplicativos Ltda
      Bundle ID: com.city.urbi
      App Store Link: https://apps.apple.com/ph/app/storm-tale-2/id1575085199?uo=4


      🤩 Hack Features

      - Gems

      • 1 reply
×
  • 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