Jump to content

IGM Help


Go to solution Solved by Rook,

12 posts in this topic

Recommended Posts

Posted

Show me your tweak.xm and makefile.

Tweak.xm:

 

#import "Hack.h"

#import "HackManager.h"

@class Hack;

@class HackManager;

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.johnkittz.farmkill.plist"

 

#define FENCEHACK 0

#define ZOMBIEHACK 1

#define CASHHACK 2

#define SURVIVORHACK 3

 

HackManager *hackmanager = nil;

 

%hook FraggerAppDelegate

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12

{

    //All Orientations in struct are: landscapeLeft, landscapeRight, portrait, and portraitUpsideDown. They are set to false by default. Set the ones supported in the app to true.

    struct AllowedOrientations supportedOrientations = MakeInitialOrientations();

    supportedOrientations.landscapeLeft = true;

    supportedOrientations.landscapeRight = true;

 

    hackmanager = [[HackManager alloc]initWithDictPath:PLIST_PATH hackerName:@"JohnKittz" coordX:10 coordY:20 andOrientation:UIInterfaceOrientationLandscapeRight andSupportedOrientations:supportedOrientations];

 

    [hackmanager addHackWithKey:@"kfence" andName:@"Fence life" andType:NUMBER];

    [hackmanager addHackWithKey:@"kzom" andName:@"zombie stats" andType:NUMBER];

    [hackmanager addHackWithKey:@"kCash" andName:@"Cash" andType:NUMBER];

    [hackmanager addHackWithKey:@"ksurvivor" andName:@"survivors" andType:NUMBER];

    return %orig;

}

%end

 

%hook SkippyConstants

- (float)bonusCashMultiplier

{

    return [[hackmanager getHackValueAtIndex:CASHHACK]floatValue];

}

%end

 

%hook FarmKillData

- (int)farmKillCashMult

{

    return [[hackmanager getHackValueAtIndex:CASHHACK]intValue];

}

%end

 

%hook MudskipperStatsScreen

- (int)bonusCash

{

    return [[hackmanager getHackValueAtIndex:CASHHACK]intValue];

}

%end

 

%hook MoneyDrop

- (float)amount

{

    return [[hackmanager getHackValueAtIndex:CASHHACK]floatValue];

}

 

- (float)moneyMultiply

{

    return [[hackmanager getHackValueAtIndex:CASHHACK]floatValue];

}

%end

 

%hook Zombie

- (float)attack

{

    return [[hackmanager getHackValueAtIndex:ZOMBIEHACK]floatValue];

}

 

- (float)life

{

    return [[hackmanager getHackValueAtIndex:ZOMBIEHACK]floatValue];

}

%end

 

%hook Fence

- (float)life

{

    return [[hackmanager getHackValueAtIndex:FENCEHACK]floatValue];

}

%end

 

%hook FarmKillStats

- (int)stats_survivorsKilled

{

    return [[hackmanager getHackValueAtIndex:SURVIVORHACK]intValue];

}

%end

Makefile:

 

ARCHS = armv7 arm64

 

FarmKill_LDFLAGS += -W1,-segalign,4000

 

include theos/makefiles/common.mk

 

TWEAK_NAME = FarmKill

FarmKill_FILES = Tweak.xm HackManager.m Hack.m

FarmKill_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

    install.exec "killall -9 SpringBoard"

 

  • Solution
Posted

FarmKill_FRAMEWORKS = UIKit CoreGraphics

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