💬 Ingame menu

Posts 16–30 of 97 · Page 2 of 7
Quote Originally Posted by DiogoMAT View Post
no work ;S on Crossfire Brazil
becausze its for crossfire na lol
nice its an awesome idea for a menu work fine
i have change the offset nd pointer and dont work -.-
I compiled and got this,
Code:
1>------ Build started: Project: CFMenu, Configuration: Debug Win32 ------
1>  menu.cpp
1>menu.obj : error LNK2019: unresolved external symbol "public: void __thiscall CMenu::Nav(void)" (?Nav@CMenu@@QAEXXZ) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z)
1>menu.obj : error LNK2019: unresolved external symbol "public: void __thiscall CMenu::AddItem(char *,char * *,unsigned long *)" (?AddItem@CMenu@@QAEXPADPAPADPAK@Z) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z)
1>menu.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CMenu::Ready(void)" (?Ready@CMenu@@QAE_NXZ) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z)
1>menu.obj : error LNK2019: unresolved external symbol "public: __thiscall CMenu::CMenu(char *)" (??0CMenu@@QAE@PAD@Z) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z)
1>c:\users\aguilda\documents\visual studio 2010\Projects\CFMenu\Debug\CFMenu.dll : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm a sort-of a noob at C++ mind helping me out? :/
Quote Originally Posted by .DLL View Post
I compiled and got this,
Code:
1>------ Build started: Project: CFMenu, Configuration: Debug Win32 ------
1>  menu.cpp
1>menu.obj : error LNK2019: unresolved external symbol "public: void __thiscall CMenu::Nav(void)" (?Nav@CMenu@@QAEXXZ) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z)
1>menu.obj : error LNK2019: unresolved external symbol "public: void __thiscall CMenu::AddItem(char *,char * *,unsigned long *)" (?AddItem@CMenu@@QAEXPADPAPADPAK@Z) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z)
1>menu.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CMenu::Ready(void)" (?Ready@CMenu@@QAE_NXZ) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z)
1>menu.obj : error LNK2019: unresolved external symbol "public: __thiscall CMenu::CMenu(char *)" (??0CMenu@@QAE@PAD@Z) referenced in function "unsigned long __stdcall menu(void *)" (?menu@@YGKPAX@Z)
1>c:\users\aguilda\documents\visual studio 2010\Projects\CFMenu\Debug\CFMenu.dll : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm a sort-of a noob at C++ mind helping me out? :/
have you modified the files??
Quote Originally Posted by giniyat101 View Post
thats a new look.. wont work with alot of features but it is a cool idea to show previous and next item
This one looks better. Can you share the codes for this menu?
Quote Originally Posted by OMFGDUDE View Post
This one looks better. Can you share the codes for this menu?
its not hard to modify lol

---------- Post added at 03:38 PM ---------- Previous post was at 03:36 PM ----------

Quote Originally Posted by .DLL View Post
I commented the old menu source and added this one
Code:
#include <windows.h>
#include "menu.h"

DWORD WINAPI menu(LPVOID lpParam)
{
	//Create the new menu
	CMenu* pMenu = new CMenu("giniyat101");

	//Wait until we are ready
	do
	{
		Sleep(100);
	} while (!pMenu->Ready());

	//CShell base address
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

	//Pass the pointers to the menu
	pMenu->MessageFunc = CShell + 0x84570;
	pMenu->VisibleState = CShell + 0x37DB44;
	pMenu->PTC = CShell + 0x35AC34;

	//Our options
	//MUST TERMINATE WITH NULL!!!
	char* optOffOn[] = {"Off", "On", NULL};

	//variables to store current state
	DWORD noreload = 0;
	DWORD nochange = 0;
	DWORD wallhack = 0;

	//Add some items
	pMenu->AddItem("No reload", optOffOn, &noreload);
	pMenu->AddItem("No change", optOffOn, &nochange);
	pMenu->AddItem("Wall hack", optOffOn, &wallhack);

	//Lets begin memory hacks
	while (1)
	{
		DWORD pWeaponMgr = *(DWORD*)(CShell+0xAB2940);
		if (pWeaponMgr)
		{
			for (int i=0; i<650; i++)
			{
				DWORD pWeapon = *(DWORD*)(pWeaponMgr+i*4);
				if (pWeapon)
				{
					if (noreload)
						*(FLOAT*)(pWeapon+0x26C4) = 100.0f;
					else
						*(FLOAT*)(pWeapon+0x26C4) = 1.0f;

					if (nochange)
						*(FLOAT*)(pWeapon+0x26C8) = 100.0f;
					else
						*(FLOAT*)(pWeapon+0x26C8) = 1.0f;
				}
			}
		}

		if (wallhack)
			memcpy((VOID*)0x6CE76C, "\x00\x00\x00\x00\x00\x00", 6);
		else
			memcpy((VOID*)0x6CE76C, "\x01\x01\x01\x01\x01\x01", 6);

		//Must place in a while(1)
		pMenu->Nav();

		Sleep(100);
	}
}

BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	if (dwReason == DLL_PROCESS_ATTACH)
	{
		DisableThreadLibraryCalls(hDll);
		CreateThread(NULL, NULL, menu, NULL, NULL, NULL);
	}
}
and compiled. o.e
what do you mean?? i dont see any changes
Quote Originally Posted by giniyat101 View Post
its not hard to modify lol

---------- Post added at 03:38 PM ---------- Previous post was at 03:36 PM ----------


what do you mean?? i dont see any changes
Exactly...I just took the old menu deleted it, pasted the new one.
Quote Originally Posted by .DLL View Post
Exactly...I just took the old menu deleted it, pasted the new one.
did you forget #include "menu.h"
Quote Originally Posted by giniyat101 View Post
did you forget #include "menu.h"
It's been in there, lol.
Code:
#include <windows.h>
#include "menu.h"
Quote Originally Posted by .DLL View Post
It's been in there, lol.
Code:
#include <windows.h>
#include "menu.h"
so you forgot including it in the project?
I commented the old menu source and added this one
Code:
#include <windows.h>
#include "menu.h"

DWORD WINAPI menu(LPVOID lpParam)
{
	//Create the new menu
	CMenu* pMenu = new CMenu("giniyat101");

	//Wait until we are ready
	do
	{
		Sleep(100);
	} while (!pMenu->Ready());

	//CShell base address
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");

	//Pass the pointers to the menu
	pMenu->MessageFunc = CShell + 0x84570;
	pMenu->VisibleState = CShell + 0x37DB44;
	pMenu->PTC = CShell + 0x35AC34;

	//Our options
	//MUST TERMINATE WITH NULL!!!
	char* optOffOn[] = {"Off", "On", NULL};

	//variables to store current state
	DWORD noreload = 0;
	DWORD nochange = 0;
	DWORD wallhack = 0;

	//Add some items
	pMenu->AddItem("No reload", optOffOn, &noreload);
	pMenu->AddItem("No change", optOffOn, &nochange);
	pMenu->AddItem("Wall hack", optOffOn, &wallhack);

	//Lets begin memory hacks
	while (1)
	{
		DWORD pWeaponMgr = *(DWORD*)(CShell+0xAB2940);
		if (pWeaponMgr)
		{
			for (int i=0; i<650; i++)
			{
				DWORD pWeapon = *(DWORD*)(pWeaponMgr+i*4);
				if (pWeapon)
				{
					if (noreload)
						*(FLOAT*)(pWeapon+0x26C4) = 100.0f;
					else
						*(FLOAT*)(pWeapon+0x26C4) = 1.0f;

					if (nochange)
						*(FLOAT*)(pWeapon+0x26C8) = 100.0f;
					else
						*(FLOAT*)(pWeapon+0x26C8) = 1.0f;
				}
			}
		}

		if (wallhack)
			memcpy((VOID*)0x6CE76C, "\x00\x00\x00\x00\x00\x00", 6);
		else
			memcpy((VOID*)0x6CE76C, "\x01\x01\x01\x01\x01\x01", 6);

		//Must place in a while(1)
		pMenu->Nav();

		Sleep(100);
	}
}

BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	if (dwReason == DLL_PROCESS_ATTACH)
	{
		DisableThreadLibraryCalls(hDll);
		CreateThread(NULL, NULL, menu, NULL, NULL, NULL);
	}
}
and compiled. o.e
@giniyat101 Thanks works fine for me.

a question what is the string of "VisibleState" in OllyDbg ?
For me to seek the crossfire AL

Code:
pMenu->VisibleState = CShell + >>>> 0x37DB44 <<<<---- THIS
and the offsets
Give-me Only Strings
Code:
#define ID_MSG  0x1C -> vertex lock failed
#define ID_NOR  0x16 -> :(
#define ID_AFK  0x37 -> :(
Quote Originally Posted by luizimloko View Post
@giniyat101 Thanks works fine for me.

a question what is the string of "VisibleState" in OllyDbg ?
For me to seek the crossfire AL

Code:
pMenu->VisibleState = CShell + >>>> 0x37DB44 <<<<---- THIS
and the offsets
Give-me Only Strings
Code:
#define ID_MSG  0x1C -> vertex lock failed
#define ID_NOR  0x16 -> :(
#define ID_AFK  0x37 -> :(
1- it has no string

2- these doesnt change.. why didnt you read the commend :@
Quote Originally Posted by giniyat101 View Post
1- it has no string

2- these doesnt change.. why didnt you read the commend :@
or this ?

Code:
pMenu->VisibleState = CShell + >>>> 0x37DB44 <<<<---- THIS
Posts 16–30 of 97 · Page 2 of 7

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us