Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (BitConverter.ToUInt32(generalData, 4) == client.Entity.UID)
- {
- Client.GameState pclient = null;
- if (ServerBase.Kernel.GamePool.TryGetValue(BitConverter.ToUInt32(generalData, 8), out pclient))
- {
- foreach (Network.GamePackets.ConquerItem item in pclient.Equipment.Objects)
- {
- if (item != null)
- {
- byte[] packet1 = new byte[92]
- {
- 0x54 ,0x00 ,0x54 ,0x04 ,0xAB ,0x20 ,0x78 ,0x1C ,0x9E ,0x98 ,0x1A ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 // ;T T« x
- ,0x77 ,0x6D ,0x06 ,0x00 ,0x61 ,0x18 ,0xBB ,0x1B ,0x04 ,0x00 ,0x04 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 // ;wm a»
- ,0x02 ,0x02 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x03 ,0x00 ,0x00 ,0x39 ,0x00 ,0x00 ,0x00 // ; 9
- ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x01 ,0x00 ,0x03 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 // ;
- ,0x45 ,0x1E ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x02 ,0x37 ,0x0C ,0x00 // ;E 7
- ,0x00 ,0x00 ,0x00 ,0x00 ,0x54 ,0x51 ,0x53 ,0x65 ,0x72 ,0x76 ,0x65 ,0x72 // ; TQServer
- };
- WriteUInt32(pclient.Entity.UID, 8, packet1);
- /*WriteUInt32(client.Entity.UID, 12, packet1);*/
- WriteUInt32(item.UID, 4, packet1);
- WriteUInt32(item.ID, 16, packet1);
- WriteUInt16(item.Durability, 20, packet1);
- WriteUInt16(item.MaximDurability, 22, packet1);
- WriteByte((byte)item.Position, 26, packet1);
- WriteByte((byte)item.SocketOne, 32, packet1);
- WriteByte((byte)item.SocketTwo, 33, packet1);
- WriteByte(item.Plus, 41, packet1);
- WriteByte(item.Bless, 42, packet1);
- WriteByte(item.Enchant, 44, packet1);
- WriteUInt32(item.PlusProgress, 60, packet1);
- WriteUInt32(item.Durability, 64, packet1);
- WriteUInt32(item.Purification_ID_, 76, packet1);
- client.Send(packet1);
- if (item.Purification_ID != 0)
- {
- if (item.Purification_Time == 0)
- {
- Network.GamePackets.PurificationItem purification = new Conquer_Online_Server.Network.GamePackets.PurificationItem();
- purification.ID_Purification_Item = item.Purification_ID;
- purification.Level = item.Purification_level;
- purification.Position = 1;
- purification.Time = 0;
- purification.tip = 6;
- purification.UID = item.UID;
- client.Send(purification.ToArry());
- }
- else if ((long)item.Purification_Time > DateTime.Now.Ticks)
- {
- Network.GamePackets.PurificationItem purification = new Conquer_Online_Server.Network.GamePackets.PurificationItem();
- purification.ID_Purification_Item = item.Purification_ID;
- purification.Level = item.Purification_level;
- purification.Position = 1;
- string time = ((long)item.Purification_Time - DateTime.Now.Ticks).ToString();
- purification.Time =
- uint.Parse(pclient.FixedTime(long.Parse(time)));
- purification.tip = 6;
- purification.UID = item.UID;
- client.Send(purification.ToArry());
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement