awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\narrrrr-right, ye scurby bastard, I know yer eager t' scour the seven seas but ye needs t' wait till the next minute t' pillage the booty'o'the depths, savvy?");
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nTier not available.");
return;
}
foreach(varfinfishinv)
{
int[]amounts;
if(!fishinv.TryGetValue(f.Key,outamounts))
{
amounts=newint[]{0,0,0};
fishinv.Add(f.Key,amounts);
}
fish=fishes.FirstOrDefault(i=>i.Id==f.Key);
if(fish.Rarity!=FishRarity.Legendary)
{
count+=f.Value[0]+f.Value[1]+f.Value[2];
switch(fish.Rarity)//small
{
caseFishRarity.Common:
{
value+=(int)fish.Tier*1*1;
}
break;
caseFishRarity.Uncommon:
{
value+=(int)fish.Tier*1*3;
}
break;
caseFishRarity.Rare:
{
value+=(int)fish.Tier*1*6;
}
break;
}
////
switch(fish.Rarity)//med
{
caseFishRarity.Common:
{
value+=(int)fish.Tier*2*1;
}
break;
caseFishRarity.Uncommon:
{
value+=(int)fish.Tier*2*3;
}
break;
caseFishRarity.Rare:
{
value+=(int)fish.Tier*2*6;
}
break;
}
////
switch(fish.Rarity)//large
{
caseFishRarity.Common:
{
value+=(int)fish.Tier*3*1;
}
break;
caseFishRarity.Uncommon:
{
value+=(int)fish.Tier*3*3;
}
break;
caseFishRarity.Rare:
{
value+=(int)fish.Tier*3*6;
}
break;
}
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou're about to sell **{count} Fish** for **{((long)value).ToYeedraDisplay()}**.\nType 'ok' to confirm.");
// await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nTier not available.");
// return;
// }
// foreach (var f in fishinv)
// {
// int[] amounts;
// if (!fishinv.TryGetValue(f.Key, out amounts))
// {
// amounts = new int[] { 0, 0, 0 };
// fishinv.Add(f.Key, amounts);
// }
// fish = fishes.FirstOrDefault(i => i.Id == f.Key);
// if (fish.Rarity != FishRarity.Legendary)
// {
// count += f.Value[0] + f.Value[1] + f.Value[2];
// switch (fish.Rarity) //small
// {
// case FishRarity.Common:
// {
// value += (int)fish.Tier * 1 * 1;
// }
// break;
// case FishRarity.Uncommon:
// {
// value += (int)fish.Tier * 1 * 3;
// }
// break;
// case FishRarity.Rare:
// {
// value += (int)fish.Tier * 1 * 6;
// }
// break;
// }
// ////
// switch (fish.Rarity) //med
// {
// case FishRarity.Common:
// {
// value += (int)fish.Tier * 2 * 1;
// }
// break;
// case FishRarity.Uncommon:
// {
// value += (int)fish.Tier * 2 * 3;
// }
// break;
// case FishRarity.Rare:
// {
// value += (int)fish.Tier * 2 * 6;
// }
// break;
// }
// ////
// switch (fish.Rarity) //large
// {
// case FishRarity.Common:
// {
// value += (int)fish.Tier * 3 * 1;
// }
// break;
// case FishRarity.Uncommon:
// {
// value += (int)fish.Tier * 3 * 3;
// }
// break;
// case FishRarity.Rare:
// {
// value += (int)fish.Tier * 3 * 6;
// }
// break;
// }
// await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nYou're about to sell **{count} Fish** for **{((long)value).ToYeedraDisplay()}**.\nType 'ok' to confirm.");
// inp = await NextMessageAsync();
// if (inp.Content.ToLowerInvariant() == "ok")
// {
// fuser.SetInventory(fishinv);
// if (!user.GrantMoney(Database.Users.FirstOrDefault(x => x.Id == 0), value))
// {
// await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nBank has no money, buy more bait.");
// return;
// }
// await Database.SaveChangesAsync();
// await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nThanks, seaman, enjoy your moolah.");
[Command("remind"), Summary("Reminds you in a given time. (days, hours, minutes) Eg. 'remind 1 2 3 wash hands' would remind you in 1 day, 2 hours, 3 minutes to wash your hands")]