TKC-Community

Hacking and Art => Mount and Blade => Topic started by: Skyrim42 on February 09, 2015, 04:48:08 pm

Title: I had troubles :(
Post by: Skyrim42 on February 09, 2015, 04:48:08 pm
Hi I can help you I can not find the chamber and tricks :icon_sad2 :icon_sad2 Pls Help pls  :cry:
Title: Re: I had troubles :(
Post by: ZOldDude on February 09, 2015, 10:56:58 pm
http://tkc-community.net/forum/index.php?action=downloads
Title: Re: I had troubles :(
Post by: Skyrim42 on February 10, 2015, 03:36:02 pm
http://tkc-community.net/forum/index.php?action=downloads
Chamber I found the code for the cheat code, but how do I do that I found them[code1]


__declspec(naked) void AutoChamber()
{
   __asm
   {

       // seeing as we are here he is in a attack and swinging
      pushad
            mov edx,[esp+10] // direction of the enemy swing.
            mov dword ptr AttackDirection,edx // direction my guy will chamber
      popad

            mov edx,[esp+0x10] // lets restore the old code and go back in to this game
            jmp AutoChamber_Ret // back to warband 1.158 meanwhile that 'other' routine is chambering in his swing direction

   }
}

// edited found a faster version

[code2]


void CopyBuffer(BYTE *Buffer, int Size, DWORD *Address)
{
   DWORD pPrevious = 0;
   VirtualProtect(Address, Size, PAGE_EXECUTE_READWRITE, &pPrevious);
   memcpy(Address, Buffer, Size);
   VirtualProtect(Address, Size, pPrevious, &pPrevious);
}
//-- -----------------------
void SetupHook(DWORD Function, DWORD Hook, int Size)
{
   Hook = Hook - Function - 5;
   BYTE bHook[4];
   memcpy(bHook,(void*)&Hook,4);
   BYTE Buffer[10];
   memset(Buffer,0x90,10);
   Buffer[0] = 0xE9;
   Buffer[1] = bHook[0];
   Buffer[2] = bHook[1];
   Buffer[3] = bHook[2];
   Buffer[4] = bHook[3];
   CopyBuffer(Buffer, Size, (DWORD*)Function);
}[/list]