Jump to content

How do I put this in tweak.xm? I tried a few things but eh..


Go to solution Solved by Juku,

7 posts in this topic

Recommended Posts

Posted

#1: -(void)setAvailableOrderSlots:(int)

#2: -(void)setPlayerLevel:(int)

#3: -(vois)setPlayerXp:(int)

 

One more question. If something says +(int) can I put it the same way as -(int).

 

Btw: I'm not totally new to hacking but I dont do much with void.

 

Thanks for any help!

Posted

-(void)setAvailableOrderSlots {
%orig(INT_MAX);
}

So basically, you replace Return with %orig and the value is inside the parentheses, if I remember correctly.

  • Solution
Posted

 

-(void)setAvailableOrderSlots {
%orig(INT_MAX);
}
So basically, you replace Return with %orig and the value is inside the parentheses, if I remember correctly.
Ohhh and how about +(int)

Ohhh and how about +(int)

would this work?

-(void)setAvailableOrderSlots:(int)fp8 {

%orig(999999999);

}

Posted

Ohhh and how about +(int)

would this work?

-(void)setAvailableOrderSlots:(int)fp8 {

%orig(999999999);

}

Yes and you can try it ^_^

If it didn't work you can try this

-(void)setAvailableOrderSlots:(int)arg1 {
arg1 = INT_MAX;
%orig(arg1)
Also you can change arg1 and fp8 to any name you want ^_^

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