Im leaving RageZone for a while, just posting this hoping someone will finish it.
Code:/* You are going to have to hook it to gunz, get it logging, find out about lastchar, and some more shit. This is just a starter on getting it ready, there is no errors, and their is no header files. */ #include <windows.h> #include <stdio.h> #include <math.h> #ifndef _DLL_H_ #define _DLL_H_ #if BUILDING_DLL # define DLLIMPORT __declspec (dllexport) #else # define DLLIMPORT __declspec (dllimport) #endif class DLLIMPORT DllClass { public: DllClass(); virtual ~DllClass(void); private: }; #endif DWORD thread; struct MUID { unsigned long LowID; unsigned long HighID; }; int out = 0; // Basic DLL Starter DllClass::DllClass() { } DllClass::~DllClass () { } BOOL APIENTRY DllMain (HINSTANCE hInst , DWORD reason , LPVOID reserved ) { switch (reason) { case DLL_PROCESS_ATTACH: break; case DLL_PROCESS_DETACH: break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; } return TRUE; } // We define the admin functions & parameters typedef void(__cdecl* ZPostAdminAnnounceType)(struct MUID const &,char*); ZPostAdminAnnounceType ZPostAdminAnnounce = (ZPostAdminAnnounceType)// offset here; typedef void(__cdecl* ZPostAdminRequestBanPlayerType)(struct MUID const &,char*); ZPostAdminRequestBanPlayerType ZPostAdminRequestBanPlayer = (ZPostAdminRequestBanPlayerType)// offset here; typedef void(__cdecl* ZPostAdminRequestJjangType)(char*); ZPostAdminRequestJjangType ZPostAdminRequestJjang = (ZPostAdminRequestJjangType)// offset here; typedef void(__cdecl* ZPostAdminRemoveJjangType)(char*); ZPostAdminRemoveJjangType ZPostAdminRemoveJjang = (ZPostAdminRemoveJjangType)// offset here; typedef void(__cdecl* ZPostAdminHaltType)(struct MUID const &); ZPostAdminHaltType ZPostAdminHalt = (ZPostAdminHaltType)// offset here; // Next we define the chat functions & parameters typedef void(__cdecl* ZChatOutputType)(const char*,int,int,DWORD); ZChatOutputType ZChatOutput = (ZChatOutputType)// offset here; typedef void(__cdecl* ZPostChannelChatType)(const MUID* uidChar, const MUID* uidChannel, char* pszMessage); ZPostChannelChatType ZPostChannelChat = (ZPostChannelChatType)// offset here; typedef void(__cdecl* ZPostStageChatType)(const MUID* uidChar, const MUID* uidStage, char* pszMessage); ZPostStageChatType ZPostStageChat = (ZPostStageChatType)// offset here; typedef void(__cdecl* ZPostWhisperType)(char*,char*,char*); ZPostWhisperType ZPostWhisper = (ZPostWhisperType)// offset here; typedef void(__cdecl* GetCharName) (const char*); // heard from wizkid, you gotta find out about latchar.dat // Now we define the log, you will have to edit this #define log(x) fprintf(f,"%s %.8X - %s\n",x); //Your gonna have to add more D: like ZPostWhisper, ZPostStageChat, etc... void logGetCharName() { FILE * f = fopen("Logged.txt","w"); // Now is the hard part, we get it to log in this order; Name : Date/Time : Command Used : & if, to who log ("void GetCharName(const char*)"); // I put a seperator in between each logged command for easier finding. ;) fputs("================",f); log ("ZPostWhisperType(char*,char*,char*)"); fclose(f); } //Your also going to need a return value here.


Reply With Quote

