Jump to content

PixelYT

Member
  • Posts

    59
  • Joined

  • Last visited

Everything posted by PixelYT

  1. gs
  2. k
  3. Let's say I have this method: private int AmmoAmount(){}; // 0xOFFSET And I wanted hook it and multiply or add my current ammo amount instead of returning an exact value. How would I do that? Is this how I would do it? Example: int (*old_AmmoAmount)(void *instance); int AmmoAmount(void *instance) { return old_AmmoAmount(instance) * 10; // Return whatever my current ammo is multiplied by 10 } return old_AmmoAmount(instance); //Just return exact original value } // MSHOOKFUNCTION Would that work? Basically what I want to do is using arithmetic operators to change my ammo instead of returning an exact value in the hook like we do return 99999; @Ted2I am sorry for bothering you, but I hope you help me because you are the only one helping people and the android help section is very inactive
  4. why do it on emulator?just directly code the esp into the game from the game's functions
  5. reply reply
  6. PixelYT

    ESP code

    h
  7. @Ted2 I just have one more quick question, that i'll ask here, I already asked on another site, but didn't receive a good response. So there was one class called IAPManager or something like that, and inside it there were many useful functions that if called, would buy you whatever it is supposed to, but inside that class there was no Update/LateUpdate/FixedUpdate method (I know in some cases they can be renamed, but I looked and that wasn't the case), so would I hook Start or Awake and call those functions through a function pointer? Which one works, or does neither work?
  8. Okay, I don't have a problem with hooking, it's just that I wanted to know if it was possible to set a value to a function inside a hook, but other than that, I have no problem patching or hooking the function.
  9. What's the official iosgods channel? i see several ones
  10. Let's say I found this method and I wanna change the value to 0: private int ReloadDuration(); // 0x2347C82 I would just do it by hooking it and returning 0 like this: int (*old_ReloadDuration)(void *instance); int ReloadDuration(void *instance) { if(instance != NULL) { return 0; } return old_ReloadDuration(instance); } // MShookfunction whatever lol But can I do it by making a function pointer and changing the value of it inside a hook and how would I do it? Would I do it like this? int (*ReloadDuration)(void *instance) = (int (*)(void *))getAbsoluteAddress(targetLibName, 0xOFFSET); // Function pointer for int ReloadDuration void (*old_FixedUpdate)(void *instance); void FixedUpdate(void *instance) { if(instance != NULL) { int Reloadtime = ReloadDuration(instance); // Declare a variable to our function pointer and call it ReloadTime int ReloadTime = 0; // Set the value to 0 } old_FixedUpdate(instance); } // MSHookfunction of Fixedupdate, whatever @Ted2 you or anyone can help me please?
  11. replying to unlock content
  12. One more question: inside of the if(instance != NULL) statement, don't we use ammo to set parameters to whatever we like and then after it, we just put the old_ammo in case instance is NULL? Like this and not like the above one: void(*old_ammo)(void *instance, int value, bool reload); // this holds the original value of the method void ammo(void *instance, int value, bool reload) // this is the hooked method where we change the value to whatever we like { if(instance != NULL) { ammo(instance, 9999, false); // Use the hooked method to change int value to 9999, and bool reload to false } old_ammo(instance, value, reload); // in case instance is NULL, call the old_ammo which holds the original value } MsHookFunction((void*)getAbsoluteAddress(0x289235), (void*)ammo, (void**)&old_ammo);
×
  • 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