Jump to content

Hooking problem teds template


Go to solution Solved by bR34Kr,

12 posts in this topic

Recommended Posts

Posted (edited)

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

Updated by Red16
Posted

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

  • Like 1
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
2 minutes ago, Red16 said:

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

Are you sure that update function is being called?

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
3 minutes ago, Red16 said:

Its just the switch title :)

Yea

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

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);

}

  • Solution
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.

  • Like 1

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

    • Slayer Legend Cheats v600.2.6 +5
      Modded/Hacked App: Slayer Legend By GEAR2
      Bundle ID: com.gear2.growslayer
      iTunes Store Link: https://apps.apple.com/us/app/slayer-legend/id1635712706?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Freeze Currencies


      iOS Hack Download Link: https://iosgods.com/topic/186299-slayer-legend-cheats-v50084-3/
      • 115 replies
    • Toram Online v4.0.65 - [ Custom Move Speed & More ]
      Modded/Hacked App: Toram Online By ASOBIMO,Inc.
      Bundle ID: com.asobimo.toramonline
      iTunes Store Link: https://itunes.apple.com/us/app/toram-online/id988683886?mt=8&uo=4&at=1010lce4
       

      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate or Substitute.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - Custom Move Speed
      - God Mode 
      - Fast Attack Speed
      - Fast Cast Speed
      - Always Critical Chance
      - Never Miss Hit 
      - Mobs/Bosses Can't Avoid & Guard 
      - Quick Draw
      - Armor Break
      - Magic Wall - Stun + Full Map Hack 
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,569 replies
    • Dawn of Ages: Medieval Games v1.7.9 +1 Jailed Cheat [ Auto Win ]
      Modded/Hacked App: Dawn of Ages: Medieval Games By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      iTunes Store Link: https://apps.apple.com/us/app/dawn-of-ages-medieval-games/id6477473268?uo=4


      Hack Features:
      - Auto Win
      • 13 replies
    • Dawn of Ages: Medieval Games v1.7.9 +1 Cheat [ Auto Win ]
      Modded/Hacked App: Dawn of Ages: Medieval Games By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      iTunes Store Link: https://apps.apple.com/us/app/dawn-of-ages-medieval-games/id6477473268?uo=4


      Hack Features:
      - Auto Win
      • 9 replies
    • Cats Mansion - Cute Merge Game v3.6 +5 Jailed Cheats [ Unlimited Energy ]
      Modded/Hacked App: Cats Mansion - Cute Merge Game By Hero Linkage Technology Co., Ltd.
      Bundle ID: com.cute.cat.house
      iTunes Store Link: https://apps.apple.com/us/app/cats-mansion-cute-merge-game/id6470771978?uo=4

       
       

      🤩 Hack Features

      - Always Enough Energy

      VIP
      - Unlimited Energy -> Spend some.
      - Privilege Pass Unlocked
      - All Avatars & Frames Unlocked
      - Unlimited Name Changes
      • 22 replies
    • Cats Mansion - Cute Merge Game v3.6 +5 Cheats [ Unlimited Energy ]
      Modded/Hacked App: Cats Mansion - Cute Merge Game By Hero Linkage Technology Co., Ltd.
      Bundle ID: com.cute.cat.house
      iTunes Store Link: https://apps.apple.com/us/app/cats-mansion-cute-merge-game/id6470771978?uo=4

       
       

      🤩 Hack Features

      - Always Enough Energy

      VIP
      - Unlimited Energy -> Spend some.
      - Privilege Pass Unlocked
      - All Avatars & Frames Unlocked
      - Unlimited Name Changes
      • 13 replies
    • Zombie State: FPS Shooter v2.3.3 +10 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Zombie State: FPS Shooting By MY.GAMES B.V.
      Bundle ID: games.my.zombie.shooter
      iTunes Store Link: https://apps.apple.com/us/app/zombie-state-fps-shooting/id6451382835?uo=4


      Hack Features:
      - Damage Multiplier VIP
      - Defence Multiplier VIP
      - Move Speed Multiplier VIP
      - Unlimited Ammo -> Will not decrease.
      - No Recoil
      - No Spread
      - Increased Fire Rate
      - Kill All Enemies VIP
      - Become Invisible VIP
      - Battle Pass Purchased VIP


      Jailbreak required hack(s): [Mod Menu Hack] Zombie State: FPS Shooter v2.0.1 +10 Cheats [ Damage & Defence ] - 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/
      • 87 replies
    • Zombie State: FPS Shooter v2.3.3 +10 Cheats [ Damage & Defence ]
      Modded/Hacked App: Zombie State: FPS Shooting By MY.GAMES B.V.
      Bundle ID: games.my.zombie.shooter
      iTunes Store Link: https://apps.apple.com/us/app/zombie-state-fps-shooting/id6451382835?uo=4


      Hack Features:
      - Damage Multiplier VIP
      - Defence Multiplier VIP
      - Move Speed Multiplier VIP
      - Unlimited Ammo -> Will not decrease.
      - No Recoil
      - No Spread
      - Increased Fire Rate
      - Kill All Enemies VIP
      - Become Invisible VIP
      - Battle Pass Purchased VIP


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Zombie State: FPS Shooter v2.0.1 +10 Jailed Cheats [ Damage & Defence ] - 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/
        • Like
      • 78 replies
    • Loot Heroes v1.5.0 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - Unlimited Currencies [ VIP ]
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - Auto Win [ VIP ]
      - Battle Pass Unlocked [ VIP ]


      Jailbreak required hack(s): [Mod Menu Hack] Loot Heroes v1.1.5 +8 Cheats [ Unlimited Currencies + 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/
      • 79 replies
    • Loot Heroes v1.5.0 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - Unlimited Currencies [ VIP ]
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - Auto Win [ VIP ]
      - Battle Pass Unlocked [ VIP ]


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 210 replies
    • Tiles of Hope - Matching Games v1.3.0 [+6 Jailed Cheats]
      Modded/Hacked App: Tiles of Hope - Matching Games By APPSYOULOVE LTD
      Bundle ID: tile.family.match.puzzle.game
      iTunes Store Link: https://apps.apple.com/us/app/tiles-of-hope-matching-games/id6499420077?uo=4



      🤩 Hack Features

      - Unlimited Heart
      - Unlimited Coin
      - Unlimited Diamond
      - Unlimited Shuffle Booster
      - Unlimited Hint Booster
      - Unlimited Undo Booster
      • 1 reply
    • Tiles of Hope - Matching Games v1.3.0 [+6 Cheats]
      Modded/Hacked App: Tiles of Hope - Matching Games By APPSYOULOVE LTD
      Bundle ID: tile.family.match.puzzle.game
      iTunes Store Link: https://apps.apple.com/us/app/tiles-of-hope-matching-games/id6499420077?uo=4



      🤩 Hack Features

      - Unlimited Heart
      - Unlimited Coin
      - Unlimited Diamond
      - Unlimited Shuffle Booster
      - Unlimited Hint Booster
      - Unlimited Undo Booster
      • 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