本文整理汇总了C#中RoomUser.ClearStatuses方法的典型用法代码示例。如果您正苦于以下问题:C# RoomUser.ClearStatuses方法的具体用法?C# RoomUser.ClearStatuses怎么用?C# RoomUser.ClearStatuses使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RoomUser
的用法示例。
在下文中一共展示了RoomUser.ClearStatuses方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: method_87
//.........这里部分代码省略.........
{
if (bool_14)
{
if (!User.IsBot)
this.method_11(User, current);
else if (User.IsBot && !User.IsPet)
this.TriggerBotOnFurni(User, current);
}
if (current.GetBaseItem().InteractionType.ToLower() == "instant_teleport")
{
if (!User.IsBot)
{
User.int_19 = -1;
current.InteractingUser = User.GetClient().GetHabbo().Id;
User.RoomItem_0 = current;
current.ProcessUpdates();
}
}
if (current.GetBaseItem().InteractionType.ToLower() == "pressure_pad")
{
current.ExtraData = "1";
current.UpdateState(false, true);
}
if (current.GetBaseItem().InteractionType.ToLower() == "pressure_random")
{
current.ExtraData = new Random().Next(1, current.GetBaseItem().Modes).ToString();
current.UpdateState(false, true);
}
if (current.GetBaseItem().InteractionType.ToLower() == "pet_drink")
{
if (User.IsPet)
{
User.ClearStatuses();
User.Statusses.Add("eat", TextHandling.GetString(User.double_0));
}
}
num = 15;
if (current.GetBaseItem().InteractionType.ToLower() == "fbgate" && (!string.IsNullOrEmpty(current.string_2) || !string.IsNullOrEmpty(current.string_3)) && User != null && !User.IsBot)
{
if (User.string_0 != "")
{
User.GetClient().GetHabbo().Figure = User.string_0;
User.string_0 = "";
ServerMessage Message = new ServerMessage(Outgoing.UpdateUserInformation);
Message.AppendInt32(User.VirtualId);
Message.AppendStringWithBreak(User.GetClient().GetHabbo().Figure);
Message.AppendStringWithBreak(User.GetClient().GetHabbo().Gender.ToLower());
Message.AppendStringWithBreak(User.GetClient().GetHabbo().Motto);
Message.AppendInt32(User.GetClient().GetHabbo().AchievementScore);
// Message.AppendStringWithBreak("");
this.SendMessage(Message, null);
}
else
{
string a = User.GetClient().GetHabbo().Gender;
User.string_0 = User.GetClient().GetHabbo().Figure;
if (a == "m")
{
AntiMutant.ValidateUserLook(User, current.string_2);
}
else
{
AntiMutant.ValidateUserLook(User, current.string_3);
}
ServerMessage Message = new ServerMessage(Outgoing.UpdateUserInformation);