本文整理汇总了C#中GoldTree.HabboHotel.Items.RoomItem.method_9方法的典型用法代码示例。如果您正苦于以下问题:C# RoomItem.method_9方法的具体用法?C# RoomItem.method_9怎么用?C# RoomItem.method_9使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoldTree.HabboHotel.Items.RoomItem
的用法示例。
在下文中一共展示了RoomItem.method_9方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
{
if (bool_0)
{
RoomItem_0.method_9();
ServerMessage Message = new ServerMessage(651u);
Message.AppendInt32(0);
Message.AppendInt32(5);
if (RoomItem_0.string_5.Length > 0)
{
Message.AppendString(RoomItem_0.string_5);
}
else
{
Message.AppendInt32(0);
}
Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
Message.AppendUInt(RoomItem_0.uint_0);
Message.AppendStringWithBreak("");
Message.AppendString("J");
if (RoomItem_0.string_2.Length > 0)
{
Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_2));
}
else
{
Message.AppendInt32(0);
}
if (RoomItem_0.string_3.Length > 0)
{
Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_3));
}
else
{
Message.AppendInt32(0);
}
Message.AppendString("HPA");
if (RoomItem_0.string_6.Length > 0)
{
Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_6));
}
else
{
Message.AppendInt32(0);
}
Message.AppendStringWithBreak("H");
Session.SendMessage(Message);
}
}
示例2: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem Item, int Request, bool UserHasRights)
{
if (UserHasRights && Session != null)
{
Item.method_9();
ServerMessage Message = new ServerMessage(651u);
Message.AppendInt32(0);
Message.AppendInt32(5);
if (Item.string_5.Length > 0)
{
Message.AppendString(Item.string_5);
}
else
{
Message.AppendInt32(0);
}
Message.AppendInt32(Item.GetBaseItem().Sprite);
Message.AppendUInt(Item.uint_0);
Message.AppendStringWithBreak("");
Message.AppendString("K");
if (Item.string_3.Length > 0)
{
Message.AppendString(Item.string_3);
}
else
{
Message.AppendString("HHH");
}
Message.AppendString("IK");
if (Item.string_6.Length > 0)
{
Message.AppendInt32(Convert.ToInt32(Item.string_6));
}
else
{
Message.AppendInt32(0);
}
Message.AppendStringWithBreak("H");
Session.SendMessage(Message);
}
}