当前位置: 首页>>代码示例>>C#>>正文


C# GameClient.AboutMessage方法代码示例

本文整理汇总了C#中Essential.HabboHotel.GameClients.GameClient.AboutMessage方法的典型用法代码示例。如果您正苦于以下问题:C# GameClient.AboutMessage方法的具体用法?C# GameClient.AboutMessage怎么用?C# GameClient.AboutMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Essential.HabboHotel.GameClients.GameClient的用法示例。


在下文中一共展示了GameClient.AboutMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HandleCommands


//.........这里部分代码省略.........
                                                {
                                                    if (!(class4.X + 1 == class2.RoomModel.DoorX && class4.Y == class2.RoomModel.DoorY) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                        class4.MoveTo(class4.X + 1, class4.Y);
                                                }
                                                else
                                                {
                                                    class4.MoveTo(class4.X + 1, class4.Y);
                                                }
                                            }
                                            if (a == "down")
                                            {
                                                if (ServerConfiguration.PreventDoorPush)
                                                {
                                                    if (!(class4.X == class2.RoomModel.DoorX && class4.Y + 1 == class2.RoomModel.DoorY) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                        class4.MoveTo(class4.X, class4.Y + 1);
                                                }
                                                else
                                                {
                                                    class4.MoveTo(class4.X, class4.Y + 1);
                                                }
                                            }
                                            if (a == "left")
                                            {
                                                if (ServerConfiguration.PreventDoorPush)
                                                {
                                                    if (!(class4.X - 1 == class2.RoomModel.DoorX && class4.Y == class2.RoomModel.DoorY) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor"))
                                                        class4.MoveTo(class4.X - 1, class4.Y);
                                                }
                                                else
                                                {
                                                    class4.MoveTo(class4.X - 1, class4.Y);
                                                }
                                            }
                                        }
                                        return true;
                                    }
                                    catch
                                    {
                                        return false;
                                    }
                                IL_3F03:
                                    class2 = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                    class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                    if (class6.Boolean_3)
                                    {
                                        Session.GetHabbo().Whisper("Befehl während einem Tausch nicht möglich!");
                                        return true;
                                    }
                                    if (ServerConfiguration.EnableRedeemCredits)
                                    {
                                        Session.GetHabbo().GetInventoryComponent().ConvertCoinsToCredits();
                                    }
                                    else
                                    {
                                        Session.GetHabbo().Whisper(EssentialEnvironment.GetExternalText("cmd_error_disabled"));
                                    }
                                    return true;
                                }
                        }
                    }
                IL_2F05:
                    try
                    {
                        DateTime now = DateTime.Now;
                        TimeSpan timeSpan = now - Essential.ServerStarted;
                        int clients = Essential.GetGame().GetClientManager().ClientCount;
                        int rooms = Essential.GetGame().GetRoomManager().LoadedRoomsCount;
                        string text10 = "";
                        if (ServerConfiguration.ShowUsersAndRoomsInAbout)
                        {
                            text10 = string.Concat(new object[]
						{
							"\nHabbos online: ",
							clients,
							"\nOffene Räume: ",
							rooms
						});
                        }
                        Session.AboutMessage(string.Concat(new object[]
					    {
						    "Online seit: ",
						    timeSpan.Days,
						    " Tage, ",
						    timeSpan.Hours,
						    " Stunden und ",
						    timeSpan.Minutes,
						    " Minuten",
						    text10,
                            "\n\n\nPowered by Essential 5. Only for Habbo.TL"
					    }), "http://rootkit.ch");
                        // no one cares who made this shit anyways. So I didn't give Credits for anyone, neither me or Aaron.
                    }
                    catch { }
                    return true;
                IL_3F91: ;
                }
                catch { /*throws Exception everytime an argument isn't set!*/}
                return false;
            }
        }
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:101,代码来源:ChatCommandHandler.cs


注:本文中的Essential.HabboHotel.GameClients.GameClient.AboutMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。