Exemplo n.º 1
0
        public async Task RequestDropAsync([Summary(DropItemSummary)][Remainder] string request)
        {
            var cfg   = Globals.Bot.Config;
            var items = ItemParser.GetItemsFromUserInput(request, cfg.DropConfig, cfg.DropConfig.UseLegacyDrop ? ItemDestination.PlayerDropped : ItemDestination.HeldItem);

            MultiItem.StackToMax(items);
            await DropItems(items).ConfigureAwait(false);
        }
Exemplo n.º 2
0
        public async Task RequestDropAsync([Summary(DropItemSummary)][Remainder] string request)
        {
            if (Globals.Bot.CurrentUserId != Context.User.Id)
            {
                return;
            }
            var cfg   = Globals.Bot.Config;
            var items = DropUtil.GetItemsFromUserInput(request, cfg.DropConfig, false);

            MultiItem.StackToMax(items);
            await DropItems(items).ConfigureAwait(false);
        }