Ejemplo n.º 1
0
        public DisplayWaypoint(Serial serial, int x, int y, int z, int mapID, /*int type*/WaypointType type, string name)
            : base(0xE5)
        {
            this.EnsureCapacity(25);

            m_Stream.Write((int)serial);

            m_Stream.Write((short)x);
            m_Stream.Write((short)y);
            m_Stream.Write((sbyte)z);
            m_Stream.Write((byte)mapID); //map 

            m_Stream.Write((ushort)type);
            //m_Stream.Write((short)type); //type 

            m_Stream.Write((short)0);

            if (type.Equals(1))
                m_Stream.Write((int)1046414);
            else
                m_Stream.Write((int)1062613);

            m_Stream.WriteLittleUniNull(name);

            m_Stream.Write((short)0); // terminate 
        }