mauro can y reupload 1.08C main please unpacked.... :(
Printable View
mauro can y reupload 1.08C main please unpacked.... :(
Mauro i saw y dont have the 1.08C but can y help wit main 1.08A+ i have unpacked and all really idk where is the problem on this main....
Can you send me the same offsets for 1.03h(1.03.08), please? or source 1.03H??
1.03O+ = 1.03.41 is kor main, not GMO
Search for Season4.5 (4.6 JPN) GMO in Google
Here offsets for: 1.07.48 korean version of main.exe.. for camera rotate damage mob fix..
originally developed by: Gembrid, for: 1.04d (Season 3 Episode 1) Kor main.exe.
Customs.cpp
Customs.hCode:__declspec(naked) void CharRotFix1()
{
__asm
{
add eax, 0x168
add eax, zRot
retn
}
}
__declspec(naked) void CharRotFix2()
{
__asm
{
mov ecx, 0x168
sub ecx, zRot
retn
}
}
void RotateDmg(float& x, float& y, float d)
{
float sinTh = sin(rad*Camera.RotZ);
float cosTh = cos(rad*Camera.RotZ);
x += d/0.7071067*cosTh/2;
y -= d/0.7071067*sinTh/2;
}
void FixCamDmg()
{
HookOffset((DWORD)&CharRotFix1, CharRotFix1_Offset, 0xE8);
HookOffset((DWORD)&CharRotFix2, CharRotFix2_Offset, 0xE8);
BYTE patch[] = {0x8D, 0x45, 0xF8, 0x8D, 0x4D, 0xF4,
0xFF, 0x75, 0x18, 0x50, 0x51, 0xE8,
0x61, 0xD6, 0x9B, 0xFF, 0x83, 0xC4,
0x0C, 0xE9, 0x0A, 0xFF, 0xFF, 0xFF};
memcpy((LPVOID)DamgRotPatch_Offset, patch, sizeof(patch));
HookOffset((DWORD)&RotateDmg, DamgRotCall_Offset, 0xE8);
}
-------------------------------------------------------------------------------------------Code:const int CharRotFix1_Offset = 0x5BE529;
const int CharRotFix2_Offset = 0x5BE83D;
const int DamgRotPatch_Offset = 0x6403C1;
const int DamgRotCall_Offset = 0x6403CC;
const float rad = 0.01745329;
float zRot = *Camera_RotZ;
HP Mob Bar Offsets for: 1.04d -> (1.04.04) GMO Main.exe
-------------------------------------------------------------------------------------------------Code://----------------------------------------------------------------------------// Functions
//----------------------------------------------------------------------------
#define DRAW_INTERFACE 0x0080F790 //1.04d (Eng) -> Season 6 Episode 3
#define DRAW_GUI 0x00790A00 //1.04d (Eng) -> Season 6 Episode 3
#define CREATE_COLOR 0x00420120 //1.04d (Eng) -> Season 6 Episode 3
#define DRAW_BUTTON 0x00790CF0 //1.04d (Eng) -> Season 6 Episode 3
#define DRAW_COLORED_BUTTON 0x00790DD0 //1.04d (Eng) -> Season 6 Episode 3
#define GET_THIS_POINTER 0x0041FE10 //1.04d (Eng) -> Season 6 Episode 3
#define TABBED_TEXT_OUT 0x00420150 //1.04d (Eng) -> Season 6 Episode 3
#define SET_TEXT_COLOR 0x00420040 //1.04d (Eng) -> Season 6 Episode 3
and Minimap complete src remade for me (but not tested) for: 1.04d (GMO) Main.exe
Minimap.cpp
Minimap.hCode:#include "Stdafx.h"
#include "Minimap.h"
extern "C" _declspec(dllexport) void LoadMini()
{
DWORD OldProtect;
if(VirtualProtect(LPVOID(0x401000),0x00A60F74,PAGE_EXECUTE_READWRITE,&OldProtect))
{
MiniMap();
}
else
{
MessageBoxA(NULL,"Cannot load UltMap.dll","Error",MB_OK);
ExitProcess(0);
}
}
void HookExactOffset(DWORD my, DWORD tohook, BYTE type)
{
*(BYTE*)tohook = type;
*(DWORD*)(tohook+1) = my;
}
void HookThis(DWORD dwMyFuncOffset,DWORD dwJmpOffset)
{
*(DWORD*)(dwJmpOffset+1)=dwMyFuncOffset-(dwJmpOffset+5);
}
void ChangePath(const char* Map, ...)
{
memcpy((DWORD*)0xD4A654,Map,17);//good
HookExactOffset(0xD4A654,0x00888C0A,0x68);//good
}
void LoadImageJpgForMap(char* ImagePatch, DWORD PrintCode)
{
_asm
{
Mov Edi, 0x007721E0//good
Push 0x1
Push 0x2900
Push 0x2601
Push 0x7B7A
Push 0xD4A654//good
Call Edi
Add Esp,0x18
}
}
int LoadMap(int Map)
{
char FullMapName[200];
sprintf_s(FullMapName,"World%d\\Map1.jpg",Map+1);
ChangePath(FullMapName);
LoadImageJpgForMap(FullMapName, 0x7B7A);
return Map;
}
bool MapChecker1(int Map)
{
if( Map == 0 || Map == 1 || Map == 2 || Map == 3 || Map == 4 || Map == 7 || Map == 8 ||
Map == 10 || Map == 24 || Map == 30 || Map == 33 || Map == 34 || Map == 37 || Map == 38 ||
Map == 41 || Map == 51 || Map == 56 || Map == 57 || Map == 63)
{
return 1;
}
return 0;
}
char FullMapName[200];
void MapChecker2(int Map)
{
if( Map == 0 || Map == 1 || Map == 2 || Map == 3 || Map == 4 || Map == 7 || Map == 8 ||
Map == 10 || Map == 24 || Map == 30 || Map == 33 || Map == 34 || Map == 37 || Map == 38 ||
Map == 41 || Map == 51 || Map == 56 || Map == 57 || Map == 63)
{
LoadMap(Map);
_asm
{
MOV EDI, 0x00860FC0
CALL EDI
MOV ECX,EAX
MOV EDI, 0x008615F0
CALL EDI
MOV ECX,EAX
MOV EDI, 0x00886C20
CALL EDI
}
Sleep(100);
}
else if( Map == 77 || Map == 78)
{
*(BYTE*)(0x00886B94) = 0x75;
}
else
{
*(BYTE*)(0x00886B94) = 0x75;
}
}
void MiniLoad()
{
int Map;
char FullMapName[200];
Map = *(unsigned char*)0x00E61E18;
if( Map == 0 || Map == 1 || Map == 2 || Map == 3 || Map == 4 || Map == 7 || Map == 8 ||
Map == 10 || Map == 24 || Map == 30 || Map == 33 || Map == 34 || Map == 37 || Map == 38 ||
Map == 41 || Map == 51 || Map == 56 || Map == 57 || Map == 63)
{
sprintf_s(FullMapName,"World%d\\Map1.jpg",Map+1);
*(BYTE*)(0x0087E119) = 0xEB;
memcpy((DWORD*)0xD30008,FullMapName,17);
}
else if( Map == 77 || Map == 78)
{
*(BYTE*)(0x00886B94) = 0x75;
}
else
{
*(BYTE*)(0x00886B94) = 0x75;
}
}
void MiniMap()
{
*(BYTE*)(0x007D3B7B) = 0x90;
*(BYTE*)(0x007D3B7B+1) = 0x90;
HookThis((DWORD)&MapChecker1, 0x00886B87);
HookThis((DWORD)&MapChecker2, 0x0062EB3D);
}
I hope these things (which are useless to me), can be useful to someone else, I am now working with something new and more complicated than this, I am looking to make changes to main.exe external graphics using programming combined with: DirectX, not with the old and almost obsolete: OpenGL. xDCode:#include "stdafx.h"#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
char * GetMap(int map);
void Options();
void MiniMap();
int ShowMiniMap;
int IsMiniMap = GetPrivateProfileIntA("UltMap","Enabled",0,".\\UltMap.ini");
int LastMap = -1;
int *Map = (int*)(0x8B1AA8);
int *MainState = (int*)(0x8C236C);
Working on a new project for the community, which will have many good things and open source for all project name: GameEngine ---> Coming Soon (Only for: RaGEZONE Forum).
mauro07 - can you add option to change skin npc ?
thanks Mauro07 for sharing this,
1.04D MiniMap work
http://i297.photobucket.com/albums/m...20_24-0000.jpg
do you have all /world/map.ojz?
Thanks for you: aecrimch, for test this... and... yes I have all map.ozj. but I don't remember the place in my pc... :p