示例#1
0
        public override void Execute(GameCharacter caller, string[] args)
        {
            if (args.Length < 2)
            {
                ShowSyntax(caller);
            }
            else
            {
                var message = args.Fuse(1);

                switch (args[0].ToLower())
                {
                case "-map":
                    caller.Map.Send(GamePackets.Notify(message));
                    break;

                case "-channel":
                    caller.Client.Server.Send(GamePackets.Notify(message));
                    break;

                case "-world":
                    caller.Client.Server.World.Send(GamePackets.Notify(message));
                    break;

                default:
                    ShowSyntax(caller);
                    break;
                }
            }
        }
示例#2
0
 public override void Execute(GameCharacter caller, string[] args)
 {
     if (args.Length < 1)
     {
         ShowSyntax(caller);
     }
     else
     {
         var message = args.Fuse();
         caller.Client.Server.World.Send(GamePackets.Notify(message));
     }
 }
示例#3
0
 public void UpdateTicker() => Send(GamePackets.Notify(TickerMessage, NoticeType.ScrollingText));