Troll your not calling the code.
youve found the correct offsets but you need to
hook the game and call the routine mid function.
at the moment the codes just sitting there doing nothing, if you dont call it it will never execute.
eq.. jmp AutoChamber() or call AutoChamber() and ret
did a quick google and
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);
}
looking at the ^ code there it would be something like
SetupHook((warband exe etc +youroffset ),(DWORD)AutoChamber,5);
... your going to have to do some tutorials and do some language course's troll i think this is way over your head and is probably more confusing than helping but i thought id show you the way to go just incase you needed the push in the right direction, good luck.