Hello Elitepvpers :)
After half year of rest I started my server again :)
and I need a lil help :( with shopflags ! that is the last thing I need for my Lotf server (its totaly redon !)
I have the packets ! but I jsut cant think of a way how to make it work :(
My MSN: [Only registered and activated users can see links. Click Here To Register...]
here are the packs...
After half year of rest I started my server again :)
and I need a lil help :( with shopflags ! that is the last thing I need for my Lotf server (its totaly redon !)
I have the packets ! but I jsut cant think of a way how to make it work :(
My MSN: [Only registered and activated users can see links. Click Here To Register...]
here are the packs...
Code:
public byte[] StallWindow(uint ID, Character C)
{
ushort PacketType = 0x3f2;
byte[] Packet = new byte[24];
fixed (byte* Ptr = Packet)
{
*((ushort*)(Ptr)) = (ushort)Packet.Length;
*((ushort*)(Ptr + 2)) = (ushort)PacketType;
*((uint*)(Ptr + 4)) = (uint)758292;
*((uint*)(Ptr + 8)) = (uint)C.UID;
*((uint*)(Ptr + 12)) = (uint)ID;
*((ushort*)(Ptr + 16)) = (ushort)272;
*((ushort*)(Ptr + 18)) = (ushort)198;
*((ushort*)(Ptr + 20)) = (ushort)6;
*((ushort*)(Ptr + 22)) = (ushort)110;
}
return Packet;
}
public byte[] PlacePacket1(Character Charr)
{
ushort PacketType = 0x3f2;
byte[] Packet = new byte[24];
uint Timer = (uint)Environment.TickCount;
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)Timer;
*((ushort*)(p + 8)) = (ushort)Charr.LocMap;
*((ushort*)(p + 12)) = (ushort)Charr.LocMap;
*((ushort*)(p + 16)) = (ushort)Charr.LocX;
*((ushort*)(p + 18)) = (ushort)Charr.LocY;
*(p + 22) = (byte)(0x4a & 0xff);
}
return Packet;
}
public byte[] SpawnCarpet(Character Character, int ID)
{
ushort PacketType = 1109;
byte[] Packet = new byte[28 + Character.Name.Length];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)ID;
*((ushort*)(p + 16)) = (ushort)(Character.LocX + 1);
*((ushort*)(p + 18)) = (ushort)Character.LocY;
*((ushort*)(p + 20)) = (ushort)(406);
*((ushort*)(p + 22)) = (ushort)14;
*(p + 24) = 11;
*(p + 26) = 1;
*(p + 27) = (byte)Character.Name.Length;
for (int i = 0; i < Character.Name.Length; i++)
{
*(p + 28 + i) = Convert.ToByte(Character.Name[i]);
}
}
return Packet;
}