Skip to content
Guest Big Announcement

How would i add this to the tweak.xm

Featured Replies

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>

Solved by Rook

  • Solution
%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.

  • Author
%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 


%hook DisplayName

 

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

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

}

​%end

 

Updated by HATER

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

 

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

Why secret support?

:MeGusta: You haven't read the WARNING post in secret section don't you? :facepalm:

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.