Jump to content

51 posts in this topic

Recommended Posts

Posted (edited)

Hey, you don't use the MAIN_STRUCT code so I think you can just ignore that one while writing the tweak (not sure)

 

I think this would work:

%hook MyMainGame

-(int)SYS_GetRemainderJewel
if(GetPrefBool(@"kJewels")) {
return 999999999;
}
return %orig;
}

%end

Updated by xShadowGhostx
Posted

Hey, you don't use the MAIN_STRUCT code so I think you can just ignore that one while writing the tweak (not sure)

 

I think this would work:

 

%hook MyMainGame

-(int)SYS_GetRemainderJewel
if(GetPrefBool(@"kJewels")) {
return 999999999;
}
return %orig;
}

%end

Nope :(

Didn't work :p

 

I think I tried that before, how would I write it in tweak.xm? Could you write the line :)

 

Also, I tried many typedefs and nothing worked. Exemple :

typedef struct _MAIN_STRUCT;

 

%hook MyGameMain

-(int) SYS_GetRemainderJewel:(_MAIN_STRUCT*)arg1 {

if(GetPrefBool(@"kJewels")) {

return 999999;

}

return %orig;

}

%end

 

Posted

May I ask what your Flex Patch acutally does to the game?

Like it states in the picture, it give 999k Jewels. It's constant so it does not reduce. I also found other things like infinite MP and HP ( linked with enemys ) and selling currency ( I sell something and get an X amount if gold ) they all work in flex. Just can't make it work in a patch

Posted (edited)

Like it states in the picture, it give 999k Jewels. It's constant so it does not reduce. I also found other things like infinite MP and HP ( linked with enemys ) and selling currency ( I sell something and get an X amount if gold ) they all work in flex. Just can't make it work in a patch

Ah, I got it. will try some things.

 

will be back to you later

 

Edit:

 

have to eat now, wll work on it after eating

Updated by xShadowGhostx
Posted

Ah, I got it. will try some things.

 

will be back to you later

 

Edit:

 

have to eat now, wll work on it after eating

Goodluck :)

Posted (edited)

Didn't work :p

 

I think I tried that before, how would I write it in tweak.xm? Could you write the line :)

 

Edit 1: Also, I tried many typedefs and nothing worked. Exemple :

typedef struct _MAIN_STRUCT;

 

%hook MyGameMain

-(int) SYS_GetRemainderJewel:(_MAIN_STRUCT*)arg1 {

if(GetPrefBool(@"kJewels")) {

return 999999;

}

return %orig;

}

%end

@interface _MAIN_STRUCT
@end
%hook MyMainGame
- (int)SYS_GetRemainderJewel:(_MAIN_STRUCT*)arg1 {
return 999999;
}
 
%end
Updated by KingRalph

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