Abyss
Well-known member
- Joined
- Sep 30, 2005
- RedCents
- 69¢
It can either be done in docrack form, or plugin I prefer this way. Heres the source.
Allows you to convert your moneys around.
Allows you to convert your moneys around.
Rich (BB code):
// MQ2ChangeMoney.cpp : Defines the entry point for the DLL application.
//
// PLUGIN_API is only to be used for callbacks. All existing callbacks at this time
// are shown below. Remove the ones your plugin does not use. Always use Initialize
// and Shutdown for setup and cleanup, do NOT do it in DllMain.
// MQ2ChangeMoney: Written by Abyss
#include "../MQ2Plugin.h"
#define EQ_CHANGE_MONEY 0x495fE4 /* 11/11/10 */
PreSetup("MQ2ChangeMoney");
VOID ChangeMoneyCheck() {
DWORD Address = EQ_CHANGE_MONEY;
DWORD Length = 0x01;
DWORD oldperm=0, tmp;
FlushInstructionCache(GetCurrentProcess(),(LPCVOID)Address, Length);
VirtualProtectEx(GetCurrentProcess(), (LPVOID)Address, Length, PAGE_EXECUTE_READWRITE,
&oldperm); WriteProcessMemory(GetCurrentProcess(), (LPVOID)Address, "\xEB", Length, NULL); VirtualProtectEx(GetCurrentProcess(), (LPVOID)Address,
Length, oldperm, &tmp);
}
PLUGIN_API VOID InitializePlugin(VOID)
{
ChangeMoneyCheck();
WriteChatColor("MQ2ChangeMoney: Written by Abyss", CONCOLOR_YELLOW);
WriteChatColor("Version: 11 - 11 - 2010", CONCOLOR_YELLOW);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
}

