ive viewed a few other threads: [Only registered and activated users can see links. Click Here To Register...] [Only registered and activated users can see links. Click Here To Register...] [Only registered and activated users can see links. Click Here To Register...] [Only registered and activated users can see links. Click Here To Register...]
im still running into issues with the command. i know im doing something wrong. in one of the threads korvacs said you have to send 2 strings to play music. so i have
not sure how to fully do the command though. especially calling the string[]:
heres the string packet:
anyone know how to successfully do this?
im still running into issues with the command. i know im doing something wrong. in one of the threads korvacs said you have to send 2 strings to play music. so i have
Code:
string[] Strings = new string[2];
Strings[0] = "sound/blast.wav";
Strings[1] = "1";
Code:
if (Splitter[0] == "/sound")
{
string[] Strings = new string[2];
Strings[0] = "sound/blast.wav";
Strings[1] = "1";
SendPacket(General.MyPackets.String(MyChar.UID, 20, ?)));
}
Code:
public byte[] String(long CharId, byte Type, string name)
{
ushort PacketType = 1015;
byte[] Packet = new byte[13 + name.Length];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)CharId;
*(p + 8) = Type;
*(p + 9) = 1;
*(p + 10) = (byte)name.Length;
for (int i = 0; i < name.Length; i++)
{
*(p + 11 + i) = Convert.ToByte(name[i]);
}
}
return Packet;
}