Jump to content

18 posts in this topic

Recommended Posts

Posted (edited)

#import <CoreFoundation/CoreFoundation.h>
#import <substrate.h>
#import <Foundation/Foundation.h>
#include <substrate.h>
#include <string.h>

bool (*old__ZN6PlayerCanCraftRecipeER6Recipe) ();

bool $___ZN6PlayerCanCraftRecipeER6Recipe()
{
return true;
}


__attribute__((constructor)) void DylibMain()
{
MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6PlayerCanCraftRecipeER6Recipe")),(bool*)$__ZN6PlayerCanCraftRecipeER6Recipe,(bool**)&old__ZN6PlayerCanCraftRecipeER6Recipe);
}
The feature is free crafting

I was just practicing

Updated by kenny808
Posted (edited)

Remove the "#include" as it's not needed.

 

Other than that, looks good to me :3

Updated by DiDA
Posted

Remove the 2 "#include" as it's not needed.

 

Other than that, looks good to me :3

xD but still got those error about this $__ZN6PlayerCanCraftRecipeER6Recipe
Posted

xD but still got those error about this $__ZN6PlayerCanCraftRecipeER6Recipe

What does the error say?

Posted

Maybe @ can help since he made free crafting and a bunch of other features for Terraria. :)

Posted

Maybe @ can help since he made free crafting and a bunch of other features for Terraria. :)

Really?.... Lol Nvm then lol

Guest
This topic is now closed to further replies.
×
  • 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