Jump to content

24 posts in this topic

Recommended Posts

Posted

Hi,

 

This is my code:

void CharacterUpdate(void *character){

	if(character != NULL) {
    bool isAI = *(int *)((uint64_t)character + 0x221); //isAI = 0x221 //Class Character: CharacterBase

    if(isAI) {	// Check if it's the AI before doing something 
      if([menu getBool:@"GodmodeSwitch"]) //checking if feature is enabled or not.
       return; //return what it normally returns
} else {
       *(float *)((uint64_t)character + 0x48) = 99999999; //health = 0x48 //Class CharacterBase
   }
}
old_CharacterUpdate(character);
}

MSHookFunction((void*)getRealOffset(0xOffset),(void*)CharacterUpdate,(void**)&old_CharacterUpdate); //Class: CharacterBase -> Func: UpdateCharacter

    	[menu addSwitchWithIdentifier:@"GodmodeSwitch"
    		title:@"Godmode"
    		description:@"You can't die."]; 

 

But somehow it doesn't seem to know when it's on or not, it just acts like it's always ON

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

Take a look at the example here: 

 

Posted
10 minutes ago, DiDA said:

Take a look at the example here: 

 

I did, I tried everything

Posted
3 minutes ago, Ted2 said:

I did, I tried everything

Seeing your code, I don't think you have seen the example properly.

Posted
Just now, DiDA said:

Seeing your code, I don't think you have seen the example properly.

Idk too what example you're refering too, but why would bool isFeatureActive = if([menu getBool:@"GodmodeSwitch"]) make a diffrence?

Posted
4 minutes ago, Ted2 said:

Idk too what example you're refering too, but why would bool isFeatureActive = if([menu getBool:@"GodmodeSwitch"]) make a diffrence?

Your code is wrong I'm fixing it

Posted
Just now, shmoo said:

Your code is wrong I'm fixing it

<3

Posted (edited)
5 minutes ago, Ted2 said:

<3

You over complicated it 

 

void CharacterUpdate(void *character){
	if(character != NULL) {
		bool isAI = *(int *)((uint64_t)character + 0x221); //isAI = 0x221 //Class Character: CharacterBase

		if(isAI) {	// Check if it's the AI before doing something 
			if([menu getBool:@"GodmodeSwitch"]) //checking if feature is enabled or not.
				return; //return what it normally returns
		} else {
			// this block of code will be reached when the player that's in your control (not AI)
			// so why even have the isAI if statement?
			// why not just if(!isAI)?
			*(float *)((uint64_t)character + 0x48) = 99999999; //health = 0x48 //Class CharacterBase
		}
	}
	
	old_CharacterUpdate(character);
}

// It should work now, try the code below

void CharacterUpdate(void *character){
	// the character parameter is guarenteed to be non-null
	bool isAI = *(int *)((uint64_t)character + 0x221); //isAI = 0x221 //Class Character: CharacterBase

	if(!isAI && [menu getBool:@"GodmodeSwitch"]){	// Check if it is not AI before setting health
		*(float *)((uint64_t)character + 0x48) = 99999999.0f; //health = 0x48 //Class CharacterBase
	}
	
	old_CharacterUpdate(character);
}

 

Updated by Guest
Posted
4 minutes ago, shmoo said:

You over complicated it 

 


void CharacterUpdate(void *character){
	if(character != NULL) {
		bool isAI = *(int *)((uint64_t)character + 0x221); //isAI = 0x221 //Class Character: CharacterBase

		if(isAI) {	// Check if it's the AI before doing something 
			if([menu getBool:@"GodmodeSwitch"]) //checking if feature is enabled or not.
				return; //return what it normally returns
		} else {
			// this block of code will be reached when the player that's in your control (not AI)
			// so why even have the isAI if statement?
			// why not just if(!isAI)?
			*(float *)((uint64_t)character + 0x48) = 99999999; //health = 0x48 //Class CharacterBase
		}
	}
	
	old_CharacterUpdate(character);
}

// It should work now, try the code below

void CharacterUpdate(void *character){
	// the character parameter is guarenteed to be non-null
	bool isAI = *(int *)((uint64_t)character + 0x221); //isAI = 0x221 //Class Character: CharacterBase

	if(!isAI && [menu getBool:@"GodmodeSwitch"]){	// Check if it is not AI before setting health
		*(float *)((uint64_t)character + 0x48) = 99999999.0f; //health = 0x48 //Class CharacterBase
	}
	
	old_CharacterUpdate(character);
}

 

Can you fix freezing of game also?

Posted

@shmoo

 

Okay so now my Character is freezing.. (also if the option is disabled) xd

1 minute ago, vladimpaler said:

Can you fix freezing of game also?

Mate, I already told you I would fix it. Don't go to topics & change subjects.

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

    • The Catapult 2: Castle defense v8.1.0 [ +13 Cheats ] Add Currency
      Modded/Hacked App: The Catapult 2: Castle defense By BYV GAMES EOOD
      Bundle ID: com.byv.TheCatapult2
      App Store Link: https://apps.apple.com/us/app/the-catapult-2-castle-defense/id1449450263?uo=4

      🤩 Hack Features

      - Ads No
      - ViP Active
      - Double XP Active
      - Battle Pass Active
      - Unlock All Map
      - Unlock All Weapons
      - Play Any Level
      - Add Currency
      - Add Ticket
      - Aimbot
      - Aim Power
      - Never Die
      - Max Damage
      - Enemy Can't Attack
      • 0 replies
    • The Catapult 2: Castle defense v8.1.0 [ +13 Jailed ] Add Currency
      Modded/Hacked App: The Catapult 2: Castle defense By BYV GAMES EOOD
      Bundle ID: com.byv.TheCatapult2
      App Store Link: https://apps.apple.com/us/app/the-catapult-2-castle-defense/id1449450263?uo=4

      🤩 Hack Features

      - Ads No
      - ViP Active
      - Double XP Active
      - Battle Pass Active
      - Unlock All Map
      - Unlock All Weapons
      - Play Any Level
      - Add Currency
      - Add Ticket
      - Aimbot
      - Aim Power
      - Never Die
      - Max Damage
      - Enemy Can't Attack
      • 2 replies
    • Arcane Breakout +4 Mods [ Damage & Defence ]
      Mod APK Game Name: Arcane Breakout By KEYSTORM HOLDINGS LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.game.arcanebreakout

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      • 1 reply
    • Dream Zone: My Fantasy Episode +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Dream Zone: My Fantasy Episode By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.dreamzone

       

      🤩 Hack Features

      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.
      • 0 replies
    • Love Sparks: Dating Sim +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Love Sparks: Dating Sim By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.lovespark

       

      🤩 Hack Features

      - Unlimited Currencies -> Earn or spend some.
      -- VIP Enabled
      • 0 replies
    • Field Day +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Field Day By BIT ODD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.bitodd.vortex

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
      • 0 replies
    • Love Sick: My Love Episode +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Love Sick: My Love Episode By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.genres

       

      🤩 Hack Features

      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.
      • 0 replies
    • Field Day +6 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Field Day By BIT ODD oy
      Bundle ID: com.bitodd.vortex
      App Store Link: https://apps.apple.com/us/app/field-day/id6754967275?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
      • 0 replies
    • Love Sick: Stories & Choices +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Love Sick: Stories & Choices By SVEG MASHA, OOO
      Bundle ID: com.swagmasha.genres
      iTunes Store Link: https://apps.apple.com/us/app/love-sick-stories-choices/id1450264153?uo=4


      Hack Features:
      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Love Sick: Stories & Choices ( All Versions ) +2 Cheats [ Unlimited Currencies ] - 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
    • BOOM BOOM TD +4 Mods [ Damage & Defence ]
      Mod APK Game Name: BOOM BOOM TD By Gamezaaa
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.yblbsea.gpgat

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
      • 0 replies
    • Slime Hunter Idle Dx +7 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Slime Hunter Idle Dx By Gyeongtae Park
      Bundle ID: com.fingercat.slimehunterworldios
      App Store Link: https://apps.apple.com/us/app/slime-hunter-idle-dx/id6816451708?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Kill All Enemies
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      • 2 replies
    • BOOM BOOM TD +4 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: BOOM BOOM TD By Cedar Technology HK Limited
      Bundle ID: com.yblbsea.iosgat
      App Store Link: https://apps.apple.com/th/app/boom-boom-td/id6780721388?uo=4

       

      🤩 Hack Features

      - Damage Multiplier 
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
      • 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