本文整理汇总了C#中Essential.HabboHotel.GameClients.GameClient.LoadRoom方法的典型用法代码示例。如果您正苦于以下问题:C# GameClient.LoadRoom方法的具体用法?C# GameClient.LoadRoom怎么用?C# GameClient.LoadRoom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Essential.HabboHotel.GameClients.GameClient
的用法示例。
在下文中一共展示了GameClient.LoadRoom方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
GameClient otherClient = Essential.GetGame().GetGuideManager().GetTicket(Session.GetHabbo().Id).GetOtherClient(Session.GetHabbo().Id);
Session.LoadRoom(otherClient.GetHabbo().CurrentRoomId);
}
示例2: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
ServerMessage Message = new ServerMessage(Outgoing.HabboInfomation);
Message.AppendUInt(Session.GetHabbo().Id);
Message.AppendStringWithBreak(Session.GetHabbo().Username);
Message.AppendStringWithBreak(Session.GetHabbo().Figure);
Message.AppendStringWithBreak(Session.GetHabbo().Gender.ToUpper());
Message.AppendStringWithBreak(Session.GetHabbo().Motto);
Message.AppendStringWithBreak(Session.GetHabbo().RealName);
Message.AppendBoolean(false);
Message.AppendInt32(Session.GetHabbo().Respect);
Message.AppendInt32(Session.GetHabbo().RespectPoints);
Message.AppendInt32(Session.GetHabbo().PetRespectPoints);
Message.AppendBoolean(true);
Message.AppendStringWithBreak(Essential.TimestampToDate(double.Parse(Session.GetHabbo().LastOnline)).ToLongDateString());
Message.AppendBoolean(Session.GetHabbo().HasFuse("cmd_flagme"));
Message.AppendBoolean(false);
Session.SendMessage(Message);
ServerMessage Allowances = new ServerMessage(Outgoing.Allowances);
Allowances.AppendInt32(7);//this.Session.GetHabbo().PassedQuiz ? 7 : 5);
Allowances.AppendString("VOTE_IN_COMPETITIONS");
Allowances.AppendBoolean(true);
Allowances.AppendString("");
Allowances.AppendString("TRADE");
Allowances.AppendBoolean(true);
Allowances.AppendString("");
Allowances.AppendString("CITIZEN");
Allowances.AppendBoolean(Session.GetHabbo().PassedHabboWayQuiz);
Allowances.AppendString("");
Allowances.AppendString("SAFE_CHAT");
Allowances.AppendBoolean(Session.GetHabbo().PassedSafetyQuiz);
Allowances.AppendString("");
Allowances.AppendString("FULL_CHAT");
Allowances.AppendBoolean(Session.GetHabbo().PassedSafetyQuiz);
Allowances.AppendString("");
Allowances.AppendString("CALL_ON_HELPERS");
Allowances.AppendBoolean(true);
Allowances.AppendString("");
Allowances.AppendString("USE_GUIDE_TOOL");
Allowances.AppendBoolean(Session.GetHabbo().IsGuide);
Allowances.AppendString("requirement.unfulfilled.helper_level_4");
Allowances.AppendString("JUDGE_CHAT_REVIEWS");
Allowances.AppendBoolean(false);
Allowances.AppendString("requirement.unfulfilled.helper_level_6");
Session.SendMessage(Allowances);
ServerMessage AchievementPoints = new ServerMessage(Outgoing.AchievementPoints);
AchievementPoints.AppendInt32(Session.GetHabbo().AchievementScore);
Session.SendMessage(AchievementPoints);
Session.GetHabbo().method_12();
ServerMessage SendAllowances = new ServerMessage(Outgoing.SendAllowances);
SendAllowances.AppendString("2012-11-09 19:00,hstarsa;2012-11-30 12:00,");
SendAllowances.AppendString("hstarsa");
Session.SendMessage(SendAllowances);
SendAllowances = new ServerMessage(Outgoing.SendAllowances);
SendAllowances.AppendString("2012-11-09 15:00,hstarsbots;2012-11-16 18:00,diarare;2012-11-19 12:00,xmasghost1;2012-11-22 20:00,xmasghost2;2012-11-22 20:45,xmasghost1;2012-11-25 21:00,xmasghost2;2012-11-25 21:45,xmasghost1;2012-11-28 22:00,xmasghost2;2012-11-28 22:45,xmasghost1;2012-11-30 14:00,");
SendAllowances.AppendString("xmasghost1");
Session.SendMessage(SendAllowances);
SendAllowances = new ServerMessage(Outgoing.SendAllowances);
SendAllowances.AppendString("2012-11-23 18:00,hstarssubmit2;2012-11-26 11:00,;2012-11-26 14:00,hstarsvote2;2012-11-28 11:00,");
SendAllowances.AppendString("hstarsvote2");
Session.SendMessage(SendAllowances);
SendAllowances = new ServerMessage(Outgoing.SendAllowances);
SendAllowances.AppendString("2012-11-09 18:00,hspeedway;2012-11-15 15:00,hstarsdiamonds;2012-11-30 12:00,");
SendAllowances.AppendString("hstarsdiamonds");
Session.SendMessage(SendAllowances);
SendAllowances = new ServerMessage(Outgoing.SendAllowances);
SendAllowances.AppendString("");
SendAllowances.AppendString("");
Session.SendMessage(SendAllowances);
if (!Session.GetHabbo().PassedHabboWayQuiz)
{
ServerMessage CitizenshipPanel = new ServerMessage(Outgoing.CitizenshipPanel);
CitizenshipPanel.AppendString("citizenship");
CitizenshipPanel.AppendInt32(1);
CitizenshipPanel.AppendInt32(4);
Session.SendMessage(CitizenshipPanel);
}
if(!Session.IsMobileUser)
Session.LoadRoom(Session.GetHabbo().HomeRoomId);
}
示例3: HandleCommands
//.........这里部分代码省略.........
{
Session.SendNotification("Konnte den User nicht finden / Du kannst diesen User nicht melden.");
return true;
}
Session.SendNotification("Vielen Dank für deinen Bericht. Falls ein Staff online ist, wird er den Werber direkt bannen!");
using (DatabaseClient dbClient = Essential.GetDatabase().GetClient())
{
dbClient.AddParamWithValue("useridwerber", TargetClient.GetHabbo().Id);
dbClient.AddParamWithValue("useridmelder", Session.GetHabbo().Id);
dbClient.AddParamWithValue("timestamp", Essential.GetUnixTimestamp());
dbClient.ExecuteQuery("INSERT INTO hp_modlog (user_id, action, bemerkung, timestamp) VALUES (@useridwerber, 'werber', @useridmelder, @timestamp)");
}
/*foreach (string username in Essential.GetGame().GetClientManager().OnlineStaffs(4))
{
Essential.getWebSocketManager().getWebSocketByName(username).Send("3|" + Params[1].Replace("|", "") + "|" + Session.GetHabbo().Username.Replace("|", ""));
}*/
return true;
case 137:
if (Session.GetHabbo().Rank >= int.Parse(config.getData("cmd.customhotelalert.minrank")))
{
string pt1 = "2|" + Session.GetHabbo().Username.Replace("|", "") + "|";
Essential.getWebSocketManager().SendMessageToEveryConnection(pt1 + Input.Replace("|", "").Substring(config.getData("cmd.customhotelalert.name").Length + 1));
return true;
}
return false;
case 138:
Session.GetHabbo().TradingDisabled = Session.GetHabbo().TradingDisabled ? false : true;
Session.SendNotification("Dich kann man " + (Session.GetHabbo().TradingDisabled ? "nicht mehr antauschen" : "antauschen"));
return true;
case 139:
Session.LoadRoom(uint.Parse(config.getData("cmd.eingang.roomid")));
return true;
case 140:
Session.LoadRoom(Session.GetHabbo().HomeRoomId);
return true;
case 141:
Session.LoadRoom(uint.Parse(config.getData("cmd.infocenter.roomid")));
return true;
case 143:
{
if (Session.GetHabbo().Rank >= uint.Parse(config.getData("cmd.eventha.minrank")))
{
string text = Input.Substring(1 + config.getData("cmd.eventha.name").Length);
if (text.Length > 1)
{
text = AntiAd.AntiAd.Utf8ToUtf16(text);
string toSend = "5|" + text + "|" + Session.GetHabbo().CurrentRoom.Owner + "|" + Session.GetHabbo().CurrentRoomId;
Essential.getWebSocketManager().SendMessageToEveryConnection(toSend);
Session.GetHabbo().StoreActivity("makeevent", Session.GetHabbo().CurrentRoomId, Essential.GetUnixTimestamp(), text);
}
return true;
}
return false;
}
case 144:
{
if (Session.GetHabbo().Rank >= uint.Parse(config.getData("cmd.backup.minrank")))
{
WebClient wc = new WebClient();
System.Threading.Thread thrd = new Thread(delegate()
{
wc.DownloadString(config.getData("cmd.backup.url"));