Skip to content
Guest Big Announcement

Which template to choose for MSHook?

Featured Replies

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?

  • Author

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

So I can use either one?

  • Author

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

Okay, cheers.

 

Do you know how the tweak.xm would look?

#include <substrate.h>

 

int getmoney()

{

return 9999;

}

 

%ctor{

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

}

Updated by Gaius

  • Author

 

#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...

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.