- Joined
- Oct 29, 2007
- Messages
- 1,288
- Reaction score
- 1,308
Well, as lately I was learning a new thing or two, I want to leave the full source code of my model of a DLL to extend the limit of items (Weapons / Sets) and also the limit of textures (Weapons / Sets) + offsets for the main Japanese version 1.03k (Season 4.6)
Items.cpp file:
Items.h file:
Items.cpp file:
Code:
[COLOR="RoyalBlue"]#include "StdAfx.h"
#include "Items.h"
#include "Utils.h"
extern "C" _declspec(dllexport) void Items()
{
DWORD OldProtect;
if(VirtualProtect(LPVOID(0x401000),4310016,PAGE_EXECUTE_READWRITE,&OldProtect))
{
//Items
//Main.exe support to: C8 = 200
//Main Offsets version: 1.03k (JPN)
*(BYTE*)(0x005D6C8C+3) = 0xC8; //Helms
*(BYTE*)(0x005D6CD6+3) = 0xC8; //Armor, Pants, Glowes, Boots
*(BYTE*)(0x005D81DD+3) = 0xC8; //Swords
*(BYTE*)(0x005D82B0+3) = 0xC8; //Axes
*(BYTE*)(0x005D82ED+3) = 0xC8; //Maces
*(BYTE*)(0x005D8343+3) = 0xC8; //Scepters
*(BYTE*)(0x005D8399+3) = 0xC8; //Spears
*(BYTE*)(0x005D83EF+3) = 0xC8; //Shields
*(BYTE*)(0x005D845E+3) = 0xC8; //Staffs
*(BYTE*)(0x005D84E6+3) = 0xC8; //Sticks
*(BYTE*)(0x005D8523+3) = 0xC8; //Bows
*(BYTE*)(0x005D8560+3) = 0xC8; //Crossbows
//Textures
//Main.exe support to: C8 = 200
//Main Offsets version: 1.03k (JPN)
*(BYTE*)(0x005D80BE+3) = 0xC8; //Helms
*(BYTE*)(0x005D8109+3) = 0xC8; //Armor, Pants, Glowes, Boots
*(BYTE*)(0x005DA753+3) = 0xC8; //Swords
*(BYTE*)(0x005DA8F1+3) = 0xC8; //Axes
*(BYTE*)(0x005DA92E+3) = 0xC8; //Maces
*(BYTE*)(0x005DA96B+3) = 0xC8; //Scepters
*(BYTE*)(0x005DA9A7+3) = 0xC8; //Spears
*(BYTE*)(0x005DAA02+3) = 0xC8; //Shields
*(BYTE*)(0x005DAA3F+3) = 0xC8; //Staffs
*(BYTE*)(0x005DAB6B+3) = 0xC8; //Sticks
*(BYTE*)(0x005DACD4+3) = 0xC8; //Bows
*(BYTE*)(0x005DAD11+3) = 0xC8; //Crossbows
}
}[/COLOR]
Items.h file:
Code:
[COLOR="RoyalBlue"]#ifdef _DLL_H_
#define _DLL_H_
#include <stdio.h>
#include <windows.h>
//extern "C" __declspec(dllexport) void Items();
#endif[/COLOR]
NOTE: The others are the files in Winrar to herein below.
Items.dll Compiled from shows & 100% functional
Credits: RMST, chris05 & Nemesis(Me).
You must be registered to see links
Items.dll Compiled from shows & 100% functional
You must be registered to see links
Credits: RMST, chris05 & Nemesis(Me).
Last edited: