Skip to content
Guest Big Announcement

Help with Tweak.xm

Featured Replies

ok so i tried a lot writing this i failed can someone help me by rewriting these, at first i got error saying Dot ( . ) aren't allowed and then i tried to rewrite it with other codes i found i failed again and again.

%hook Cupid.Setting

-(bool) IsVipMember {
return TRUE;
}

%hook CupidIAPHelper

-(void)setIsVipMember:(bool) {
return; TRUE;

}

%hook Cupid.Setting

-(bool)IsVipMember {
return TRUE;

}

and this's the appdelegate same it has Dot in it %hook Cupid.AppDelegate 

Just now, DiDA said:

Picture of Flex?

This is what we tried

%ctor {
    %init(CupidSetting = objc_getClass("Cupid.UserSetting"));
};

%ctor  {
    %init(CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

%ctor {
    %init(CupidIAPHelper = objc_getClass("Cupid.IAPHelper"));
};





AND

%ctor {
    %init(CupidSetting = objc_getClass("Cupid.UserSetting"));
	%init(CupidIAPHelper = objc_getClass("Cupid.IAPHelper"));
	%init(CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

 

But it only allows us to use ONE %init func

  • Author
14 minutes ago, DiDA said:

Picture of Flex?

 

12 minutes ago, Ted2 said:

This is what we tried


%ctor {
    %init(CupidSetting = objc_getClass("Cupid.UserSetting"));
};

%ctor  {
    %init(CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

%ctor {
    %init(CupidIAPHelper = objc_getClass("Cupid.IAPHelper"));
};





AND

%ctor {
    %init(CupidSetting = objc_getClass("Cupid.UserSetting"));
	%init(CupidIAPHelper = objc_getClass("Cupid.IAPHelper"));
	%init(CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

 

But it only allows us to use ONE %init func

https://imgur.com/a/Ihhai 

2 hours ago, Ted2 said:

This is what we tried


%ctor {
    %init(CupidSetting = objc_getClass("Cupid.UserSetting"));
};

%ctor  {
    %init(CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

%ctor {
    %init(CupidIAPHelper = objc_getClass("Cupid.IAPHelper"));
};





AND

%ctor {
    %init(CupidSetting = objc_getClass("Cupid.UserSetting"));
	%init(CupidIAPHelper = objc_getClass("Cupid.IAPHelper"));
	%init(CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

 

But it only allows us to use ONE %init func

I was going to put tutorial but "someone" did. Maybe I will post it with information later. *I did this on my own*

%hook CupidSetting

-(bool) IsVipMember {
return TRUE;
}

%end

%hook CupidIAPHelper
-(void)setIsVipMember:(bool)arg1 {
arg1 = TRUE;
}

%end


%ctor {
    %init(CupidSetting = objc_getClass("Cupid.Setting"), CupidIAPHelper = objc_getClass("Cupid.IAPHelper"), CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

@Demi-God

Updated by Amuyea

1 minute ago, Amuyea said:

I was going to put tutorial but "someone" did. Maybe I will post it with information later. *I did this on my own*


%hook CupidSetting

-(bool) IsVipMember {
return TRUE;
}

%end

%hook CupidIAPHelper
-(void)setIsVipMember:(bool) {
return; TRUE;

}

%end


%ctor {
    %init(CupidSetting = objc_getClass("Cupid.Setting"), CupidIAPHelper = objc_getClass("Cupid.IAPHelper"), CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

@Demi-God

Oh god, ofcourse. Use the , 

omg :facepalm: nice @Amuyea !

1 minute ago, Ted2 said:

Oh god, ofcourse. Use the , 

omg :facepalm: nice @Amuyea !

I actually faced this problem before and did sh!t on it and saved note on this kind, "file got lost somewhere on laptop"... 

Had to search for the game with . class and did sh!t again.

You are welcome :p

Updated by Amuyea

Just now, Amuyea said:

I actually faced this problem before and did sh!t on it and saved note on this kind, "file got lost somewhere on laptop"... 

Had to search for the game with . class and did sh!t again.

You are welcome :p

Hahah, sick :p.  Very nice

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.