本文整理汇总了C#中Server.MirObjects.PlayerObject.GetMail方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerObject.GetMail方法的具体用法?C# PlayerObject.GetMail怎么用?C# PlayerObject.GetMail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.MirObjects.PlayerObject
的用法示例。
在下文中一共展示了PlayerObject.GetMail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProcessSpecial
//.........这里部分代码省略.........
case StorageKey:
player.SendStorage();
player.Enqueue(new S.NPCStorage());
break;
case BuyBackKey:
if (!BuyBack.ContainsKey(player.Name)) BuyBack[player.Name] = new List<UserItem>();
for (int i = 0; i < BuyBack[player.Name].Count; i++)
{
player.CheckItem(BuyBack[player.Name][i]);
}
player.Enqueue(new S.NPCGoods { List = BuyBack[player.Name], Rate = Info.PriceRate });
break;
case BuyUsedKey:
for (int i = 0; i < UsedGoods.Count; i++)
player.CheckItem(UsedGoods[i]);
player.Enqueue(new S.NPCGoods { List = UsedGoods, Rate = Info.PriceRate });
break;
case ConsignKey:
player.Enqueue(new S.NPCConsign());
break;
case MarketKey:
player.UserMatch = false;
player.GetMarket(string.Empty, ItemType.Nothing);
break;
case ConsignmentsKey:
player.UserMatch = true;
player.GetMarket(string.Empty, ItemType.Nothing);
break;
case GuildCreateKey:
if (player.Info.Level < Settings.Guild_RequiredLevel)
{
player.ReceiveChat(String.Format("You have to be at least level {0} to create a guild.", Settings.Guild_RequiredLevel), ChatType.System);
}
if (player.MyGuild == null)
{
player.CanCreateGuild = true;
player.Enqueue(new S.GuildNameRequest());
}
else
player.ReceiveChat("You are already part of a guild.", ChatType.System);
break;
case RequestWarKey:
if (player.MyGuild != null)
{
if (player.MyGuildRank != player.MyGuild.Ranks[0])
{
player.ReceiveChat("You must be the leader to request a war.", ChatType.System);
return;
}
player.Enqueue(new S.GuildRequestWar());
}
else
{
player.ReceiveChat("You are not in a guild.", ChatType.System);
}
break;
case SendParcelKey:
player.Enqueue(new S.MailSendRequest());
break;
case CollectParcelKey:
sbyte result = 0;
if (player.GetMailAwaitingCollectionAmount() < 1)
{
result = -1;
}
else
{
foreach (var mail in player.Info.Mail)
{
if (mail.Parcel) mail.Collected = true;
}
}
player.Enqueue(new S.ParcelCollected { Result = result });
player.GetMail();
break;
case AwakeningKey:
player.Enqueue(new S.NPCAwakening());
break;
case DisassembleKey:
player.Enqueue(new S.NPCDisassemble());
break;
case DowngradeKey:
player.Enqueue(new S.NPCDowngrade());
break;
case ResetKey:
player.Enqueue(new S.NPCReset());
break;
case PearlBuyKey:
for (int i = 0; i < Goods.Count; i++)
player.CheckItem(Goods[i]);
player.Enqueue(new S.NPCPearlGoods { List = Goods, Rate = Info.PriceRate });
break;
}
}