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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Nimble Quest Halfbrick+ v1.1.2 +6 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Nimble Quest Halfbrick+ By Halfbrick
      Bundle ID: com.halfbrick.nimblequest
      iTunes Store Link: https://apps.apple.com/us/app/nimble-quest-halfbrick/id6667096113?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Unlimited Coins -> Tap on Options.*
      - Unlimited Gems -> Tap on Options.*
      - Unlock All Heroes -> Tap on Options.*
      -- Subscription Enabled

      * - Only enable 1 feature at a time.
      • 1 reply
    • Nimble Quest Halfbrick+ v1.1.2 +6 Cheats [ Damage + More ]
      Modded/Hacked App: Nimble Quest Halfbrick+ By Halfbrick
      Bundle ID: com.halfbrick.nimblequest
      iTunes Store Link: https://apps.apple.com/us/app/nimble-quest-halfbrick/id6667096113?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Unlimited Coins -> Tap on Options.*
      - Unlimited Gems -> Tap on Options.*
      - Unlock All Heroes -> Tap on Options.*
      -- Subscription Enabled

      * - Only enable 1 feature at a time.
      • 1 reply
    • [ FFBE WoTV Japan ] FFBE幻影戦争 WAR OF THE VISIONS Cheats v11.4.5 +3
      Modded/Hacked App: FFBE幻影戦争 戦略RPG/シミュレーションゲーム By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.WOTVffbejp
      iTunes Store Link: https://apps.apple.com/jp/app/ffbe%E5%B9%BB%E5%BD%B1%E6%88%A6%E4%BA%89-%E6%88%A6%E7%95%A5rpg-%E3%82%B7%E3%83%9F%E3%83%A5%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%B2%E3%83%BC%E3%83%A0/id1443703517?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Full Map Movement


      iOS Hack Download Link: https://iosgods.com/topic/173484-ffbe-wotv-japan-ffbe%E5%B9%BB%E5%BD%B1%E6%88%A6%E4%BA%89-war-of-the-visions-cheats-v916-3/
      • 80 replies
    • Zombastic: Time to Survive v1.3.1 [ +1+++ Jailed ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      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/
      • 20 replies
    • Zombastic: Time to Survive v1.3.1 [ +1+++ Cheats ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      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/
      • 24 replies
    • Cookingdom v1.3 +2 Jailed Cheats [ Cheat Menu ]
      Modded/Hacked App: Cookingdom By ABI GLOBAL LTD.
      Bundle ID: com.abi.cook.chill
      iTunes Store Link: https://apps.apple.com/us/app/cookingdom/id6742222069?uo=4

       


      🤩 Hack Features

      - Cheat Menu -> Head into Settings for the cheat menu to show.
      -- No Ads
      • 0 replies
    • Cookingdom v1.3 +2 Cheats [ Cheat Menu ]
      Modded/Hacked App: Cookingdom By ABI GLOBAL LTD.
      Bundle ID: com.abi.cook.chill
      iTunes Store Link: https://apps.apple.com/us/app/cookingdom/id6742222069?uo=4

       
       

      🤩 Hack Features

      - Cheat Menu -> Head into Settings for the cheat menu to show.
      -- No Ads
      • 0 replies
    • Tower And Swords v2.232 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Tower And Swords By Jisu Im
      Bundle ID: com.Jaems.ProjectCreationRPG
      iTunes Store Link: https://apps.apple.com/us/app/tower-and-swords/id1660251779?uo=4


      🤩 Hack Features

      - IAP Free

      - Gems

      - Coins

      - Never Die

      - DMG

      - Crit Hit
      • 9 replies
    • Tower And Swords v2.232 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Tower And Swords By Jisu Im
      Bundle ID: com.Jaems.ProjectCreationRPG
      iTunes Store Link: https://apps.apple.com/us/app/tower-and-swords/id1660251779?uo=4
       

      🤩 Hack Features

      - IAP Free

      - Gems

      - Coins

      - Never Die

      - DMG

      - Crit Hit
      • 7 replies
    • Hello Kitty My Dream Store v1.0.5 +5 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hello Kitty My Dream Store By ACTGames Co., Ltd.
      Bundle ID: com.actgames.HelloKittyMDS
      iTunes Store Link: https://apps.apple.com/us/app/hello-kitty-my-dream-store/id6736896540?uo=4

       

       
       

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Diamonds
      - Unlimited Gacha Coins
      - Unlimited Stars
      • 9 replies
    • Hello Kitty My Dream Store v1.0.5 +5 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hello Kitty My Dream Store By ACTGames Co., Ltd.
      Bundle ID: com.actgames.HelloKittyMDS
      iTunes Store Link: https://apps.apple.com/us/app/hello-kitty-my-dream-store/id6736896540?uo=4

       


      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Diamonds
      - Unlimited Gacha Coins
      - Unlimited Stars
        • Like
      • 13 replies
    • Kitty’s Kitchen Diary v1.0.9 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Kitty’s Kitchen Diary By SuperPlanet corp.
      Bundle ID: com.superplanet.catrecipe
      iTunes Store Link: https://apps.apple.com/us/app/kittys-kitchen-diary/id6496345774?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Head into Settings and toggle the Notifications button.
      - Unlock All -> Head into Settings and toggle the Nightly Notifications button.
      - Freeze Diamonds
      • 6 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