• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Adding Clouds Effect to Maps (New & Old) 1.04d GMO

Joined
Oct 29, 2007
Messages
1,292
Reaction score
1,314
Well I start with this dev sincerely.. because nobody knows how to make to add maps effects ?, xD well maybe some guys here knows how to make to add effects on maps and etc, but anyways I thinks that maybe can be usefull release this code.

This code is maybe a: 80% from Assembler (ASM) rewrited from main.exe, but works, and maybe some persons here can think that is: "ugly", but is WORKING, and I make by me :D: cool starts!

file: Fixes.cpp (a class yes, I know)
Code:
[COLOR=#0066ff]void[/COLOR] [COLOR=#800080]Naked[/COLOR] [COLOR=#00cc99]cFixes[/COLOR]::AddMapEffect()
{
	[COLOR=#0066ff]static[/COLOR] [COLOR=#00cc99]DWORD[/COLOR] dwMapPointer;
	[COLOR=#0066ff]static[/COLOR] [COLOR=#00cc99]DWORD[/COLOR] dwMapBuffer;
	[COLOR=#0066ff]static[/COLOR] [COLOR=#00cc99]DWORD[/COLOR] dwMapEffect		= [COLOR=#ffd700]0x0074CBE0[/COLOR];
	[COLOR=#0066ff]static[/COLOR] [COLOR=#00cc99]DWORD[/COLOR] dwMapThis		= [COLOR=#ffd700]0x009CEA70[/COLOR];
	[COLOR=#0066ff]static[/COLOR] [COLOR=#00cc99]DWORD[/COLOR] dwMapJump1	= [COLOR=#ffd700]0x005EDD31[/COLOR];
	[COLOR=#008000]// ----[/COLOR]
	[COLOR=#0066ff]_asm[/COLOR]
	{
		MOV EDX,DWORD PTR DS:[[COLOR=#ffd700]0x0E61E18[/COLOR]] // -> This offset is [COLOR=#800080]pMapNumber[/COLOR] on: zClient
		MOV DWORD PTR SS:[EBP-[COLOR=#ffd700]0xD8[/COLOR]],EDX
		MOV dwMapPointer,EDX
	}
	[COLOR=#008000]// ----[/COLOR]
	[COLOR=#0066ff]if[/COLOR] (dwMapPointer == [COLOR=#ffd700]Lorencia[/COLOR])
	{
		[COLOR=#0066ff]_asm[/COLOR]
		{
			MOV EDX,DWORD PTR SS:[EBP+[COLOR=#ffd700]0x8[/COLOR]]
			PUSH EDX
			MOV EAX,DWORD PTR SS:[EBP+[COLOR=#ffd700]0x8[/COLOR]]
			PUSH ECX
			FLD DWORD PTR DS:[EAX+[COLOR=#ffd700]0x60[/COLOR]]
			FSTP DWORD PTR SS:[ESP]
			PUSH [COLOR=#ffd700]0xA[/COLOR]
			LEA ECX,[EBP-[COLOR=#ffd700]0xC[/COLOR]]
			PUSH ECX
			MOV EDX,DWORD PTR SS:[EBP+[COLOR=#ffd700]0x8[/COLOR]]
			ADD EDX,[COLOR=#ffd700]0x108[/COLOR]
			PUSH EDX
			MOV EAX,DWORD PTR SS:[EBP+[COLOR=#ffd700]0x8[/COLOR]]
			ADD EAX,[COLOR=#ffd700]0xFC[/COLOR]
			PUSH EAX
			PUSH [COLOR=#ffd700]0x7D92[/COLOR]							[B][COLOR=#ff0000]// -> EffectId[/COLOR][/B]
			CALL dwMapEffect
			ADD ESP,[COLOR=#ffd700]0x1C[/COLOR]
			JMP dwMapJump1
			JMP dwMapJump1
			FLD DWORD PTR DS:[[COLOR=#ffd700]0x5EF5A1C[/COLOR]]			[COLOR=#ff0000]// World Time -> FLOAT 0.0[/COLOR]
			CALL dwMapThis
			[COLOR=#008000]// ----[/COLOR]
			JMP MapBufferLabel
			[COLOR=#008000]// ----[/COLOR]
			MapBufferLabel:
			[COLOR=#008000]// ----[/COLOR]
			MOV dwMapBuffer,[COLOR=#ffd700]0x005EC14A[/COLOR]
			JMP dwMapBuffer
		}
	}
	[COLOR=#0066ff]else[/COLOR]
	{
		[COLOR=#0066ff]_asm[/COLOR]
		{
			MOV dwMapBuffer,[COLOR=#ffd700]0x005EC14A[/COLOR]
			JMP dwMapBuffer
		}
	}
}

void [COLOR=#00cc99]cFixes[/COLOR]::LoadMapEffect()
{
	gToolKit.SetRange(([COLOR=#00cc99]LPVOID[/COLOR])[COLOR=#ffd700]0x005EC13E[/COLOR],[COLOR=#ffd700]12[/COLOR],ASM::[COLOR=#ffd700]NOP[/COLOR]);
	gToolKit.SetJmp(([COLOR=#00cc99]LPVOID[/COLOR])[COLOR=#ffd700]0x005EC13E[/COLOR],[COLOR=#0066ff]this[/COLOR]->AddMapEffect);
}

file Fixes.h (definitions for the class & etc)
Code:
[COLOR=#696969]#ifndef[/COLOR] [COLOR=#800080]__FIXES_H__[/COLOR]
[COLOR=#696969]#define[/COLOR] [COLOR=#800080]__FIXES_H__[/COLOR]

[COLOR=#696969]#define[/COLOR] [COLOR=#800080]Naked[/COLOR]	[COLOR=#0066ff]__declspec(naked)[/COLOR]

[COLOR=#0066ff]enum[/COLOR] [COLOR=#00cc99]eMapNumber[/COLOR]
{
	[COLOR=#ffd700]Lorencia		= 0,[/COLOR]
[COLOR=#ffd700]	Dungeon		= 1,[/COLOR]
[COLOR=#ffd700]	Devias		= 2,[/COLOR]
[COLOR=#ffd700]	Noria			= 3,[/COLOR]
[COLOR=#ffd700]	LostTower		= 4,[/COLOR]
[COLOR=#ffd700]	Exile			= 5,[/COLOR]
[COLOR=#ffd700]	Stadium		= 6,[/COLOR]
[COLOR=#ffd700]	Atlans		= 7,[/COLOR]
[COLOR=#ffd700]	Tarkan		= 8,[/COLOR]
[COLOR=#ffd700]	DevilSquare	= 9,[/COLOR]
[COLOR=#ffd700]	DevilSquare6	= 32,[/COLOR]
[COLOR=#ffd700]	Icarus		= 10,[/COLOR]
[COLOR=#ffd700]	BloodCastle1	= 11,[/COLOR]
[COLOR=#ffd700]	BloodCastle2	= 12,[/COLOR]
[COLOR=#ffd700]	BloodCastle3	= 13,[/COLOR]
[COLOR=#ffd700]	BloodCastle4	= 14,[/COLOR]
[COLOR=#ffd700]	BloodCastle5	= 15,[/COLOR]
[COLOR=#ffd700]	BloodCastle6	= 16,[/COLOR]
[COLOR=#ffd700]	BloodCastle7	= 17,[/COLOR]
[COLOR=#ffd700]	ChaosCastle1	= 18,[/COLOR]
[COLOR=#ffd700]	ChaosCastle2	= 19,[/COLOR]
[COLOR=#ffd700]	ChaosCastle3	= 20,[/COLOR]
[COLOR=#ffd700]	ChaosCastle4	= 21,[/COLOR]
[COLOR=#ffd700]	ChaosCastle5	= 22,[/COLOR]
[COLOR=#ffd700]	ChaosCastle6	= 23,[/COLOR]
[COLOR=#ffd700]	Kalima1		= 24,[/COLOR]
[COLOR=#ffd700]	Kalima2		= 25,[/COLOR]
[COLOR=#ffd700]	Kalima3		= 26,[/COLOR]
[COLOR=#ffd700]	Kalima4		= 27,[/COLOR]
[COLOR=#ffd700]	Kalima5		= 28,[/COLOR]
[COLOR=#ffd700]	Kalima6		= 29,[/COLOR]
[COLOR=#ffd700]	Kalima7		= 36,[/COLOR]
[COLOR=#ffd700]	Loren			= 30,[/COLOR]
[COLOR=#ffd700]	Trials			= 31,[/COLOR]
[COLOR=#ffd700]	Aida			= 33,[/COLOR]
[COLOR=#ffd700]	Crywolf		= 34,[/COLOR]
[COLOR=#ffd700]	Kanturu1		= 37,[/COLOR]
[COLOR=#ffd700]	Kanturu3		= 38,[/COLOR]
[COLOR=#ffd700]	Kanturu_Event	= 39,[/COLOR]
[COLOR=#ffd700]	Silent		= 40,[/COLOR]
[COLOR=#ffd700]	Barracks		= 41,[/COLOR]
[COLOR=#ffd700]	Refuge		= 42,[/COLOR]
[COLOR=#ffd700]	Illusion1		= 45,[/COLOR]
[COLOR=#ffd700]	Illusion2		= 46,[/COLOR]
[COLOR=#ffd700]	Illusion3		= 47,[/COLOR]
[COLOR=#ffd700]	Illusion4		= 48,[/COLOR]
[COLOR=#ffd700]	Illusion5		= 49,[/COLOR]
[COLOR=#ffd700]	Illusion6		= 50,[/COLOR]
[COLOR=#ffd700]	Elbeland		= 51,[/COLOR]
[COLOR=#ffd700]	BloodCastle8	= 52,[/COLOR]
[COLOR=#ffd700]	ChaosCastle7	= 53,[/COLOR]
[COLOR=#ffd700]	Calmness		= 56,[/COLOR]
[COLOR=#ffd700]	Raklion		= 57,[/COLOR]
[COLOR=#ffd700]	RaklionBoss	= 58,[/COLOR]
[COLOR=#ffd700]	SantaTown		= 62,[/COLOR]
[COLOR=#ffd700]	Vulcanus		= 63,[/COLOR]
[COLOR=#ffd700]	Collosseum		= 64,[/COLOR]
[COLOR=#ffd700]	Karutan1		= 80,[/COLOR]
[COLOR=#ffd700]	Karutan2		= 81,[/COLOR]
};


[COLOR=#0066ff]class[/COLOR] [COLOR=#00cc99]cFixes[/COLOR]
{
[COLOR=#0066ff]public:[/COLOR]
	cFixes();
	[COLOR=#0066ff]virtual[/COLOR] ~cFixes();
	[COLOR=#008000]// ----[/COLOR]
	[COLOR=#0066ff]void[/COLOR] LoadMapEffect();
	[COLOR=#0066ff]static void[/COLOR] AddMapEffect();
};


[COLOR=#0066ff]extern[/COLOR] [COLOR=#00cc99]cFixes[/COLOR] gFixes;


[COLOR=#696969]#endif[/COLOR]

Screenshots:

0l3yVWX - Adding Clouds Effect to Maps (New & Old) 1.04d GMO - RaGEZONE Forums


KvaiM1Y - Adding Clouds Effect to Maps (New & Old) 1.04d GMO - RaGEZONE Forums


wFTO2X3 - Adding Clouds Effect to Maps (New & Old) 1.04d GMO - RaGEZONE Forums


fhZQbiS - Adding Clouds Effect to Maps (New & Old) 1.04d GMO - RaGEZONE Forums



Credits:
Webzen & Me (Kiosani - Nemesis - mauro07)
 

Attachments

You must be registered for see attachments list
Back
Top