Example #1
0
        /* public static void Command_Exit(Session player)
         * {
         *   WriteBuffer Write = new WriteBuffer();
         *   Write.Int(0);
         *   Write.Int(0);
         *   player.Session_Send(Write, 1240);
         * }
         *
         * public static void Command_NextMode(Session player)
         * {
         *   WriteBuffer WB = new WriteBuffer();
         *   WB.Int(0);
         *   WB.Byte(0);
         *   WB.Short(0);
         *
         *   WB.Byte((byte)player.Account.CurrentRoom.MatchMode);
         *   WB.Int(player.Account.CurrentRoom.GameMode + 1);
         *   WB.Int(player.Account.CurrentRoom.ItemMode);
         *   WB.Boolean(player.Account.CurrentRoom.RandomMap);
         *   WB.Int(player.Account.CurrentRoom.Map);
         *
         *   WB.Int(0);
         *   WB.HexArray("FF FF FF FF 00 00 00 00 00 00 00");
         *
         *   WB.Short((short)player.Account.CurrentRoom.PlayersInRoom());
         *   WB.Short((short)player.Account.CurrentRoom.OpenSlots());
         *
         *   for (int i = 0; i < player.Account.CurrentRoom.MaxPlayers; i++)
         *   {
         *       WB.Boolean(player.Account.CurrentRoom.Slots[i].Open);
         *   }
         *
         *   WB.Int(0);
         *   WB.HexArray("00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00");
         *   for (int i = 0; i < player.Account.CurrentRoom.MaxPlayers; i++)
         *   {
         *       if (player.Account.CurrentRoom.Slots[i].Active == true)
         *       {
         *           player.Account.CurrentRoom.Slots[i].Player.Session_Send(WB, 29);
         *       }
         *   }
         * }
         *
         * public static void Command_PrevioustMode(Session player)
         * {
         *   WriteBuffer WB = new WriteBuffer();
         *   WB.Int(0);
         *   WB.Byte(0);
         *   WB.Short(0);
         *
         *   WB.Byte((byte)player.Account.CurrentRoom.MatchMode);
         *   WB.Int(player.Account.CurrentRoom.GameMode - 1);
         *   WB.Int(player.Account.CurrentRoom.ItemMode);
         *   WB.Boolean(player.Account.CurrentRoom.RandomMap);
         *   WB.Int(player.Account.CurrentRoom.Map);
         *
         *   WB.Int(0);
         *   WB.HexArray("FF FF FF FF 00 00 00 00 00 00 00");
         *
         *   WB.Short((short)player.Account.CurrentRoom.PlayersInRoom());
         *   WB.Short((short)player.Account.CurrentRoom.OpenSlots());
         *
         *   for (int i = 0; i < player.Account.CurrentRoom.MaxPlayers; i++)
         *   {
         *       WB.Boolean(player.Account.CurrentRoom.Slots[i].Open);
         *   }
         *
         *   WB.Int(0);
         *   WB.HexArray("00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00");
         *   for (int i = 0; i < player.Account.CurrentRoom.MaxPlayers; i++)
         *   {
         *       if (player.Account.CurrentRoom.Slots[i].Active == true)
         *       {
         *           player.Account.CurrentRoom.Slots[i].Player.Session_Send(WB, 29);
         *       }
         *   }
         * }*/

        public static void Command_SignBoard(Session player, string Msg)
        {
            PacketWrite pw = new PacketWrite();

            pw.HexArray("00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00");
            pw.UnicodeStr(Msg);

            Serializables.SendForAllPlayers(pw, 362);
        }