- Joined
- Oct 29, 2007
- Messages
- 1,292
- Reaction score
- 1,314
Hi again and again : haha... I only pretend show my INCREDIBLE skills to MU Comunity (Again), by this reason is that I like share this source, to LOAD and PLAY new Sounds on: MU Client Season 6.3 GMO, using Files with Extension: .WAV... Enjoy it!
NOTE 1: This code can be researched (I mean offsets and etc...) to more old main.exe versions
NOTE 2: Is important point that you must use ALWAYS some Hexa value more big than: 0x3DA...because values more small than this.. are used by: 1.04d GMO main.exe to Originals MU Monsters Sounds, Interface, and etc..
LoadSound.cpp:
LoadSound.h:
PlaySound.cpp:
PlaySound.h:
Offsets and More:
Simple Example of Use:If you use: zClient.dll Source... you can try to make this to test:On your Camera Switch States for Button:
Then.. when you in Game Press Camera Button... this Play Interface: "Tick" Sound, like Originals one from Webzen :8:
Credits:
Sobieh & Me (Kiosani)
NOTE 1: This code can be researched (I mean offsets and etc...) to more old main.exe versions
NOTE 2: Is important point that you must use ALWAYS some Hexa value more big than: 0x3DA...because values more small than this.. are used by: 1.04d GMO main.exe to Originals MU Monsters Sounds, Interface, and etc..
LoadSound.cpp:
Code:
#include "Stdafx.h"
cLoadSound gLoadSound;
void cLoadSound::LoadInterfaceWindowTick()
{
pLoadWavSound(0x3DA,LOAD_INTERFACE_TICK,1,1);
}
LoadSound.h:
Code:
#ifndef __LOADSOUND_H__
#define __LOADSOUND_H__
#define LOAD_INTERFACE_TICK "Data\\Sound\\MySoundTest.wav" // -> Here you can re-name using name that you like.. for your: "NEW SOUND ON .WAV FORMAT FILE" :D:
class cLoadSound
{
public:
void LoadInterfaceWindowTick();
};
extern cLoadSound gLoadSound;
#endif
PlaySound.cpp:
Code:
#include "Stdafx.h"
cPlaySound gPlaySound;
void cPlaySound::PlayInterfaceWindowTick()
{
pPlayWavSound(0x3DA,0,0); // -> Here is important only remember use: 0,0
}
PlaySound.h:
Code:
#ifndef __PLAYSOUND_H__
#define __PLAYSOUND_H__
class cPlaySound
{
public:
void PlayInterfaceWindowTick();
};
extern cPlaySound gPlaySound;
#endif
Offsets and More:
Code:
//-> Sound
#define pLoadWavSound ((int(__cdecl*)(int SoundID,char * Folder,int Arg3,bool State))0x006D66B0)
#define pPlayWavSound ((int(__cdecl*)(int SoundID,int Arg2,int Arg3))0x006D6AD0)
Simple Example of Use:If you use: zClient.dll Source... you can try to make this to test:On your Camera Switch States for Button:
Code:
void cCamera::Switch()
{
if (IsCam == CameraOn && pMainState == GameProcess)
{
gLoadSound.LoadInterfaceWindowTick();
gPlaySound.PlayInterfaceWindowTick();
// ----
this->Enabled = !this->Enabled;
}
}
Then.. when you in Game Press Camera Button... this Play Interface: "Tick" Sound, like Originals one from Webzen :8:
Credits:
Sobieh & Me (Kiosani)