本文整理汇总了C#中Essential.HabboHotel.GameClients.GameClient.Whisper方法的典型用法代码示例。如果您正苦于以下问题:C# GameClient.Whisper方法的具体用法?C# GameClient.Whisper怎么用?C# GameClient.Whisper使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Essential.HabboHotel.GameClients.GameClient
的用法示例。
在下文中一共展示了GameClient.Whisper方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleCommands
//.........这里部分代码省略.........
}
return false;
case 47:
if (Session.GetHabbo().HasFuse("cmd_setspeed"))
{
int.Parse(Params[1]);
Session.GetHabbo().CurrentRoom.method_102(int.Parse(Params[1]));
Essential.GetGame().GetClientManager().StoreCommand(Session, Params[0].ToLower(), Input);
return true;
}
return false;
case 48:
// no shutdown command :)
return false;
case 49:
if (Session.GetHabbo().HasFuse("cmd_spull"))
{
try
{
if (!Session.GetHabbo().CurrentRoom.CanPull)
return false;
string a = "down";
string text = Params[1];
TargetClient = Essential.GetGame().GetClientManager().GetClientByHabbo(text);
class2 = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (Session == null || TargetClient == null)
{
return false;
}
RoomUser class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username)
{
Session.GetHabbo().Whisper("Du kannst dich nicht selber ziehen.");
return true;
}
class6.HandleSpeech(Session, "*zieht " + TargetClient.GetHabbo().Username + " zu sich*", false);
if (class6.BodyRotation == 0)
{
a = "up";
}
if (class6.BodyRotation == 2)
{
a = "right";
}
if (class6.BodyRotation == 4)
{
a = "down";
}
if (class6.BodyRotation == 6)
{
a = "left";
}
if (a == "up")
{
if (ServerConfiguration.PreventDoorPush)
{
if (!(class6.X == class2.RoomModel.DoorX && class6.Y - 1 == class2.RoomModel.DoorY) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
class4.MoveTo(class6.X, class6.Y - 1);
else
class4.MoveTo(class6.X, class6.Y + 1);
}
else
{
class4.MoveTo(class6.X, class6.Y - 1);
}