Quote:
Originally Posted by EmmeTheCoder
@Impulse
It's funny that most of the post you do is bragging of what you can do/have. Get real, you brag too much, seriously.
|
What's your problem? LOL
Here is what you need.
PHP Code:
public static COPacket SpawnInvisibleEntity(ushort X, ushort Y, ref uint UID)
{
UID = (uint)(new Random().Next() % 1000000);
COPacket packet = new COPacket(new byte[28 + 8]);
packet.WriteInt16(28);
packet.WriteInt16(1109);
packet.WriteInt32(UID);
packet.WriteInt32(0);
packet.WriteInt32(0);
packet.WriteInt16(X);
packet.WriteInt16(Y);
packet.WriteInt16(371);
packet.WriteInt16(26);
packet.WriteByte(11);
packet.WriteByte(1);
packet.WriteByte(1);
packet.WriteString(" ");
packet.WriteString("TQServer");
return packet;
}
public static COPacket CoordonateEffect(ushort X, ushort Y, string Effect)
{
uint UID = 0;
COPacket packet1 = SpawnInvisibleEntity(X, Y, ref UID);
COPacket packet2 = String(UID, 10, Effect);
byte[] buffer = new byte[packet1.Get.Length + packet2.Get.Length];
Buffer.BlockCopy(packet1.Get, 0, buffer, 0, packet1.Get.Length);
Buffer.BlockCopy(packet2.Get, 0, buffer, packet1.Get.Length, packet2.Get.Length);
COPacket packet = new COPacket(buffer);
return packet;
}
Put them in Packet.cs where are other packets.
Usage:
Client.AddSend(Packets.CoordonateEffect(X,Y, "effect"));
Meh you got the point.