Jump to content

36 posts in this topic

Recommended Posts

Posted (edited)

Try setting another number instead of 99999..

I tried a bunch of numbers smaller than that value, even the original health value which is 10, and it still crashes.

Updated by CosnotraLF
Posted

what do you think it is?

Don't know really. :MeGusta:

 

Might be the games problem since other hacks work with it. :3

Posted

Don't know really. :MeGusta:

 

Might be the games problem since other hacks work with it. :3

Ight thanks, I'll try it with a different function, like Zombie::getMaxHealth() whenever I get out of school. Thanks :)
Posted (edited)

Hmmm... idk, cause  what i did using hex editor, i set all the mobs health to #0x1 so they can be killed with only one hit, and it did worked, so i think im doing something wrong on tweak.xm, maybe the return type, idk.

Updated by CosnotraLF
Posted

Hmmm... idk, cause  what i did using hex editor, i set all the mobs health to #0x1 so they can be killed with only one hit, and it did worked, so i think im doing something wrong on tweak.xm, maybe the return type, idk.

You can also convert the other hack you made to MS using this tutorial: http://iosgods.com/topic/659-tut-code-injection-with-patcher/

 

The above tutorial is for making a Code Injection patcher btw.

Posted

You can also convert the other hack you made to MS using this tutorial: http://iosgods.com/topic/659-tut-code-injection-with-patcher/

 

The above tutorial is for making a Code Injection patcher btw.

hehe.. i dont get how to do this on my phone, he is doing it on a computer :(

sorry, this thread is taking so long. 

here is the code i have inside Tweak.xm:

#import <Foundation/Foundation.h>
#import <writeData.h>
BOOL pighealth;

%ctor{
pighealth = [[[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/prefbundle.plist"] valueForKey:@"kspeed"] boolValue];
if(pighealth)
{
writeData(0x004DB238, 0x01207047);
}
else
{
writeData(0x004DB238, 0x0A207047);
}
}
Posted

hehe.. i dont get how to do this on my phone, he is doing it on a computer :(

sorry, this thread is taking so long. 

Same thing. Just download the project files and copy his tweak.xm content into yours but just edit the address and offset with the one you have. :)

This might be of use to you also: http://iosgods.com/topic/1907-template-custom-nic-patcher-template/

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
×
  • 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