Sound Packet

05/06/2010 23:57 t_dubble_uu#1
Does anyone know the sound packet to play music on your client?

Or a good packet logger so i can try and capture it.
05/07/2010 00:01 QuickCo#2
is not a paket you can put music on npc and who whant to listen play from npc ! simple
05/07/2010 00:57 TheGuyWithTheCodes#3
Quote:
Originally Posted by QuickCo View Post
is not a paket you can put music on npc and who whant to listen play from npc ! simple
it is a packet.
from korvacs wiki
Quote:
String Types

GuildName = 0x3,
Spouse = 0x6,
Effect = 0xA,
GuildList = 0xB,
ViewEquipSpouse = 0x10,
Sound = 0x14,
GuildEnemies = 0x15,
GuildAllies = 0x16
05/07/2010 03:21 t_dubble_uu#4
Quote:
Originally Posted by TheGuyWithTheCodes View Post
it is a packet.
from korvacs wiki
Thank you for that.

Now does anyone have an example of how to send the string command to the client?
05/07/2010 03:42 t_dubble_uu#5
Never Mind
#request Closed

Thanks to Co-Future Source i figured it out

Code:
case 129:
                    {
                        string[] Strings = new string[2];
                        string[] sound = param.Split(' ');

                        Strings[0] = sound[1];
                        Strings[1] = "1";
                        string todo = sound[0];
                        string media = sound[1];

                        if (todo == "play")
                        {
                            CSocket.Send(CoPacket.String(Strings, 0, (Struct.StringType)(20), 2));
                        }
                        else if (todo == "broadcast")
                        {
                            foreach (ClientSocket CS in World.ClientPool.Values)
                            {
                                CSocket.Send(CoPacket.String(Strings, 0, (Struct.StringType)(20), 2));
                            }
                        }
                        break;
                    }
05/07/2010 15:23 Korvacs#6
This has been covered several times, please search in future.
05/07/2010 16:35 Kiyono#7
Quote:
Originally Posted by Korvacs View Post
This has been covered several times, please search in future.
No lock?
05/07/2010 16:40 Korvacs#8
Opps, i clicked close, i guess it didnt happen.

Closed.