Skip to content
Guest Big Announcement

Featured Replies

so i keep getting this error

 

 

DU2fGLs.png

 

 

even when compiling for arm64 i get errors the simlliar to this one

Solved by Rook

  • Author

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"

 

  • Author

If I remember correctly, you need to include Foundation as well.

so #import <Foundation.h>?

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.