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

    • Chaos Road: 3D Car Racing Game v5.17.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Chaos Road: 3D Car Racing Game By Supercharge Mobile Corp.
      Bundle ID: com.Zeeppo.ChaosRoad
      iTunes Store Link: https://apps.apple.com/us/app/chaos-road-3d-car-racing-game/id1471023434?uo=4

      Hack Features:
      - Gems
      - Gold
      - ViP Active
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 18 replies
    • Chaos Road: 3D Car Racing Game v5.17.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Chaos Road: 3D Car Racing Game By Supercharge Mobile Corp.
      Bundle ID: com.Zeeppo.ChaosRoad
      iTunes Store Link: https://apps.apple.com/us/app/chaos-road-3d-car-racing-game/id1471023434?uo=4

      Hack Features:
      - Gems
      - Gold
      - ViP Active 
        • Agree
        • Like
      • 29 replies
    • Arena Heroes: Online RPG v1.13.6 [ +2 Cheats ] Skill CD
      Modded/Hacked App: Arena Heroes: Online RPG By INFUSION GAMES OU
      Bundle ID: com.infusiongames.fighting.rpg.adventure.multiplayer.wars.pvp.battles.arena.heroes
      iTunes Store Link: https://apps.apple.com/us/app/arena-heroes-online-rpg/id6448993010?uo=4
       

      🤩 Hack Features

      - DMG [ When Enemy Turn Disable ]
      - Skill CD



      DMG Not Tested With Dungeon & Arena 
        • Agree
        • Haha
        • Winner
        • Like
      • 26 replies
    • Arena Heroes: Online RPG v1.13.6 [ +2 Jailed ] Skill CD
      Modded/Hacked App: Arena Heroes: Online RPG By INFUSION GAMES OU
      Bundle ID: com.infusiongames.fighting.rpg.adventure.multiplayer.wars.pvp.battles.arena.heroes
      iTunes Store Link: https://apps.apple.com/us/app/arena-heroes-online-rpg/id6448993010?uo=4


      🤩 Hack Features

      - DMG [ When Enemy Turn Disable ]
      - Skill CD



      DMG Not Tested With Dungeon & Arena 
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 24 replies
    • Shadow Kingdom:Frontier War TD v1.0.19 [ +7 Cheats ] Currency & Resources
      Modded/Hacked App: Shadow Kingdom:Frontier War TD By Pusilung HK Limited
      Bundle ID: com.ezg006.shadow.war.tower.defense.strategy.game.td
      App Store Link: https://apps.apple.com/us/app/shadow-kingdom-frontier-war-td/id6747165226?uo=4


      🤩 Hack Features

      - Currency [ No Need ]

      - Resources [ No Need ]

      - Energy Cost 0

      - Spin Free

      - Silver Coin [ Build Then Get ] Disable After Hacked

      - HP

      - ATK
        • Agree
        • Thanks
        • Winner
        • Like
      • 12 replies
    • Shadow Kingdom:Frontier War TD v1.0.19 [ +7 Jailed ] Currency & Resources
      Modded/Hacked App: Shadow Kingdom:Frontier War TD By Pusilung HK Limited
      Bundle ID: com.ezg006.shadow.war.tower.defense.strategy.game.td
      App Store Link: https://apps.apple.com/us/app/shadow-kingdom-frontier-war-td/id6747165226?uo=4


      🤩 Hack Features

      - Currency [ No Need ]

      - Resources [ No Need ]

      - Energy Cost 0

      - Spin Free

      - Silver Coin [ Build Then Get ] Disable After Hacked

      - HP

      - ATK
        • Thanks
        • Winner
        • Like
      • 12 replies
    • Galaxy Attack: Alien Shooter v5.12.19 [ +30++ Cheats ] Currency Max
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Linked With Battle Pass ]

      - Gold [ Linked With Battle Pass ]

      - Chest [ Linked With Battle Pass ]

      - Monthly Card Normal

      - Monthly Card Super

      - Monthly Card Premium

      - Energy NO Need [ When 0 Play Unlimited ]

      - Evolve Stone

      - Unlimited Ship [ Select Any Ship Before The Battle ]

      - Drone Ticket

      - Terminator Point

      - Tech Point

      - Overload Ball

      - Matrix Max

      - Golden Revive Max

      - Revive Unlimited

      - Campain Revive Cost Gold [ Earn With Gold ]

      - Gems Revive  [Earn With Gems ]

      - Endless Revive Cost Gold [Earn With Gold ]

      - Talent Upgrade Cost  [Earn With Gold ]

      - Battle Pass Premium Active

      - BP Free [ Claim Unlimited ]

      - BP Premium [ Claim Unlimited ]

      - BP Free Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - BP Premium Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - Bullet Max

      - Life Max

      - Damage

      Warning 


      Don"t Abuse The Hack In Case Banned Any Data Lose I'M Not Responsible  

       

      🍏 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
        • Haha
        • Winner
        • Like
      • 84 replies
    • Galaxy Attack: Alien Shooter v5.12.19 [ +30++ Jailed ] Currency Max
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4

       

       

      🔧 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Linked With Battle Pass ]

      - Gold [ Linked With Battle Pass ]

      - Chest [ Linked With Battle Pass ]

      - Monthly Card Normal

      - Monthly Card Super

      - Monthly Card Premium

      - Energy NO Need [ When 0 Play Unlimited ]

      - Evolve Stone

      - Unlimited Ship [ Select Any Ship Before The Battle ]

      - Drone Ticket

      - Terminator Point

      - Tech Point

      - Overload Ball

      - Matrix Max

      - Golden Revive Max

      - Revive Unlimited

      - Campain Revive Cost Gold [ Earn With Gold ]

      - Gems Revive  [Earn With Gems ]

      - Endless Revive Cost Gold [Earn With Gold ]

      - Talent Upgrade Cost  [Earn With Gold ]

      - Battle Pass Premium Active

      - BP Free [ Claim Unlimited ]

      - BP Premium [ Claim Unlimited ]

      - BP Free Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - BP Premium Rewards Unlimited [ Gold Gems Chest Stone + More ]

      - Bullet Max

      - Life Max

      - Damage

      Warning 


      Don"t Abuse The Hack In Case Banned Any Data Lose I'M Not Responsible 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      📥 iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 65 replies
    • Galaxy Attack Alien Shooter v5.12.19 [ +3 Jailed ] Never Die
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4


      Hack Features:
      - Max Bullet
      - Max Life
      - DMG



      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
      • 62 replies
    • Galaxy Attack Alien Shooter v5.12.19 [ +3 Cheats ] Never Die
      Modded/Hacked App: Galaxy Attack: Alien Shooter By ABIGAMES PTE. LTD
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4


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


      Hack Features:
      - Max Life 
      - Damage Multi [PvP Use Only Boss ] 
      - Max Bullet



      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/


      iOS Hack Download Link:

      Hidden Content

      Download Hack
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 214 replies
    • Backpack Rush v1.682.213 [ +20 Cheats ] Currency Max
      Modded/Hacked App: Backpack Rush By Noodle Games Limited
      Bundle ID: com.onicore.backpack.rush
      iTunes Store Link: https://apps.apple.com/us/app/backpack-rush/id6736857029?uo=4

      Hack Features:
      - ADS Ticket

      - Gems

      - Gold

      - Energy

      - Silver Coins [ Merge Weapons ]

      - Summon Coins

      - Heroic Water [ Hero Up ]

      - Meteor Essence [ Gear Refining ]

      - Talent Book +2

      - Core Evo Stone [ Pet Evo Up ]

      - Fish Hook [ Obtain Gear During A Voyage ]

      - Pickaxe [ Mine ]

      - Blueprint [ Outfit Equip UP ]

      - Fragment [ Gear Up ]

      - Fragment [ Pet UP ]

      - Dungeon Keys +3

      - Spin

      - Enemy Status [ HP ATK 0 ] Easy Kill

      - DMG [ Outfit Just Equip & Unequip ]

      - HP [ Outfit Just Equip & Unequip ]


      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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 40 replies
    • Backpack Rush v1.682.213 [ +20 Jailed ] Currency Max
      Modded/Hacked App: Backpack Rush By Noodle Games Limited
      Bundle ID: com.onicore.backpack.rush
      iTunes Store Link: https://apps.apple.com/us/app/backpack-rush/id6736857029?uo=4

      Hack Features:

      - ADS Ticket

      - Gems

      - Gold

      - Energy

      - Silver Coins [ Merge Weapons ]

      - Summon Coins

      - Heroic Water [ Hero Up ]

      - Meteor Essence [ Gear Refining ]

      - Talent Book +2

      - Core Evo Stone [ Pet Evo Up ]

      - Fish Hook [ Obtain Gear During A Voyage ]

      - Pickaxe [ Mine ]

      - Blueprint [ Outfit Equip UP ]

      - Fragment [ Gear Up ]

      - Fragment [ Pet UP ]

      - Dungeon Keys +3

      - Spin

      - Enemy Status [ HP ATK 0 ] Easy Kill

      - DMG [ Outfit Just Equip & Unequip ]

      - HP [ Outfit Just Equip & Unequip ]

       
      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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 40 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