Example #1
0
        internal static async Task EnterJunction(Player player, Junction junction, ISocketMessageChannel chan)
        {
            await junction.PassJunction(player);

            if (AMIData.Events.OngoingEvent.Ongoing != null)
            {
                AMIData.Events.OngoingEvent.Ongoing.EventBounty(player.Area, player.AreaInfo.floor);
            }

            player.QuestTrigger(Neitsillia.Items.Quests.Quest.QuestTrigger.Enter, player.AreaInfo.path);

            EmbedBuilder areaInfo = player.UserEmbedColor(player.Area.AreaInfo(player.AreaInfo.floor));
            await player.NewUI(await chan.SendMessageAsync("You've entered " + player.Area.name, embed: areaInfo.Build())
                               , MsgType.Main);
        }