Register for your free account! | Forgot your password?

You last visited: Today at 21:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



voice problem

Discussion on voice problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
voice problem

so i was going over my voice codes and, i found a bit problem with it,

when i click on my npc it start talking, and while its talking i also clicked on another npc they both started talking which was annoying,

now is it possible to make when 1 is talking and if i click on another one it should cancelled the first one.

Code:
 _String _string = new _String(true);
                                    _string.UID = client.Entity.UID;
                                    _string.TextsCount = 2;
                                    _string.Type = _String.Sound;
                                    _string.Texts.Add("voice/NPC_10081.wav");
                                    _string.Texts.Add("1");
                                    client.Send(_string);

Code:
  public byte[] ToArray()
        {
            ushort entirelength = 19;
            foreach (string list in Texts)
                entirelength += (ushort)(list.Length + 1);
            byte[] buffer = new byte[entirelength];
            WriteUInt16((ushort)(entirelength - 8), 0, buffer);
            WriteUInt16(1015, 2, buffer);
            WriteUInt32(UID, 4, buffer);
            buffer[8] = Type;
            Buffer = buffer;
            WriteStringList(Texts, 9, Buffer);
            return Buffer;
        }
LordGragen. is offline  
Old 05/27/2013, 03:26   #2


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
I've nerver used the sound feature, but I think using "0" as param instead of "1" will stop the media.
CptSky is offline  
Thanks
1 User
Old 05/27/2013, 04:07   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
CptSky is correct. That being said you should also keep track of track length server side so you can queue sounds together so they do not overlap too much.
pro4never is offline  
Thanks
1 User
Old 05/27/2013, 11:13   #4
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
thx i will try and let you guys know, but i got 1 more question.

how come some .wav work and some dont?
LordGragen. is offline  
Old 05/27/2013, 13:13   #5


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
Quote:
Originally Posted by LordGragen. View Post
thx i will try and let you guys know, but i got 1 more question.

how come some .wav work and some dont?
Run-time ? Bit depth ? Frequency ? Encoding ? (WAV is an audio container, not en encoding format like MP3, PCM, etc)

I've seen several music player with a small limit for the run-time.
CptSky is offline  
Reply


Similar Threads Similar Threads
[TuT]Change English Voice to Updated Korean/Brazilian VOice for GCPH and GCUS
05/13/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 34 Replies
Change English Voice to Updated Korean/Brazilian VOice for GCPH and GCUS 1. Make a backup of the "Sound" folder located at your Grand Chase folder. Don't forget this. 2. Download these files: YOU CAN CHOOSE AMONG THIS TWO SOUND FILES.. NOTE: ITS UR CHOICE
Change English Voice to Updated Korean/Brazilian VOice for GCPH and GCUS w/ TuT
04/11/2010 - Grand Chase - 4 Replies
Change English Voice to Updated Korean/Brazilian VOice for GCPH and GCUS 1. Make a backup of the "Sound" folder located at your Grand Chase folder. Don't forget this. 2. Download these files: Brazil Sound Files: 4shared.com - online file sharing and storage - download Brazil Voice.rar
[TuT]Change English Voice to Brazilian VOice for GCPH and GCUS
04/09/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 7 Replies
1. Make a backup of the "Sound" folder located at your Grand Chase folder. Don't forget this. 2. Download these file: Brazil Sound Files: 4shared.com - online file sharing and storage - download Brazil Voice.rar 3. Copy and Paste the downloaded files to the original "Sound" folder. 4. Don't open your original Grand Chase icon. Use the "bypass GC launcher" posted in the sticky thread, or else GC will download the english version. Note:
[TUT]Change english voice to korean voice in GCPH
03/27/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 94 Replies
here's a tutorial for those who want to change from english to korean voice. 1. Make a backup of the "Sound" folder located at your Grand Chase folder. Don't forget this. 2. Download these files: sound_korea.kom MEGAUPLOAD - The leading online storage and file delivery service Sound_Korea2.kom MEGAUPLOAD - The leading online storage and file delivery service
[TuT]Change English Voice to Brazilian VOice for GCPH and GCUS
01/02/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 6 Replies
1. Make a backup of the "Sound" folder located at your Grand Chase folder. Don't forget this. 2. Download these files: Brazil Sound Files: ive already upload it in 4shared heres the Link: 4shared.com - online file sharing and storage - download Brazil Voice.rar 3. Copy and Paste the downloaded files to the original "Sound" folder.



All times are GMT +2. The time now is 21:27.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.