Jump to content

9 posts in this topic

Recommended Posts

Posted

So I've downloaded the NIC patcher (which is used for MS etc) but I don't know which template to choose from when attempting to make MSHook patcher...

 

Do I choose the:
 

- NIC Code Injection patcher

or

- NIC patcher?
 

And if so, how do I edit the template to work for MSHook?

Posted

Both, you have to change almost everything in the tweak.xm anyway

So I can use either one?

Posted

Pretty much (I didn't use these for long time so I dunno)

Okay, cheers.

 

Do you know how the tweak.xm would look?

Posted (edited)

#include <substrate.h>

 

int getmoney()

{

return 9999;

}

 

%ctor{

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN10Characters5Money8GetValueEv")),(void*)getMoney, NULL);

}

Updated by Gaius
Posted

 

#include <substrate.h>

 

int getMoney()

{

return 9999;

}

 

%ctor{

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN10Characters5Money8GetValueEv")),(void*)getMoney, NULL);

}

I did that but it didn't work :/

 

I made a MSHook tweak earlier but that wasn't a patcher...

Posted

       if(GetPrefBool(@"key4")){
MSHookFunction(((void*)MSFindSymbol(NULL, "__MSHOOKSYMBOL")),(void*)NAME, NULL);
}

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