public void DeliverInstantMessage(string Message, uint ConversationId)
 {
     ServerPacket InstantMessage = new ServerPacket(134);
     InstantMessage.AppendUInt(ConversationId);
     InstantMessage.AppendString(Message);
     GetClient().SendPacket(InstantMessage);
 }
Beispiel #2
0
        public ServerPacket SerializeRelativeHeightmap()
        {
            ServerPacket Message = new ServerPacket(470);

            string[] tmpHeightmap = Heightmap.Split(Convert.ToChar(13));

            for (int y = 0; y < MapSizeY; y++)
            {
                if (y > 0)
                {
                    tmpHeightmap[y] = tmpHeightmap[y].Substring(1);
                }

                for (int x = 0; x < MapSizeX; x++)
                {
                    string Square = tmpHeightmap[y].Substring(x, 1).Trim().ToLower();

                    if (DoorX == x && DoorY == y)
                    {
                        Square = (int)DoorZ + "";
                    }

                    Message.AppendString(Square);
                }

                Message.AppendString("" + Convert.ToChar(13));
            }

            return Message;
        }
Beispiel #3
0
 public void hi()
 {
     ServerPacket SendReminder = new ServerPacket(7);
     SendReminder.AppendString("@Ghabbo_clubKPAHIIHQfHHHH");
     SendMessage(SendReminder);
 }
Beispiel #4
0
        public void SerializeStatus(ServerPacket Message)
        {
            if (IsSpectator)
            {
                return;
            }

            Message.AppendInt32(VirtualId);
            Message.AppendInt32(X);
            Message.AppendInt32(Y);
            Message.AppendStringWithBreak(Z.ToString().Replace(',','.'));
            Message.AppendInt32(RotHead);
            Message.AppendInt32(RotBody);
            Message.AppendString("/");

            foreach (KeyValuePair<string, string> Status in Statusses)
            {
                Message.AppendString(Status.Key);
                Message.AppendString(" ");
                Message.AppendString(Status.Value);
                Message.AppendString("/");
            }

            Message.AppendStringWithBreak("/");
        }