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

    • Slayer Legend Cheats v600.4.9 +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/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 124 replies
    • Go Go Wolf! Cheats v8.1 +4
      Modded/Hacked App: Go Go Wolf! By MONSTER PLANET Corp.
      Bundle ID: com.MonsterPlanet.WolfGame
      App Store Link: https://apps.apple.com/us/app/go-go-wolf/id6572283560?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode
      - Multiply Attack
      - Instant Skills
      - Freeze Currencies

       

      Non-Jailbroken Hack: https://iosgods.com/topic/198033-go-go-wolf-v52-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/198032-go-go-wolf-cheats-v52-4/
        • Winner
        • Like
      • 30 replies
    • Cat Quest III v1.4.6 +14 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Cat Quest III By The Gentlebros Pte. Ltd.
      Bundle ID: com.thegentlebros.project-star
      App Store Link: https://apps.apple.com/us/app/cat-quest-iii/id1551304183?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Speed Multiplier
      - Time Scale Multiplier
      - Unlimited Gold -> Head into Settings and toggle the Restore Purchases button.*
      - Unlimited Crystals -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Equipment -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Skills -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Quest Items -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x1 -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x10 -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x50 -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Ship Blueprints -> Head into Settings and toggle the Restore Purchases button.*

      * - Only enable 1 feature at a time.
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 10 replies
    • Cat Quest III v1.4.6 +14 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Cat Quest III By The Gentlebros Pte. Ltd.
      Bundle ID: com.thegentlebros.project-star
      App Store Link: https://apps.apple.com/us/app/cat-quest-iii/id1551304183?uo=4

       
       

      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Speed Multiplier
      - Time Scale Multiplier
      - Unlimited Gold -> Head into Settings and toggle the Restore Purchases button.*
      - Unlimited Crystals -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Equipment -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Skills -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Quest Items -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x1 -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x10 -> Head into Settings and toggle the Restore Purchases button.*
      - Level Up x50 -> Head into Settings and toggle the Restore Purchases button.*
      - Unlock All Ship Blueprints -> Head into Settings and toggle the Restore Purchases button.*

      * - Only enable 1 feature at a time.
        • Thanks
        • Winner
        • Like
      • 9 replies
    • Prince of Persia Lost Crown v1.1.2 +13 Cheats [ God / O-HK ]
      Modded/Hacked App: Prince of Persia Lost Crown By Ubisoft
      Bundle ID: com.ubisoft.princeofpersia.thelostcrown.mobile.action.adventure.platform
      iTunes Store Link: https://apps.apple.com/us/app/prince-of-persia-lost-crown/id6504011865?uo=4

       
       

      🤩 Hack Features

      - God Mode
      - One-Hit Kill -> Linked. Use with God Mode.
      -- Full Game Unlocked
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 195 replies
    • Raise a Joseon Hunter ( 조선헌터 키우기 ) v1.4.2 +6 Jailed Cheats [ Mega Hack ]
      Modded/Hacked App: 조선헌터 키우기 By GROUP1024 Co., Ltd
      Bundle ID: com.group1024.korea
      App Store Link: https://apps.apple.com/kr/app/%EC%A1%B0%EC%84%A0%ED%97%8C%ED%84%B0-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746847732?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Attack Speed
      - Unlimited MP
      - Gold Multiplier
      - XP Multiplier
      • 5 replies
    • Raise a Joseon Hunter ( 조선헌터 키우기 ) v1.4.2 +6 Cheats [ Mega Hack ]
      Modded/Hacked App: 조선헌터 키우기 By GROUP1024 Co., Ltd
      Bundle ID: com.group1024.korea
      App Store Link: https://apps.apple.com/kr/app/%EC%A1%B0%EC%84%A0%ED%97%8C%ED%84%B0-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746847732?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Attack Speed
      - Unlimited MP
      - Gold Multiplier
      - XP Multiplier
      • 2 replies
    • Coop TD v1.4.3 +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Coop TD By Supermagic Inc.
      Bundle ID: com.supermagic.ios.cooptd
      iTunes Store Link: https://apps.apple.com/us/app/coop-td/id6503702666?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Unlimited In-Game Gold
      - Unlimited In-Game Main Stones
        • Informative
        • Thanks
        • Winner
        • Like
      • 63 replies
    • Coop TD v1.4.3 +3 Cheats [ Damage + More ]
      Modded/Hacked App: Coop TD By Supermagic Inc.
      Bundle ID: com.supermagic.ios.cooptd
      iTunes Store Link: https://apps.apple.com/us/app/coop-td/id6503702666?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Unlimited In-Game Gold
      - Unlimited In-Game Main Stones
        • Informative
        • Agree
        • Winner
        • Like
      • 86 replies
    • Idle Zombie Miner: Gold Tycoon v2.252.2070 +1++ Jailed Cheat [ Currencies ]
      Modded/Hacked App: Idle Zombie Miner: Gold Tycoon By VISTREX LIMITED
      Bundle ID: com.zombie.idleminertycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-zombie-miner-gold-tycoon/id6471983323?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Idle Zombie Miner: Gold Tycoon v2.53.1001 +1++ Cheat [ 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 116 replies
    • Idle Zombie Miner: Gold Tycoon v2.252.2070 +1++ Cheat [ Currencies ]
      Modded/Hacked App: Idle Zombie Miner: Gold Tycoon By VISTREX LIMITED
      Bundle ID: com.zombie.idleminertycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-zombie-miner-gold-tycoon/id6471983323?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Idle Zombie Miner: Gold Tycoon v2.53.1001 +1++ Jailed Cheat [ Unlimited Currencies ] - 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 76 replies
    • MeChat - Interactive Stories v4.37.2 +5 Jailed Cheats [ Unlimited Gems ]
      Modded/Hacked App: MeChat - Interactive Stories By IMPONILOX LIMITED
      Bundle ID: world.playme.mechat
      App Store Link: https://apps.apple.com/us/app/mechat-interactive-stories/id1536157979?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

      - Unlimited Gems -> Will increase instead of decrease.
      - Unlock All Photos
      - Unlock All Audio Clips
      -- VIP Enabled

      VIP
      - Unlimited Gems -> Earn some then disable this feature. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED!
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 809 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