Jump to content

How would i add this to the tweak.xm


Go to solution Solved by Rook,

7 posts in this topic

Recommended Posts

Posted

Hi its insidious 

 

 

Flex code need help with 

<string>Micromon Patch</string>
			<key>switchedOn</key>
			<false/>
			<key>units</key>
			<array>
				<dict>
					<key>methodObjc</key>
					<dict>
						<key>className</key>
						<string>PROBattleScene</string>
						<key>displayName</key>
						<string>-(int) getDamageTakenWithAttackerData:(id) skillData:(id) andDefenderData:(id)</string>
						<key>prefix</key>
						<string>-</string>
						<key>selector</key>
						<string>getDamageTakenWithAttackerData:skillData:andDefenderData:</string>
						<key>typeEncoding</key>
						<string>i20@0:4@8@12@16</string>
					</dict>
					<key>name</key>
					<string>Unit for -(int) getDamageTakenWithAttackerData:(id) skillData:(id) andDefenderData:(id)</string>
					<key>overrides</key>
					<array>
						<dict>
							<key>argument</key>
							<integer>0</integer>
							<key>type</key>
							<dict>
								<key>subtype</key>
								<integer>0</integer>
								<key>type</key>
								<integer>4</integer>
							</dict>
							<key>value</key>
							<dict>
								<key>type</key>
								<integer>4</integer>
								<key>value</key>
								<integer>0</integer>
							</dict>
						</dict>
					</array>
				</dict>
			</array>
		</dict>
	</array>
</dict>
</plist>

  • Solution
Posted
%hook DisplayName

-(int) getDamageTakenWithAttackerData:(id)arg1 skillData:(id)arg2 andDefenderData:(id)arg3 {
return 9999;
arg1 = [NSNumber numberWithBool:TRUE];
arg2 = [NSNumber numberWithInt:99999];
arg3 = [NSNumber numberWithInt:99999];
%orig(arg1, arg2, arg3);
}
​%end

You can change the Bool and Int depending on what you need.

Posted
%hook DisplayName

-(int) getDamageTakenWithAttackerData:(id)arg1 skillData:(id)arg2 andDefenderData:(id)arg3 {
return 9999;
arg1 = [NSNumber numberWithBool:TRUE];
arg2 = [NSNumber numberWithInt:99999];
arg3 = [NSNumber numberWithInt:99999];
%orig(arg1, arg2, arg3);
}
​%end

You can change the Bool and Int depending on what you need.

 

thanks 

Posted (edited)


%hook DisplayName

 

-(int)getDamageTakenWithAttackerData:(id)attackerData skillData:(id)skilldata andDefenderData:(id)defenderData {

%orig(9999, true, 99999,99999);

}

​%end

 

Updated by HATER
Posted

HEHEHHEHEHE you guys should post this in the secret section :3

 

@@DiDA Make another secret section for secret support only :ph34r:

Why secret support?

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