Hi again and againhaha... 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:Code:#include "Stdafx.h" cLoadSound gLoadSound; void cLoadSound::LoadInterfaceWindowTick() { pLoadWavSound(0x3DA,LOAD_INTERFACE_TICK,1,1); }
PlaySound.cpp: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.h:Code:#include "Stdafx.h" cPlaySound gPlaySound; void cPlaySound::PlayInterfaceWindowTick() { pPlayWavSound(0x3DA,0,0); // -> Here is important only remember use: 0,0 }
Offsets and More:Code:#ifndef __PLAYSOUND_H__ #define __PLAYSOUND_H__ class cPlaySound { public: void PlayInterfaceWindowTick(); }; extern cPlaySound gPlaySound; #endif
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://-> 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)
Then.. when you in Game Press Camera Button... this Play Interface: "Tick" Sound, like Originals one from WebzenCode:void cCamera::Switch() { if (IsCam == CameraOn && pMainState == GameProcess) { gLoadSound.LoadInterfaceWindowTick(); gPlaySound.PlayInterfaceWindowTick(); // ---- this->Enabled = !this->Enabled; } }
Credits:
Sobieh & Me (Kiosani)



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!
Reply With Quote![[Development] New Load & Play Wav Sound Sources For 1.04d (GMO)](http://ragezone.com/hyper728.png)

my code is not perfect, but at least it's working. I'm using this code on my actual 1.03.11 main + dll and I don't have problems with this. anyways thanks for tip.


