Jump to content

6 posts in this topic

Recommended Posts

Posted

You cannot directly mod those enums, they're constants

for example, 

1 = Gold
2 = Gems, etc..

Instead of wasting your time and writing strings, you can use integers to identify those strings

You should look for functions that make use of these enums

  • Like 1
Posted
  On 4/10/2022 at 1:38 PM, Zahir said:

Você não pode modificar diretamente esses enums, eles são constantes

por exemplo, 

1 = Ouro
2 = Gemas, etc.

Em vez de desperdiçar seu tempo e escrever strings, você pode usar números inteiros para identificar essas strings

Você deve procurar funções que fazem uso dessas enumerações

Expand  

send me script example, pls

Posted (edited)

DamageType.Generic is equal to int damageType = 0; (same as DamageType damageType = DamageType.Generic)
DamageType.Hunger is equal to int damageType = 1;
DamageType.Thirst
is equal to int damageType = 2;

void MakeDamage(int damage, DamageType damageType) - > MakeDamage(100, DamageType.Generic) -> MakeDamage(100, 0)

hook function
 

void (*MakeDamage)(void *instance, int damage, int damageType) = nil;
void _MakeDamage(void *instance, int damage, int damageType){
  if(damageType == 0)
  {
    damageType = 1;
    MakeDamage(instance, damage, damageType);
  }
  else if(damageType == 1)
  {
    MakeDamage(instance, 0, damageType);
  }
  else
  {
    MakeDamage(instance, damage, damageType);
  }
}

 

Updated by gogigogi1
Posted (edited)
  On 4/11/2022 at 2:05 PM, gogigogi1 said:

DamageType.Generic is equal to int damageType = 0; (same as DamageType damageType = DamageType.Generic)
DamageType.Hunger is equal to int damageType = 1;
DamageType.Thirst
is equal to int damageType = 2;

void MakeDamage(int damage, DamageType damageType) - > MakeDamage(100, DamageType.Generic) -> MakeDamage(100, 0)

hook function
 

void (*MakeDamage)(void *instance, int damage, int damageType) = nil;
void _MakeDamage(void *instance, int damage, int damageType){
  if(damageType == 0)
  {
    damageType = 1;
    MakeDamage(instance, damage, damageType);
  }
  else if(damageType == 1)
  {
    MakeDamage(instance, 0, damageType);
  }
  else
  {
    MakeDamage(instance, damage, damageType);
  }
}

 

Expand  

 

 

 

I tried but it didn't work, see my script

i want to do fall damage when i jump high

 

	// Token: 0x06001E39 RID: 7737 RVA: 0x00002053 File Offset: 0x00000253
		[Token(Token = "0x6001E39")]
		[Address(RVA = "0x6E2D68", Offset = "0x6E2D68", VA = "0x6E2D68")]
		public void Hurt(float amount, ET.DamageType type, [Optional] PlayerManager attacker)
		{
		}


// Oxide.ET.DamageType
// Token: 0x04001A78 RID: 6776
[Token(Token = "0x4001A78")]
public const ET.DamageType Fall = 12;


// its my code in mod menu



void (*orig_Update) (void* instance);
void Update(void* instance) {


    if (instance != NULL && hack1)

    {

        *(float*)((uint64_t)instance + 0x90) = 12.0f; // jump height
        *(float*)((uint64_t)instance + 0x88) = 12.0f; //speed

    }


    return orig_Update(instance);
}

void (*orig_Hurt)(void *instance,float amount, int DamageType , int attacker) ;
void Hurt(void *instance, float amount, int DamageType,int attacker){
    if(hack1 && DamageType == 12)
    {
        DamageType = 12; // fall
        Hurt(instance, 0, DamageType ,attacker);
    }
        else if(DamageType == 12)
        {
            Hurt(instance, 0, DamageType,attacker);
        }
        else
        {
            Hurt(instance,amount,DamageType,attacker);
        }
    }


// hook


 MSHookFunction((void *)getAbsoluteAddress(targetLibName,string2Offset(OBFUSCATE_KEY("0x6E2D2C",'?'))),(void *) Hurt,(void **)&orig_Hurt);

 MSHookFunction((void *)getAbsoluteAddress(targetLibName,string2Offset(OBFUSCATE_KEY("0x737570",'?'))),(void *) Update,(void **)&orig_Update);


I also changed the DamageType to type but it didn't work..
  
  
  

 

https://www.youtube.com/watch?v=Tgx4vIDO_kY

game :  https://play.google.com/store/apps/details?id=com.catsbit.oxidesurvivalisland&hl=pt_BR&gl=US

Updated by fdhbyfgd
Posted

first of all its seems thats u hook wrong function

because u hook is wrong and will not work at all

 

void (*orig_Hurt)(void *instance,float amount, int DamageType , int attacker) ;
void Hurt(void *instance, float amount, int DamageType,int attacker){
    if(hack1 && DamageType == 12)
    {
        DamageType = 12; // fall
        orig_Hurt(instance, 0, DamageType ,attacker);
    }
        else if(DamageType == 12)
        {
            orig_Hurt(instance, 0, DamageType,attacker);
        }
        else
        {
            orig_Hurt(instance,amount,DamageType,attacker);
        }
}


 

with ur mistake u not able take damage at all but u take

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

    • Dragon Wings: RPG Shoot em up v1.4.0 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Dragon Wings: RPG Shoot 'em up By Spirit Bomb Company Limited
      Bundle ID: rpg.arcade.space.shooter.dragon.wings
      App Store Link: https://apps.apple.com/us/app/dragon-wings-rpg-shoot-em-up/id6741735947?uo=4

       

      🤩 Hack Features

      - Super Card Active

      - Gems

      - Gold

      - Never Die

      - ATK 
        • Like
      • 10 replies
    • Dragon Wings: RPG Shoot em up v1.4.0 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Dragon Wings: RPG Shoot 'em up By Spirit Bomb Company Limited
      Bundle ID: rpg.arcade.space.shooter.dragon.wings
      App Store Link: https://apps.apple.com/us/app/dragon-wings-rpg-shoot-em-up/id6741735947?uo=4
       

      🤩 Hack Features

      - Super Card Active

      - Gems

      - Gold

      - Never Die

      - ATK 
        • Thanks
      • 6 replies
    • Plant Survivor:Bang Bang v3.4.1 [ +10 Jailed ] Currency Max
      Modded/Hacked App: Plant Survivor:Bang Bang By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b5
      iTunes Store Link: https://apps.apple.com/us/app/plant-survivor-bang-bang/id6737405420?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Avatar Unlocked

      - Frame Unlocked

      - Currency Max [ Earns Some - Disable After Hack ]

      - Resources Max [ Earns Some - Disable After Hack ]

      - Silver Coins [ Earn Some ]

      - Auto Win Wave [ Challenge & Adventure ]

      - HP [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DMG [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DEF [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 27 replies
    • Plant Survivor:Bang Bang v3.4.1 [ +10 Cheats ] Currency Max
      Modded/Hacked App: Plant Survivor:Bang Bang By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b5
      iTunes Store Link: https://apps.apple.com/us/app/plant-survivor-bang-bang/id6737405420?uo=4

       

       

      🔧 Mod Requirements

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

       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Avatar Unlocked

      - Frame Unlocked

      - Currency Max [ Earns Some - Disable After Hack ]

      - Resources Max [ Earns Some - Disable After Hack ]

      - Silver Coins [ Earn Some ]

      - Auto Win Wave [ Challenge & Adventure ]

      - HP [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DMG [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DEF [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested


      🍏 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
        • Thanks
        • Winner
        • Like
      • 28 replies
    • Plant Survivor:Bang Bang v3.4.1 [ +4 Jailed ] DMG
      Modded/Hacked App: Plant Survivor:Bang Bang By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b5
      iTunes Store Link: https://apps.apple.com/us/app/plant-survivor-bang-bang/id6737405420?uo=4


      🚀 Hack Features

      - Silver Coins

      - HP [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DMG [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DEF [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Winner
        • Like
      • 16 replies
    • Plant Survivor:Bang Bang v3.4.1 [ +4 Cheats ] DMG
      Modded/Hacked App: Plant Survivor:Bang Bang By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b5
      iTunes Store Link: https://apps.apple.com/us/app/plant-survivor-bang-bang/id6737405420?uo=4

       

       

      🔧 Mod Requirements

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

       

      🚀 Hack Features

      - Silver Coins

      - HP [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DMG [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DEF [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested


      🍏 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/
        • Agree
        • Thanks
        • Winner
        • Like
      • 14 replies
    • Pocket Necromancer v1.5 [ +11 Cheats ] Gold Unlimited
      Modded/Hacked App: Pocket Necromancer By Sandsoft Publishing Company
      Bundle ID: com.quicksand.pocketnecromancer
      iTunes Store Link: https://apps.apple.com/us/app/pocket-necromancer/id6450004790?uo=4


      Hack Features:
      - ADS NO [ Reward Fee ]

      - Premium Active

      - Energy Cost 0

      - Energy Increaser

      - Gold Unlimited [ Win Battle ] Rewards

      - Stage Unlocked

      - Chapter Unlocked +2

      - Play Any [ Stage & Ch ]

      - Never Die

      - DMG

      - Speed Mov

      - Bullet Max [ Works With Weapon Only Just Equip ]


      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
        • Winner
        • Like
      • 47 replies
    • Pocket Necromancer v1.5 [ +11 Jailed ] Gold Unlimited
      Modded/Hacked App: Pocket Necromancer By Sandsoft Publishing Company
      Bundle ID: com.quicksand.pocketnecromancer
      iTunes Store Link: https://apps.apple.com/us/app/pocket-necromancer/id6450004790?uo=4


      Hack Features:

      - ADS NO [ Reward Fee ]

      - Premium Active

      - Energy Cost 0

      - Energy Increaser

      - Gold Unlimited [ Win Battle ] Rewards

      - Stage Unlocked

      - Chapter Unlocked +2

      - Play Any [ Stage & Ch ]

      - Never Die

      - DMG

      - Speed Mov

      - Bullet Max [ Works With Weapon Only Just Equip ]

       
      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/


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App
        • Informative
        • Agree
        • Winner
        • Like
      • 51 replies
    • Pocket Love! Cheats v2.15.4  +1
      Modded/Hacked App: Pocket Love! By HyperBeard Inc.
      Bundle ID: com.hyperbeard.pocketlove
      iTunes Store Link: https://apps.apple.com/us/app/pocket-love/id1575412509?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

      - Infinite Currencies

       

      Non-Jailbroken Hack: https://iosgods.com/topic/155397-pocket-love-v117-jailed-cheats-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/155395-pocket-love-cheats-v2152-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 43 replies
    • The Chase: World Tour v1.9.0 +2 Jailed Cheats [ Freeze Time ]
      Modded/Hacked App: The Chase: World Tour By Barnstorm Games Limited
      Bundle ID: com.barnstormgames.chasewt
      App Store Link: https://apps.apple.com/gb/app/the-chase-world-tour/id1615058556?uo=4
       
       

      🤩 Hack Features

      - Freeze Cash Builder Time
      - Freeze Final Chase Time
      • 0 replies
    • The Chase: World Tour v1.9.0 +2 Cheats [ Freeze Time ]
      Modded/Hacked App: The Chase: World Tour By Barnstorm Games Limited
      Bundle ID: com.barnstormgames.chasewt
      App Store Link: https://apps.apple.com/gb/app/the-chase-world-tour/id1615058556?uo=4

       


      🤩 Hack Features

      - Freeze Cash Builder Time
      - Freeze Final Chase Time
        • Winner
      • 0 replies
    • Couple Breaker: Romance Otome v1.0.3 +1 Jailed Cheat [ Free Premium Choices ]
      Modded/Hacked App: Couple Breaker: Romance Otome By Storytaco.inc
      Bundle ID: com.storytaco.p37client
      App Store Link: https://apps.apple.com/us/app/couple-breaker-romance-otome/id6502985582?uo=4

       


      🤩 Hack Features

      - Free Premium Choices
      • 0 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