Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 23:04

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


Play sound via Packet Send?? [Question String Packet]

Discussion on Play sound via Packet Send?? [Question String Packet] within the CO2 PServer - Discussions / Questions forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Play sound via Packet Send?? [Question String Packet]

Yow im trying to figure out why i cant play music with the string packet


What im doin is;

PHP Code:
MyChar.Client.SendPacket(Game.Packet.String(MyChar.UID20Splitter[1])); 
My Packet is:

PHP Code:
public byte[] String(long CharIdbyte Typestring name)
        {
            
ushort PacketType 1015;
            
byte[] Packet = new byte[13 name.Length];

            
fixed (bytePacket)
            {
                *((
ushort*)p) = (ushort)Packet.Length;
                *((
ushort*)(2)) = (ushort)PacketType;
                *((
uint*)(4)) = (uint)CharId;

                *(
8) = Type;
                *(
9) = 1;
                *(
10) = (byte)name.Length;

                for (
int i 0name.Lengthi++)
                {
                    *(
11 i) = Convert.ToByte(name[i]);
                }
            }

            return 
Packet;
        } 
Suggestions?



~Yuki~ is offline  
Old 07/13/2010, 19:42   #2
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,397
Received Thanks: 1,068


Also, you can make something like this.
Code:
        public byte[] SoundPacket(uint CharId, string File) 
        { 
            ushort PacketType = 1015; 
            byte[] Packet = new byte[15 + File.Length]; 

            fixed (byte* p = Packet) 
            { 
                *((ushort*)p) = (ushort)Packet.Length; 
                *((ushort*)(p + 2)) = (ushort)PacketType; 
                *((uint*)(p + 4)) = (uint)CharId; 
                *(p + 8) = 20; //Sound 
                *(p + 9) = 2; 
                *(p + 10) = (byte)File.Length; 
                for (byte i = 0; i < File.Length; i++) 
                    *(p + 11 + i) = (byte)File[i]; 
                *(p + 11 + File.Length) = (byte)1; 
                *(p + 12 + File.Length) = (byte)'1'; 
            } 
            return Packet; 
        }


CptSky is offline  
Thanks
2 Users
Old 07/13/2010, 19:55   #3
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
****. how to send a packet with 2 strings 0.o
~Yuki~ is offline  
Old 07/14/2010, 00:31   #4
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,124
Received Thanks: 2,504
Did you search before doing this? I remember going to lengths explaining it, its also already in the cofuture source.


Korvacs is offline  
Old 07/14/2010, 01:36   #5
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Im sorry korfags next time im going to download every released source to check if thers is a piece of code wich i could use thanks
~Yuki~ is offline  
Old 07/14/2010, 09:27   #6
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,124
Received Thanks: 2,504
Quote:
Originally Posted by ~Yuki~ View Post
Im sorry korfags next time im going to download every released source to check if thers is a piece of code wich i could use thanks
Well if you had searched you would have known that.

Second result on the search was:



Third result:



Fourth:



In that fourth one you even state yourself that the source you need to look at is the cofuture reloaded source. So it seems youve already got it.

Closed.


Korvacs is offline  
Thanks
1 User
Closed Thread



« [Help] Packets | How make to moster drop cps »

Similar Threads
Trying with another packet (sound)
08/03/2010 - CO2 PServer - Discussions / Questions - 6 Replies
Okay so I have this packet (in a command) string Strings = new string; Strings = (Data); Strings = "1"; StringPacket SoundPacket = new StringPacket(true); SoundPacket.UID = client.Entity.UID; SoundPacket.Type = 20; ...
Sound Packet
05/07/2010 - CO2 PServer - Discussions / Questions - 7 Replies
Does anyone know the sound packet to play music on your client? Or a good packet logger so i can try and capture it.
[Question] Packet data , packet editing ??
10/13/2009 - 9Dragons - 2 Replies
I would like to know : What is packet data? How do i get the address for hacking a item in game? How to use it ??
[Question] What Packet to send?
08/05/2009 - CO2 PServer - Discussions / Questions - 6 Replies
Hello. I'm in trouble because I don't know what packet to send when I have created a Character. I tried to send this MessagePacket: The message appears but don't bring you to the main menu of the client to log into my server



All times are GMT +2. The time now is 23:04.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 3KeUpz52VCbhmLwuwydqxu6U1xsgbT8YT5
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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