コード例 #1
0
        protected override bool Process(Player player, RealmTime time, string args)
        {
            if (args.Length == 0)
            {
                player.SendHelp("Usage: /trade <username>");
                return true;
            }

            Player plr = player.Manager.FindPlayer(args);
            if (plr != null && plr.Owner == player.Owner)
            {
                player.RequestTrade(time, new RequestTradePacket { Name = plr.Name });
                return true;
            }
            return false;
        }