Esempio n. 1
0
        public void SendMessage(string format, params object[] args)
        {
            var p = new ServerPacket(0x0A);

            p.WriteByte(0x03);
            p.WriteString16(format, args);
            p.WriteByte(0x00);
            Enqueue(p);
        }
Esempio n. 2
0
        public void SendMessage(string message, int type)
        {
            var p = new ServerPacket(0x0A);

            p.WriteByte((byte)type);
            p.WriteString16(message);
            p.WriteByte(0x00);
            Enqueue(p);
        }
Esempio n. 3
0
        public void SendPaper(Item item, byte color)
        {
            Player.Paper = item;
            var packet = new ServerPacket(0x1B);

            packet.WriteByte((byte)item.Slot);
            packet.WriteByte(color);
            packet.WriteByte(0x0F);
            packet.WriteByte(0x14);
            packet.WriteString16(item.MiscData);
            Enqueue(packet);
        }