Jump to content

6 posts in this topic

Recommended Posts

Posted

How can i call this function and change the energy?
 

Token(Token = "0x2000150")]
public class CheatAccountSetEnergy : RequestPacket
{
	[Token(Token = "0x4000351")]
	[FieldOffset(Offset = "0x30")]
	[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x13955C", Offset = "0x13955C")]
	private int <Energy>k__BackingField;

	[Token(Token = "0x17000321")]
	public int Energy
	{
		[Token(Token = "0x60007A9")]
		[Address(RVA = "0x3742160", Offset = "0x3742160", VA = "0x3742160")]
		[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x14001C", Offset = "0x14001C")]
		get
		{
			return default(int);
		}
		[Token(Token = "0x60007AA")]
		[Address(RVA = "0x3742168", Offset = "0x3742168", VA = "0x3742168")]
		[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x14002C", Offset = "0x14002C")]
		set
		{
		}
	}

	[Token(Token = "0x60007AB")]
	[Address(RVA = "0x3742170", Offset = "0x3742170", VA = "0x3742170")]
	public CheatAccountSetEnergy()
	{
	}
}

 

Posted (edited)
15 hours ago, batchh said:

How can i call this function and change the energy?
 

Token(Token = "0x2000150")]
public class CheatAccountSetEnergy : RequestPacket
{
	[Token(Token = "0x4000351")]
	[FieldOffset(Offset = "0x30")]
	[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x13955C", Offset = "0x13955C")]
	private int <Energy>k__BackingField;

	[Token(Token = "0x17000321")]
	public int Energy
	{
		[Token(Token = "0x60007A9")]
		[Address(RVA = "0x3742160", Offset = "0x3742160", VA = "0x3742160")]
		[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x14001C", Offset = "0x14001C")]
		get
		{
			return default(int);
		}
		[Token(Token = "0x60007AA")]
		[Address(RVA = "0x3742168", Offset = "0x3742168", VA = "0x3742168")]
		[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x14002C", Offset = "0x14002C")]
		set
		{
		}
	}

	[Token(Token = "0x60007AB")]
	[Address(RVA = "0x3742170", Offset = "0x3742170", VA = "0x3742170")]
	public CheatAccountSetEnergy()
	{
	}
}

 

If I understood you correctly, you want to make a tweak, in this case the code will be like this:
 

%hook CheatAccountSetEnergy
- (int)Energy {
    int Energy = 9999999; 
    return Energy;
}
%end


I may be wrong, but I think you should look for another class where there will be values for example GetEnergy or get_Energy, because in this example I think you can't do for example offset patch from 0x3742160 on 00F0271EC0035FD6.
Like in this example:
 

[Token(Token = "0x6000356")]
    [Address(RVA = "0x25D0B6C", Offset = "0x25D0B6C", VA = "0x25D0B6C")]
    public int GetGold()
    {
        return 0;
    }

We can make offset patch with Custom Live Offset Patcher on offset 25D0B6C and change it to 00F0271EC0035FD6
But you should try, it'll be really nice if it does work out :)

Updated by hikiasi
  • Like 1
Posted
19 minutes ago, hikiasi said:

If I understood you correctly, you want to make a tweak, in this case the code will be like this:
 

%hook CheatAccountSetEnergy
- (int)Energy {
    int Energy = 9999999; 
    return Energy;
}
%end


I may be wrong, but I think you should look for another class where there will be values for example GetEnergy or get_Energy, because in this example I think you can't do for example offset patch from 0x3742160 on 00F0271EC0035FD6.
Like in this example:
 

[Token(Token = "0x6000356")]
    [Address(RVA = "0x25D0B6C", Offset = "0x25D0B6C", VA = "0x25D0B6C")]
    public int GetGold()
    {
        return 0;
    }

We can make offset patch with Custom Live Offset Patcher on offset 25D0B6C and change it to 00F0271EC0035FD6
But you should try, it'll be really nice if it does work out :)

Thanks for responding, but that’s not what I meant. 
My idea was, set the energy to a high value and then call the CheatAccountSetEnergy that is a request packet for the server, I have no idea on how to do that :(

Any ideas?

Posted
2 minutes ago, batchh said:

Thanks for responding, but that’s not what I meant. 
My idea was, set the energy to a high value and then call the CheatAccountSetEnergy that is a request packet for the server, I have no idea on how to do that :(

Any ideas?

I get your point, in that case you could try this

%hook CheatAccountSetEnergy

- (int)Energy
{
    int Energy = 99999999;  // Replace the original value with 999999
    return Energy; 
}

%end

%hook CheatAccountSetEnergy

- (void)sendRequestToServer
{
    %orig; // Call the original method to send the request to the server
}

%end

but I'm not sure about it to be honest, because I've never encountered it myself

  • Like 1
Posted
21 minutes ago, hikiasi said:

I get your point, in that case you could try this

%hook CheatAccountSetEnergy

- (int)Energy
{
    int Energy = 99999999;  // Replace the original value with 999999
    return Energy; 
}

%end

%hook CheatAccountSetEnergy

- (void)sendRequestToServer
{
    %orig; // Call the original method to send the request to the server
}

%end

but I'm not sure about it to be honest, because I've never encountered it myself

I will try :) thank you so much 

  • 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

    • Graveyard Empire v1.0.6 Debug Menu [+3 Cheats]
      Modded/Hacked App: Graveyard Empire By 24 HIT Riga SIA
      Bundle ID: com.graveyard.empire
      iTunes Store Link: https://apps.apple.com/us/app/graveyard-empire/id6680186576?uo=4

       

      🤩 Hack Features

      - Debug Menu (Enable and Click Settings Button)
      • 1 reply
    • Graveyard Empire v1.0.6 Debug Menu [+3 Jailed Cheats]
      Modded/Hacked App: Graveyard Empire By 24 HIT Riga SIA
      Bundle ID: com.graveyard.empire
      iTunes Store Link: https://apps.apple.com/us/app/graveyard-empire/id6680186576?uo=4

       

      🤩 Hack Features

      - Debug Menu (Enable and Click Settings Button)
      • 2 replies
    • Hex Warriors v2.2.1 Cheat Menu [+10 Jailed Cheats]
      Modded/Hacked App: Hex Warriors By Voodoo
      Bundle ID: com.dong.hexwarriors
      App Store Link: https://apps.apple.com/us/app/hex-warriors/id6736930021?uo=4


       

      🤩 Hack Features

      Cheat Menu (Currency, Auto Win, Cards and more)
      • 9 replies
    • Hex Warriors v2.2.1 Cheat Menu [+10 Cheats]
      Modded/Hacked App: Hex Warriors By Voodoo
      Bundle ID: com.dong.hexwarriors
      App Store Link: https://apps.apple.com/us/app/hex-warriors/id6736930021?uo=4



      🤩 Hack Features

      - Cheat Menu (Currency, Auto Win, Cards and more)
      • 7 replies
    • Draft Showdown v1.1.4 [+3 Jailed Cheats]
      Modded/Hacked App: Draft Showdown By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.draftwar
      App Store Link: https://apps.apple.com/us/app/draft-showdown/id6743368869?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
      • 2 replies
    • Draft Showdown v1.1.4 [+3 Cheats]
      Modded/Hacked App: Draft Showdown By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.draftwar
      App Store Link: https://apps.apple.com/us/app/draft-showdown/id6743368869?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
       
      • 3 replies
    • Endless Wander - Roguelike RPG v2.4.15 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
      • 4 replies
    • Endless Wander - Roguelike RPG v2.4.15 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
      • 5 replies
    • Pal Go: Tower Defense TD v0.3.73 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 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/
      • 46 replies
    • Pal Go: Tower Defense TD v0.3.73 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 71 replies
    • Derailed: Survival Adventure v1.8.0 [+3 Jailed Cheats]
      Modded/Hacked App: Derailed: Survival Adventure By Kwalee Ltd
      Bundle ID: com.kwalee.derailed
      iTunes Store Link: https://apps.apple.com/us/app/derailed-survival-adventure/id6670252580?uo=4



      🤩 Hack Features

      - Free Shop (IAP, No Ads, Chest)
      - Never Die
      - Always Can Unlock Tiles
      • 8 replies
    • Derailed: Survival Adventure v1.8.0 [+3 Cheats]
      Modded/Hacked App: Derailed: Survival Adventure By Kwalee Ltd
      Bundle ID: com.kwalee.derailed
      iTunes Store Link: https://apps.apple.com/us/app/derailed-survival-adventure/id6670252580?uo=4

       

      🤩 Hack Features

      - Free Shop (IAP, No Ads, Chest)
      - Never Die
      - Always Can Unlock Tiles
      • 7 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