예제 #1
0
        public override async Task Execute(IFieldObjUser user, NPCShopCommandArgs args)
        {
            var template = await _templates.Retrieve(args.TemplateID);

            if (template == null)
            {
                await user.Message($"The specified NPC Shop: {args.TemplateID}, does not exist.");

                return;
            }

            var shop = new ShopDialog(template.ID, template);

            await user.Dialog(shop);
        }