shnauka
07-11-2003, 10:28 AM
Is there any specific way to post and or submit changes to MySEQ? I have added several features, including NOT using a system Beep. This change was actually easy, just change:
[DllImport("kernel32.dll", ExactSpelling=true)]
internal static extern bool Beep(uint freq, uint dur);
To this:
[DllImport("winmm.dll")]
public static extern long PlaySound(string lpszName, long hModule, long dwFlags);
;-) Then instead of calling Beep, call PlaySound. Aka:
if (Settings.Instance.BeepOnAlert)
Beep(300, 100);
// PlaySound("c:\\spawn.wav", 0, 1);
Blech. I just blathered beyond the scope of the post, didn't I. ;-)
Anyway, I've modified it such that you can specify a wav file to play, and actually added some simple use of the speech SDK in there as well.
The question is...
Where do I put this? What format? Difffs? Might be hard to tell the exact differfences with just a raw source dump..
I also added the ability for 'flashing' to designate a spawn, and changed the display of mob info so PCs are displayed like ShowEQ does, as boxes instead of circles, etc..
ANYWAY..
I think you get the gist. Whats the prefered method?
[DllImport("kernel32.dll", ExactSpelling=true)]
internal static extern bool Beep(uint freq, uint dur);
To this:
[DllImport("winmm.dll")]
public static extern long PlaySound(string lpszName, long hModule, long dwFlags);
;-) Then instead of calling Beep, call PlaySound. Aka:
if (Settings.Instance.BeepOnAlert)
Beep(300, 100);
// PlaySound("c:\\spawn.wav", 0, 1);
Blech. I just blathered beyond the scope of the post, didn't I. ;-)
Anyway, I've modified it such that you can specify a wav file to play, and actually added some simple use of the speech SDK in there as well.
The question is...
Where do I put this? What format? Difffs? Might be hard to tell the exact differfences with just a raw source dump..
I also added the ability for 'flashing' to designate a spawn, and changed the display of mob info so PCs are displayed like ShowEQ does, as boxes instead of circles, etc..
ANYWAY..
I think you get the gist. Whats the prefered method?