public override void OnTrigger(GameClient Session, RoomItem Item, int Request, bool UserHasRights) { if (UserHasRights && Session != null) { Item.method_9(); ServerMessage Message = new ServerMessage(652u); 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("J"); if (Item.string_3.Length > 0) { Message.AppendString(Item.string_3); } else { Message.AppendString("HHH"); } Session.SendMessage(Message); } }
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0) { if (bool_0) { ServerMessage Message = new ServerMessage(650u); Message.AppendInt32(0); Message.AppendInt32(5); Message.AppendInt32(0); Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite); Message.AppendUInt(RoomItem_0.uint_0); Message.AppendStringWithBreak(""); Message.AppendString("I"); if (RoomItem_0.string_3.Length > 0) { Message.AppendString(RoomItem_0.string_3); } else { Message.AppendString("RB"); } Message.AppendStringWithBreak("HRAH"); Session.SendMessage(Message); RoomItem_0.ReqUpdate(1); } }
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); } }
public void Handle(GameClient Session, ClientMessage Event) { uint num = Event.PopWiredUInt(); string text = GoldTree.FilterString(Event.PopFixedString()); if (Session != null && Session.GetHabbo() != null && Session.GetHabbo().GetMessenger() != null) { if (num == 0u && Session.GetHabbo().HasFuse("cmd_sa")) { ServerMessage Message = new ServerMessage(134u); Message.AppendUInt(0u); Message.AppendString(Session.GetHabbo().Username + ": " + text); GoldTree.GetGame().GetClientManager().method_17(Session, Message); } else { if (num == 0u) { ServerMessage Message2 = new ServerMessage(261u); Message2.AppendInt32(4); Message2.AppendUInt(0u); Session.SendMessage(Message2); } else { if (Session != null && Session.GetHabbo() != null) { Session.GetHabbo().GetMessenger().method_18(num, text); } } } } }
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0) { if (bool_0) { ServerMessage Message = new ServerMessage(650u); Message.AppendInt32(0); Message.AppendInt32(0); Message.AppendInt32(0); Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite); Message.AppendUInt(RoomItem_0.uint_0); Message.AppendString(RoomItem_0.string_2); Session.SendMessage(Message); } }
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0) { if (bool_0 && Session != null) { RoomItem_0.method_10(); ServerMessage Message = new ServerMessage(652u); Message.AppendInt32(0); Message.AppendInt32(5); if (RoomItem_0.string_2.Length > 0) { Message.AppendString(RoomItem_0.string_2); } else { Message.AppendInt32(0); } Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite); Message.AppendUInt(RoomItem_0.uint_0); Message.AppendStringWithBreak(""); Message.AppendStringWithBreak("HH"); Session.SendMessage(Message); } }
public ServerMessage method_2() { ServerMessage Message = new ServerMessage(470u); string[] array = this.string_1.Split(new char[] { Convert.ToChar(13) }); for (int i = 0; i < this.int_5; i++) { if (i > 0) { array[i] = array[i].Substring(1); } for (int j = 0; j < this.int_4; j++) { string text = array[i].Substring(j, 1).Trim().ToLower(); if (this.int_0 == j && this.int_1 == i) { text = string.Concat((int)this.double_0); } Message.AppendString(text); } Message.AppendString(string.Concat(Convert.ToChar(13))); } return Message; }
public static bool smethod_5(GameClient Session, string Input) { string[] Params = Input.Split(new char[] { ' ' }); GameClient TargetClient = null; Room class2 = Session.GetHabbo().CurrentRoom; if (!GoldTree.GetGame().GetRoleManager().dictionary_4.ContainsKey(Params[0])) { return false; } else { try { int num; if (class2 != null && class2.CheckRights(Session, true)) { num = GoldTree.GetGame().GetRoleManager().dictionary_4[Params[0]]; if (num <= 33) { if (num == 8) { class2 = Session.GetHabbo().CurrentRoom; if (class2.bool_5) { class2.bool_5 = false; } else { class2.bool_5 = true; } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } if (num == 33) { class2 = Session.GetHabbo().CurrentRoom; if (class2 != null && class2.CheckRights(Session, true)) { List<RoomItem> list = class2.method_24(Session); Session.GetHabbo().method_23().method_17(list); Session.GetHabbo().method_23().method_9(true); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input + " " + Session.GetHabbo().CurrentRoomId); return true; } return false; } } else { if (num == 46) { class2 = Session.GetHabbo().CurrentRoom; try { int num2 = int.Parse(Params[1]); if (Session.GetHabbo().Rank >= 6u) { class2.UsersMax = num2; } else { if (num2 > 100 || num2 < 5) { Session.SendNotif("ERROR: Use a number between 5 and 100"); } else { class2.UsersMax = num2; } } } catch { return false; } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } if (num == 53) { class2 = Session.GetHabbo().CurrentRoom; GoldTree.GetGame().GetRoomManager().method_16(class2); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } } } switch (GoldTree.GetGame().GetRoleManager().dictionary_4[Params[0]]) { case 2: { if (!Session.GetHabbo().HasFuse("cmd_alert")) { return false; } string TargetUser = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(TargetUser); if (TargetClient == null) { Session.SendNotif("Could not find user: "******"cmd_award")) { return false; } string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); if (TargetClient == null) { Session.SendNotif("Could not find user: "******"cmd_ban")) { return false; } TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient == null) { Session.SendNotif("User not found."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } if (TargetClient.GetHabbo().Rank >= Session.GetHabbo().Rank && !Session.GetHabbo().isJuniori) { Session.SendNotif("You are not allowed to ban that user."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } string banlenght = "0"; try { banlenght = Params[2]; } catch (FormatException) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("OOPS! Something went wrong when trying format ban length! Report this and your date format!"); Console.ForegroundColor = ConsoleColor.Gray; } banlenght = banlenght.Replace("m", ""); banlenght = banlenght.Replace("h", ""); banlenght = banlenght.Replace("d", ""); Console.WriteLine(banlenght); int num3 = 0; try { num3 = int.Parse(banlenght); } catch (FormatException) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("OOPS! Something went wrong when trying format ban length! Report this and your date format!"); Console.ForegroundColor = ConsoleColor.Gray; } if (Params[2].Contains("m")) { num3 *= 60; } if (Params[2].Contains("h")) { num3 *= 3600; } if (Params[2].Contains("d")) { num3 *= 86400; } Console.WriteLine(num3); int laskettupaivia = 0; int laskettutunteja = 0; int laskettuminuutteja = 0; int laskettavaa = num3; for (int i = 0; laskettavaa >= 86400; i++) { laskettupaivia += 1; laskettavaa -= 86400; } for (int i = 0; laskettavaa >= 3600; i++) { laskettutunteja += 1; laskettavaa -= 3600; } for (int i = 0; laskettavaa >= 60; i++) { laskettuminuutteja += 1; laskettavaa -= 60; } if (num3 < 600) { Session.SendNotif("Ban time is in seconds and must be at least 600 seconds (ten minutes). For more specific preset ban times, use the mod tool."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } Session.SendNotif("You banned user: "******" Ban lenght is: " + laskettupaivia + " day " + laskettutunteja + " hour " + laskettuminuutteja + " minute " + laskettavaa + " second"); GoldTree.GetGame().GetBanManager().method_2(TargetClient, Session.GetHabbo().Username, (double)num3, ChatCommandHandler.MergeParams(Params, 3), false); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 6: { if (!Session.GetHabbo().HasFuse("cmd_coins")) { return false; } TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient == null) { Session.SendNotif("User could not be found."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } int num4; if (int.TryParse(Params[2], out num4)) { long NoBug = 0; NoBug += TargetClient.GetHabbo().Credits; NoBug += num4; Console.WriteLine(NoBug); if (NoBug <= 2147483647 || -2147483648 >= NoBug) { TargetClient.GetHabbo().Credits = TargetClient.GetHabbo().Credits + num4; TargetClient.GetHabbo().method_13(true); TargetClient.SendNotif(Session.GetHabbo().Username + " has awarded you " + num4.ToString() + " credits!"); Session.SendNotif("Credit balance updated successfully."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); } else { if (num4 > 0) { TargetClient.GetHabbo().Credits = 2147483647; TargetClient.GetHabbo().method_13(true); TargetClient.SendNotif("You just received max credits from staff!"); } else if (num4 < 0) { TargetClient.GetHabbo().Credits = -2147483648; TargetClient.GetHabbo().method_13(true); TargetClient.SendNotif("You just received max negative credits from staff!"); } } return true; } Session.SendNotif("Please send a valid amount of credits."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 7: { if (!Session.GetHabbo().HasFuse("cmd_coords")) { return false; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (class2 == null) { return false; } RoomUser class3 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class3 == null) { return false; } Session.SendNotif(string.Concat(new object[] { "X: ", class3.int_3, " - Y: ", class3.int_4, " - Z: ", class3.double_0, " - Rot: ", class3.int_8, ", sqState: ", class2.Byte_0[class3.int_3, class3.int_4].ToString() })); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 11: if (Session.GetHabbo().HasFuse("cmd_enable")) { int int_ = int.Parse(Params[1]); Session.GetHabbo().method_24().method_2(int_, true); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 14: if (Session.GetHabbo().HasFuse("cmd_freeze")) { RoomUser class4 = Session.GetHabbo().CurrentRoom.method_56(Params[1]); if (class4 != null) { class4.bool_5 = !class4.bool_5; } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 15: if (Session.GetHabbo().HasFuse("cmd_givebadge")) { TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient != null) { TargetClient.GetHabbo().method_22().method_2(TargetClient, GoldTree.FilterString(Params[2]), true); } else { Session.SendNotif("User: "******" could not be found in the database.\rPlease try your request again."); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 16: if (Session.GetHabbo().HasFuse("cmd_globalcredits")) { try { int num5 = int.Parse(Params[1]); GoldTree.GetGame().GetClientManager().method_18(num5); using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { class5.ExecuteQuery("UPDATE users SET credits = credits + " + num5); } } catch { Session.SendNotif("Input must be a number"); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 17: if (Session.GetHabbo().HasFuse("cmd_globalpixels")) { try { int num5 = int.Parse(Params[1]); GoldTree.GetGame().GetClientManager().method_19(num5, false); using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { class5.ExecuteQuery("UPDATE users SET activity_points = activity_points + " + num5); } } catch { Session.SendNotif("Input must be a number"); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 18: if (Session.GetHabbo().HasFuse("cmd_globalpoints")) { try { int num5 = int.Parse(Params[1]); GoldTree.GetGame().GetClientManager().method_20(num5, false); using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { class5.ExecuteQuery("UPDATE users SET vip_points = vip_points + " + num5); } } catch { Session.SendNotif("Input must be a number"); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 19: if (Session.GetHabbo().HasFuse("cmd_hal")) { string text2 = Params[1]; Input = Input.Substring(4).Replace(text2, ""); string text3 = Input.Substring(1); ServerMessage Message = new ServerMessage(161u); Message.AppendStringWithBreak(string.Concat(new string[] { GoldTreeEnvironment.smethod_1("cmd_hal_title"), "\r\n", text3, "\r\n-", Session.GetHabbo().Username })); Message.AppendStringWithBreak(text2); GoldTree.GetGame().GetClientManager().method_14(Message); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 20: if (Session.GetHabbo().HasFuse("cmd_ha")) { string str = Input.Substring(3); ServerMessage Message2 = new ServerMessage(808u); Message2.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("cmd_ha_title")); Message2.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username); ServerMessage Message3 = new ServerMessage(161u); Message3.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username); GoldTree.GetGame().GetClientManager().method_15(Message2, Message3); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 21: if (Session.GetHabbo().HasFuse("cmd_invisible")) { Session.GetHabbo().isVisible = !Session.GetHabbo().isVisible; Session.SendNotif("You are now " + (Session.GetHabbo().isVisible ? "visible" : "invisible") + "\nTo apply the changes reload the room ;D"); return true; } return false; case 22: if (!Session.GetHabbo().HasFuse("cmd_ipban")) { return false; } TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient == null) { Session.SendNotif("User not found."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } if (TargetClient.GetHabbo().Rank >= Session.GetHabbo().Rank && !Session.GetHabbo().isJuniori) { Session.SendNotif("You are not allowed to ban that user."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } GoldTree.GetGame().GetBanManager().method_2(TargetClient, Session.GetHabbo().Username, 360000000.0, ChatCommandHandler.MergeParams(Params, 2), true); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; case 23: { if (!Session.GetHabbo().HasFuse("cmd_kick")) { return false; } string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); if (TargetClient == null) { Session.SendNotif("Could not find user: "******"You are not allowed to kick that user."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } if (TargetClient.GetHabbo().CurrentRoomId < 1u) { Session.SendNotif("That user is not in a room and can not be kicked."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(TargetClient.GetHabbo().CurrentRoomId); if (class2 == null) { GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } class2.method_47(TargetClient, true, false); if (Params.Length > 2) { TargetClient.SendNotif("A moderator has kicked you from the room for the following reason: " + ChatCommandHandler.MergeParams(Params, 2)); } else { TargetClient.SendNotif("A moderator has kicked you from the room."); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 24: if (Session.GetHabbo().HasFuse("cmd_massbadge")) { GoldTree.GetGame().GetClientManager().method_21(Params[1]); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 25: if (Session.GetHabbo().HasFuse("cmd_masscredits")) { try { int num5 = int.Parse(Params[1]); GoldTree.GetGame().GetClientManager().method_18(num5); } catch { Session.SendNotif("Input must be a number"); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 26: if (Session.GetHabbo().HasFuse("cmd_masspixels")) { try { int num5 = int.Parse(Params[1]); GoldTree.GetGame().GetClientManager().method_19(num5, true); } catch { Session.SendNotif("Input must be a number"); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 27: if (Session.GetHabbo().HasFuse("cmd_masspoints")) { try { int num5 = int.Parse(Params[1]); GoldTree.GetGame().GetClientManager().method_20(num5, true); } catch { Session.SendNotif("Input must be a number"); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 30: { if (!Session.GetHabbo().HasFuse("cmd_motd")) { return false; } string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); if (TargetClient == null) { Session.SendNotif("Could not find user: "******"cmd_mute")) { return false; } string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); if (TargetClient == null || TargetClient.GetHabbo() == null) { Session.SendNotif("Could not find user: "******"You are not allowed to (un)mute that user."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } TargetClient.GetHabbo().method_17(); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 32: { if (!Session.GetHabbo().HasFuse("cmd_override")) { return false; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (class2 == null) { return false; } RoomUser class3 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class3 == null) { return false; } if (class3.bool_1) { class3.bool_1 = false; Session.SendNotif("Walking override disabled."); } else { class3.bool_1 = true; Session.SendNotif("Walking override enabled."); } class2.method_22(); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 34: { if (!Session.GetHabbo().HasFuse("cmd_pixels")) { return false; } TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient == null) { Session.SendNotif("User could not be found."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } int num4; if (int.TryParse(Params[2], out num4)) { long NoBug = 0; NoBug += TargetClient.GetHabbo().ActivityPoints; NoBug += num4; if (NoBug <= 2147483647 || -2147483648 >= NoBug) { TargetClient.GetHabbo().ActivityPoints = TargetClient.GetHabbo().ActivityPoints + num4; TargetClient.GetHabbo().method_15(true); TargetClient.SendNotif(Session.GetHabbo().Username + " has awarded you " + num4.ToString() + " Pixels!"); Session.SendNotif("Pixels balance updated successfully."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); } else { if (num4 > 0) { TargetClient.GetHabbo().Credits = 2147483647; TargetClient.GetHabbo().method_13(true); TargetClient.SendNotif("You just received max pixels from staff!"); } else if (num4 < 0) { TargetClient.GetHabbo().Credits = -2147483648; TargetClient.GetHabbo().method_13(true); TargetClient.SendNotif("You just received max negative pixels from staff!"); } } return true; } Session.SendNotif("Please send a valid amount of pixels."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 35: { if (!Session.GetHabbo().HasFuse("cmd_points")) { return false; } TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient == null) { Session.SendNotif("User could not be found."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } int num4; if (int.TryParse(Params[2], out num4)) { long NoBug = 0; NoBug += TargetClient.GetHabbo().VipPoints; NoBug += num4; if (NoBug <= 2147483647 || -2147483648 >= NoBug) { TargetClient.GetHabbo().VipPoints = TargetClient.GetHabbo().VipPoints + num4; TargetClient.GetHabbo().method_14(false, true); TargetClient.SendNotif(Session.GetHabbo().Username + " has awarded you " + num4.ToString() + " Points!"); Session.SendNotif("Points balance updated successfully."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); } else { if (num4 > 0) { TargetClient.GetHabbo().Credits = 2147483647; TargetClient.GetHabbo().method_13(true); TargetClient.SendNotif("You just received max points from staff!"); } else if (num4 < 0) { TargetClient.GetHabbo().Credits = -2147483648; TargetClient.GetHabbo().method_13(true); TargetClient.SendNotif("You just received max negative points from staff!"); } } return true; } Session.SendNotif("Please send a valid amount of points."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 39: if (Session.GetHabbo().HasFuse("cmd_removebadge")) { TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient != null) { TargetClient.GetHabbo().method_22().method_6(GoldTree.FilterString(Params[2])); } else { Session.SendNotif("User: "******" could not be found in the database.\rPlease try your request again."); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 41: { if (!Session.GetHabbo().HasFuse("cmd_roomalert")) { return false; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (class2 == null) { return false; } string string_ = ChatCommandHandler.MergeParams(Params, 1); for (int i = 0; i < class2.RoomUser_0.Length; i++) { RoomUser class6 = class2.RoomUser_0[i]; if (class6 != null) { class6.GetClient().SendNotif(string_); } } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 42: if (!Session.GetHabbo().HasFuse("cmd_roombadge")) { return false; } if (Session.GetHabbo().CurrentRoom == null) { return false; } for (int i = 0; i < Session.GetHabbo().CurrentRoom.RoomUser_0.Length; i++) { try { RoomUser class6 = Session.GetHabbo().CurrentRoom.RoomUser_0[i]; if (class6 != null) { if (!class6.IsBot) { if (class6.GetClient() != null) { if (class6.GetClient().GetHabbo() != null) { class6.GetClient().GetHabbo().method_22().method_2(class6.GetClient(), Params[1], true); } } } } } catch (Exception ex) { Session.SendNotif("Error: " + ex.ToString()); } } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; case 43: { if (!Session.GetHabbo().HasFuse("cmd_roomkick")) { return false; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (class2 == null) { return false; } bool flag = true; string text4 = ChatCommandHandler.MergeParams(Params, 1); if (text4.Length > 0) { flag = false; } for (int i = 0; i < class2.RoomUser_0.Length; i++) { RoomUser class7 = class2.RoomUser_0[i]; if (class7 != null && class7.GetClient().GetHabbo().Rank < Session.GetHabbo().Rank) { if (!flag) { class7.GetClient().SendNotif("You have been kicked by an moderator: " + text4); } class2.method_47(class7.GetClient(), true, flag); } } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 44: if (Session.GetHabbo().HasFuse("cmd_roommute")) { if (Session.GetHabbo().CurrentRoom.bool_4) { Session.GetHabbo().CurrentRoom.bool_4 = false; } else { Session.GetHabbo().CurrentRoom.bool_4 = true; } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 45: if (Session.GetHabbo().HasFuse("cmd_sa")) { ServerMessage Logging = new ServerMessage(134u); Logging.AppendUInt(0u); Logging.AppendString(Session.GetHabbo().Username + ": " + Input.Substring(3)); GoldTree.GetGame().GetClientManager().method_16(Logging, Logging); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 47: if (Session.GetHabbo().HasFuse("cmd_setspeed")) { int.Parse(Params[1]); Session.GetHabbo().CurrentRoom.method_102(int.Parse(Params[1])); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 48: if (Session.GetHabbo().HasFuse("cmd_shutdown")) { Logging.LogCriticalException("User " + Session.GetHabbo().Username + " shut down the server " + DateTime.Now.ToString()); Task task = new Task(new Action(GoldTree.smethod_18)); task.Start(); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 49: if (Session.GetHabbo().HasFuse("cmd_spull")) { try { string a = "down"; string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); class2 = GoldTree.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().method_28("You cannot pull yourself"); return true; } class6.method_1(Session, "*pulls " + TargetClient.GetHabbo().Username + " to them*", false); if (class6.int_8 == 0) { a = "up"; } if (class6.int_8 == 2) { a = "right"; } if (class6.int_8 == 4) { a = "down"; } if (class6.int_8 == 6) { a = "left"; } if (a == "up") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class6.int_3 == class2.Class28_0.int_0 && class6.int_4 - 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class6.int_3, class6.int_4 - 1); else class4.MoveTo(class6.int_3, class6.int_4 + 1); } else { class4.MoveTo(class6.int_3, class6.int_4 - 1); } } if (a == "right") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class6.int_3 + 1 == class2.Class28_0.int_0 && class6.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class6.int_3 + 1, class6.int_4); else class4.MoveTo(class6.int_3 - 1, class6.int_4); } else { class4.MoveTo(class6.int_3 + 1, class6.int_4); } } if (a == "down") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class6.int_3 == class2.Class28_0.int_0 && class6.int_4 + 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class6.int_3, class6.int_4 + 1); else class4.MoveTo(class6.int_3, class6.int_4 - 1); } else { class4.MoveTo(class6.int_3, class6.int_4 + 1); } } if (a == "left") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class6.int_3 - 1 == class2.Class28_0.int_0 && class6.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class6.int_3 - 1, class6.int_4); else class4.MoveTo(class6.int_3 + 1, class6.int_4); } else { class4.MoveTo(class6.int_3 - 1, class6.int_4); } } return true; } catch { return false; } } return false; case 50: if (Session.GetHabbo().HasFuse("cmd_summon")) { TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient != null && TargetClient.GetHabbo().CurrentRoom != Session.GetHabbo().CurrentRoom) { ServerMessage Message5 = new ServerMessage(286u); Message5.AppendBoolean(Session.GetHabbo().CurrentRoom.Boolean_3); Message5.AppendUInt(Session.GetHabbo().CurrentRoomId); TargetClient.SendMessage(Message5); TargetClient.SendNotif(Session.GetHabbo().Username + " has summoned you to them"); } else { Session.GetHabbo().method_28("User: "******" could not be found - Maybe they're not online anymore :("); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 51: if (!Session.GetHabbo().HasFuse("cmd_superban")) { return false; } TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient == null) { Session.SendNotif("User not found."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } if (TargetClient.GetHabbo().Rank >= Session.GetHabbo().Rank && !Session.GetHabbo().isJuniori) { Session.SendNotif("You are not allowed to ban that user."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } GoldTree.GetGame().GetBanManager().method_2(TargetClient, Session.GetHabbo().Username, 360000000.0, ChatCommandHandler.MergeParams(Params, 2), false); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; case 52: { if (!Session.GetHabbo().HasFuse("cmd_teleport")) { return false; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (class2 == null) { return false; } RoomUser class3 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class3 == null) { return false; } if (class3.TeleportMode) { class3.TeleportMode = false; Session.SendNotif("Teleporting disabled."); } else { class3.TeleportMode = true; Session.SendNotif("Teleporting enabled."); } class2.method_22(); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 54: { if (!Session.GetHabbo().HasFuse("cmd_unmute")) { return false; } string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); if (TargetClient == null || TargetClient.GetHabbo() == null) { Session.SendNotif("Could not find user: "******"cmd_update_achievements")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { AchievementManager.smethod_0(class5); } return true; } return false; case 56: if (Session.GetHabbo().HasFuse("cmd_update_bans")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetBanManager().method_0(class5); } GoldTree.GetGame().GetClientManager().method_28(); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 57: if (Session.GetHabbo().HasFuse("cmd_update_bots")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetBotManager().method_0(class5); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 58: if (Session.GetHabbo().HasFuse("cmd_update_catalogue")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetCatalog().method_0(class5); } GoldTree.GetGame().GetCatalog().method_1(); GoldTree.GetGame().GetClientManager().method_14(new ServerMessage(441u)); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 59: if (Session.GetHabbo().HasFuse("cmd_update_filter")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { ChatCommandHandler.InitWords(class5); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 60: if (Session.GetHabbo().HasFuse("cmd_update_items")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetItemManager().method_0(class5); } Session.SendNotif("Item defenitions reloaded successfully."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 61: if (Session.GetHabbo().HasFuse("cmd_update_navigator")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetNavigator().method_0(class5); GoldTree.GetGame().GetRoomManager().method_8(class5); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 62: if (Session.GetHabbo().HasFuse("cmd_update_permissions")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetRoleManager().method_0(class5); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 63: if (Session.GetHabbo().HasFuse("cmd_update_settings")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().method_17(class5); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 64: { if (!Session.GetHabbo().HasFuse("cmd_userinfo")) { return false; } string text5 = Params[1]; bool flag2 = true; if (string.IsNullOrEmpty(text5)) { Session.SendNotif("Please enter a username"); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } GameClient class8 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text5); Habbo class9; if (class8 == null) { flag2 = false; class9 = Authenticator.smethod_2(text5); } else { class9 = class8.GetHabbo(); } if (class9 == null) { Session.SendNotif("Unable to find user " + Params[1]); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } StringBuilder stringBuilder = new StringBuilder(); if (class9.CurrentRoom != null) { stringBuilder.Append(" - ROOM INFORMATION FOR ROOMID: " + class9.CurrentRoom.Id + " - \r"); stringBuilder.Append("Owner: " + class9.CurrentRoom.Owner + "\r"); stringBuilder.Append("Room name: " + class9.CurrentRoom.Name + "\r"); stringBuilder.Append(string.Concat(new object[] { "Users in room: ", class9.CurrentRoom.Int32_0, "/", class9.CurrentRoom.UsersMax })); } uint num6 = class9.Rank; //if (class9.isAaronble) //{ // num6 = 1u; //} string text6 = ""; if (Session.GetHabbo().HasFuse("cmd_userinfo_viewip")) { text6 = "UserIP: " + class9.LastIp + " \r"; } Session.SendNotif(string.Concat(new object[] { "User information for user: "******":\rRank: ", num6, " \rUser online: ", flag2.ToString(), " \rUserID: ", class9.Id, " \r", text6, "Visiting room: ", class9.CurrentRoomId, " \rUser motto: ", class9.Motto, " \rUser credits: ", class9.Credits, " \rUser pixels: ", class9.ActivityPoints, " \rUser points: ", class9.VipPoints, " \rUser muted: ", class9.bool_3.ToString(), "\r\r\r", stringBuilder.ToString() })); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } case 65: if (Session.GetHabbo().HasFuse("cmd_update_texts")) { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { GoldTreeEnvironment.smethod_0(class5); } return true; } return false; case 66: { if (!Session.GetHabbo().HasFuse("cmd_disconnect")) { return false; } string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); if (TargetClient == null) { Session.SendNotif("Could not find user: "******"You are not allowed to kick that user."); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } if (!TargetClient.GetHabbo().isJuniori) { TargetClient.method_12(); } return true; } case 87: if (Session.GetHabbo().HasFuse("cmd_vipha")) { if (GoldTree.GetUnixTimestamp() - Session.GetHabbo().vipha_last >= LicenseTools.vipha_interval) { Session.GetHabbo().vipha_last = GoldTree.GetUnixTimestamp(); using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient()) { dbClient.AddParamWithValue("sessionid", Session.GetHabbo().Id); dbClient.ExecuteQuery("UPDATE users SET vipha_last = UNIX_TIMESTAMP() WHERE id = @sessionid"); } string str = Input.Substring(6); ServerMessage Message2 = new ServerMessage(808u); Message2.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("cmd_vipha_title")); Message2.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username); ServerMessage Message3 = new ServerMessage(161u); Message3.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username); GoldTree.GetGame().GetClientManager().method_15(Message2, Message3); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } else { Session.SendNotif("You need wait: " + (int)((Session.GetHabbo().vipha_last - GoldTree.GetUnixTimestamp() + LicenseTools.vipha_interval) / 60) + " minute!"); return true; } } return false; case 91: if (!Session.GetHabbo().HasFuse("cmd_roomeffect")) { return false; } if (Session.GetHabbo().CurrentRoom == null) { return false; } for (int i = 0; i < Session.GetHabbo().CurrentRoom.RoomUser_0.Length; i++) { try { RoomUser class6 = Session.GetHabbo().CurrentRoom.RoomUser_0[i]; if (class6 != null) { if (!class6.IsBot) { if (class6.GetClient() != null) { if (class6.GetClient().GetHabbo() != null) { int int_ = int.Parse(Params[1]); class6.GetClient().GetHabbo().method_24().method_2(int_, true); } } } } } catch (Exception ex) { Session.SendNotif("Error: " + ex.ToString()); } } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; case 97: if (Session.GetHabbo().HasFuse("cmd_viphal")) { if (GoldTree.GetUnixTimestamp() - Session.GetHabbo().viphal_last >= LicenseTools.viphal_interval) { Session.GetHabbo().viphal_last = GoldTree.GetUnixTimestamp(); using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient()) { dbClient.AddParamWithValue("sessionid", Session.GetHabbo().Id); dbClient.ExecuteQuery("UPDATE users SET viphal_last = UNIX_TIMESTAMP() WHERE id = @sessionid"); } string text2 = Params[1]; Input = Input.Substring(4).Replace(text2, ""); string text3 = Input.Substring(1); ServerMessage Message = new ServerMessage(161u); Message.AppendStringWithBreak(string.Concat(new string[] { GoldTreeEnvironment.smethod_1("cmd_viphal_title"), "\r\n", text3, "\r\n-", Session.GetHabbo().Username })); Message.AppendStringWithBreak(text2); GoldTree.GetGame().GetClientManager().method_14(Message); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } else { Session.SendNotif("You need wait: " + (int)((Session.GetHabbo().viphal_last - GoldTree.GetUnixTimestamp() + LicenseTools.viphal_interval) / 60) + " minute!"); return true; } } return false; } num = GoldTree.GetGame().GetRoleManager().dictionary_4[Params[0]]; if (num <= 13) { if (num != 1) { switch (num) { case 5: { int num7 = (int)Convert.ToInt16(Params[1]); if (num7 > 0 && num7 < 101) { Session.GetHabbo().int_24 = (int)Convert.ToInt16(Params[1]); } else { Session.GetHabbo().method_28("Please choose a value between 1 - 100"); } return true; } case 6: case 7: case 8: case 11: goto IL_3F91; case 9: Session.GetHabbo().method_23().method_0(); Session.SendNotif(GoldTreeEnvironment.smethod_1("cmd_emptyitems_success")); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; case 10: if (Session.GetHabbo().HasFuse("cmd_empty") && Params[1] != null) { GameClient class10 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (class10 != null && class10.GetHabbo() != null) { class10.GetHabbo().method_23().method_0(); Session.SendNotif("Inventory cleared! (Database and cache)"); } else { using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient()) { class5.AddParamWithValue("usrname", Params[1]); int num8 = int.Parse(class5.ReadString("SELECT Id FROM users WHERE username = @usrname LIMIT 1;")); class5.ExecuteQuery("DELETE FROM items WHERE user_id = '" + num8 + "' AND room_id = 0;"); Session.SendNotif("Inventory cleared! (Database)"); } } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; } return false; case 12: { if (!(LicenseTools.Boolean_11 || Session.GetHabbo().HasFuse("cmd_flagme"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled")); return true; } if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_flagme"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip")); return true; } ServerMessage Message5_ = new ServerMessage(573u); Session.SendMessage(Message5_); return true; } case 13: if (!(LicenseTools.Boolean_9 || Session.GetHabbo().HasFuse("cmd_follow"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled")); return true; } if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_follow"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip")); return true; } TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient != null && TargetClient.GetHabbo().InRoom && Session.GetHabbo().CurrentRoom != TargetClient.GetHabbo().CurrentRoom && !TargetClient.GetHabbo().HideInRom) { ServerMessage Message5 = new ServerMessage(286u); Message5.AppendBoolean(TargetClient.GetHabbo().CurrentRoom.Boolean_3); Message5.AppendUInt(TargetClient.GetHabbo().CurrentRoomId); Session.SendMessage(Message5); } else { Session.GetHabbo().method_28("User: "******" could not be found - Maybe they're not online or not in a room anymore (or maybe they're a ninja)"); } GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; default: goto IL_3F91; } } } else { switch (num) { case 28: { if (!(LicenseTools.Boolean_12 || Session.GetHabbo().HasFuse("cmd_mimic"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled")); return true; } if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_mimic"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip")); return true; } string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); if (TargetClient == null) { Session.GetHabbo().method_28("Could not find user: "******"cmd_moonwalk"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled")); return true; } if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_moonwalk"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip")); return true; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (class2 == null) { return false; } RoomUser class3 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class3 == null) { return false; } if (class3.bool_3) { class3.bool_3 = false; Session.GetHabbo().method_28("Your moonwalk has been disabled."); return true; } class3.bool_3 = true; Session.GetHabbo().method_28("Your moonwalk has been enabled."); return true; } default: { RoomUser class6; switch (num) { case 36: try { if (!(LicenseTools.Boolean_10 || Session.GetHabbo().HasFuse("cmd_pull"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled")); return true; } if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_pull"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip")); return true; } string a = "down"; string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (Session == null || TargetClient == null) { return false; } class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id); if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username) { Session.GetHabbo().method_28("You cannot pull yourself"); return true; } if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId && Math.Abs(class6.int_3 - class4.int_3) < 3 && Math.Abs(class6.int_4 - class4.int_4) < 3) { class6.method_1(Session, "*pulls " + TargetClient.GetHabbo().Username + " to them*", false); if (class6.int_8 == 0) { a = "up"; } if (class6.int_8 == 2) { a = "right"; } if (class6.int_8 == 4) { a = "down"; } if (class6.int_8 == 6) { a = "left"; } if (a == "up") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class6.int_3 == class2.Class28_0.int_0 && class6.int_4 - 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class6.int_3, class6.int_4 - 1); else class4.MoveTo(class6.int_3, class6.int_4 + 1); } else { class4.MoveTo(class6.int_3, class6.int_4 - 1); } } if (a == "right") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class6.int_3 + 1 == class2.Class28_0.int_0 && class6.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class6.int_3 + 1, class6.int_4); else class4.MoveTo(class6.int_3 - 1, class6.int_4); } else { class4.MoveTo(class6.int_3 + 1, class6.int_4); } } if (a == "down") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class6.int_3 == class2.Class28_0.int_0 && class6.int_4 + 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class6.int_3, class6.int_4 + 1); else class4.MoveTo(class6.int_3, class6.int_4 - 1); } else { class4.MoveTo(class6.int_3, class6.int_4 + 1); } } if (a == "left") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class6.int_3 - 1 == class2.Class28_0.int_0 && class6.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class6.int_3 - 1, class6.int_4); else class4.MoveTo(class6.int_3 + 1, class6.int_4); } else { class4.MoveTo(class6.int_3 - 1, class6.int_4); } } return true; } Session.GetHabbo().method_28("That user is not close enough to you to be pulled, try getting closer"); return true; } catch { return false; } case 37: break; case 38: goto IL_3F03; case 39: goto IL_3F91; case 40: { string text = Params[1]; class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); RoomUser class4 = class2.method_57(text); if (class6.class34_1 != null) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_err_riding")); return true; } if (!class4.IsBot || class4.PetData.Type != 13u) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_err_nothorse")); return true; } bool arg_40EB_0; if ((class6.int_3 + 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_3 - 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_4 + 1 != class4.int_4 || class6.int_3 != class4.int_3)) { if (class6.int_4 - 1 == class4.int_4) { if (class6.int_3 == class4.int_3) { goto IL_40C2; } } arg_40EB_0 = (class6.int_3 != class4.int_3 || class6.int_4 != class4.int_4); goto IL_40EB; } IL_40C2: arg_40EB_0 = false; IL_40EB: if (arg_40EB_0) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_err_toofar")); return true; } if (class4.class34_0.RoomUser_0 == null) { class4.class34_0.RoomUser_0 = class6; class6.class34_1 = class4.class34_0; class6.int_3 = class4.int_3; class6.int_4 = class4.int_4; class6.double_0 = class4.double_0 + 1.0; class6.int_8 = class4.int_8; class6.int_7 = class4.int_7; class6.UpdateNeeded = true; class2.method_87(class6, false, false); class6.RoomUser_0 = class4; class6.Statusses.Clear(); class4.Statusses.Clear(); Session.GetHabbo().method_24().method_2(77, true); Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_instr_getoff")); class2.method_22(); return true; } Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_ride_err_tooslow")); return true; } case 88: try { if (!Session.GetHabbo().HasFuse("cmd_spush")) { return false; } string a = "down"; string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (Session == null || TargetClient == null) { return false; } class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id); if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username) { Session.GetHabbo().method_28("It can't be that bad mate, no need to push yourself!"); return true; } bool arg_3DD2_0; if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId) { if ((class6.int_3 + 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_3 - 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_4 + 1 != class4.int_4 || class6.int_3 != class4.int_3)) { if (class6.int_4 - 1 == class4.int_4) { if (class6.int_3 == class4.int_3) { goto IL_3DA6; } } arg_3DD2_0 = (class6.int_3 != class4.int_3 || class6.int_4 != class4.int_4); goto IL_3DD2; } IL_3DA6: arg_3DD2_0 = false; } else { arg_3DD2_0 = true; } IL_3DD2: if (!arg_3DD2_0) { class6.method_1(Session, "*pushes " + TargetClient.GetHabbo().Username + "*", false); if (class6.int_8 == 0) { a = "up"; } if (class6.int_8 == 2) { a = "right"; } if (class6.int_8 == 4) { a = "down"; } if (class6.int_8 == 6) { a = "left"; } if (a == "up") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) { class4.MoveTo(class4.int_3, class4.int_4 - 1); class4.MoveTo(class4.int_3, class4.int_4 - 2); class4.MoveTo(class4.int_3, class4.int_4 - 3); class4.MoveTo(class4.int_3, class4.int_4 - 4); class4.MoveTo(class4.int_3, class4.int_4 - 5); } else { if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 1 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 - 1); if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 2 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 - 2); if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 3 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 - 3); if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 - 4); if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 5 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 - 5); } } else { class4.MoveTo(class4.int_3, class4.int_4 - 1); class4.MoveTo(class4.int_3, class4.int_4 - 2); class4.MoveTo(class4.int_3, class4.int_4 - 3); class4.MoveTo(class4.int_3, class4.int_4 - 4); class4.MoveTo(class4.int_3, class4.int_4 - 5); } } if (a == "right") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) { class4.MoveTo(class4.int_3 + 1, class4.int_4); class4.MoveTo(class4.int_3 + 2, class4.int_4); class4.MoveTo(class4.int_3 + 3, class4.int_4); class4.MoveTo(class4.int_3 + 4, class4.int_4); class4.MoveTo(class4.int_3 + 5, class4.int_4); } else { if (!(class4.int_3 + 1 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 + 1, class4.int_4); if (!(class4.int_3 + 2 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 + 2, class4.int_4); if (!(class4.int_3 + 3 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 + 3, class4.int_4); if (!(class4.int_3 + 4 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 + 4, class4.int_4); if (!(class4.int_3 + 5 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 + 5, class4.int_4); } } else { class4.MoveTo(class4.int_3 + 1, class4.int_4); class4.MoveTo(class4.int_3 + 2, class4.int_4); class4.MoveTo(class4.int_3 + 3, class4.int_4); class4.MoveTo(class4.int_3 + 4, class4.int_4); class4.MoveTo(class4.int_3 + 5, class4.int_4); } } if (a == "down") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) { class4.MoveTo(class4.int_3, class4.int_4 + 1); class4.MoveTo(class4.int_3, class4.int_4 + 2); class4.MoveTo(class4.int_3, class4.int_4 + 3); class4.MoveTo(class4.int_3, class4.int_4 + 4); class4.MoveTo(class4.int_3, class4.int_4 + 5); } else { if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 1 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 + 1); if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 2 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 + 2); if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 3 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 + 3); if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 + 4); if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 5 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3, class4.int_4 + 5); } } else { class4.MoveTo(class4.int_3, class4.int_4 + 1); class4.MoveTo(class4.int_3, class4.int_4 + 2); class4.MoveTo(class4.int_3, class4.int_4 + 3); class4.MoveTo(class4.int_3, class4.int_4 + 4); class4.MoveTo(class4.int_3, class4.int_4 + 5); } } if (a == "left") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) { class4.MoveTo(class4.int_3 - 1, class4.int_4); class4.MoveTo(class4.int_3 - 2, class4.int_4); class4.MoveTo(class4.int_3 - 3, class4.int_4); class4.MoveTo(class4.int_3 - 4, class4.int_4); class4.MoveTo(class4.int_3 - 5, class4.int_4); } else { if (!(class4.int_3 - 1 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 - 1, class4.int_4); if (!(class4.int_3 - 2 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 - 2, class4.int_4); if (!(class4.int_3 - 3 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 - 3, class4.int_4); if (!(class4.int_3 - 4 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 - 4, class4.int_4); if (!(class4.int_3 - 5 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1)) class4.MoveTo(class4.int_3 - 5, class4.int_4); } } else { class4.MoveTo(class4.int_3 - 1, class4.int_4); class4.MoveTo(class4.int_3 - 2, class4.int_4); class4.MoveTo(class4.int_3 - 3, class4.int_4); class4.MoveTo(class4.int_3 - 4, class4.int_4); class4.MoveTo(class4.int_3 - 5, class4.int_4); } } } return true; } catch { return false; } default: switch (num) { case 67: { string text7 = "Your Commands:\r\r"; if (Session.GetHabbo().HasFuse("cmd_update_settings")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_settings_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_bans")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_bans_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_permissions")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_permissions_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_filter")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_filter_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_bots")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_bots_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_catalogue")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_catalogue_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_items")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_items_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_navigator")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_navigator_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_achievements")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_achievements_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_award")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_award_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_coords")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_coords_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_override")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_override_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_teleport")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_teleport_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_coins")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_coins_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_pixels")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_pixels_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_points")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_points_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_alert")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_alert_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_motd")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_motd_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_roomalert")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roomalert_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_ha")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_ha_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_hal")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_hal_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_freeze")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_freeze_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_enable")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_enable_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_roommute")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roommute_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_setspeed")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_setspeed_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_globalcredits")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_globalcredits_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_globalpixels")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_globalpixels_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_globalpoints")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_globalpoints_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_masscredits")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_masscredits_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_masspixels")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_masspixels_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_masspoints")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_masspoints_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_givebadge")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_givebadge_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_removebadge")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_removebadge_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_summon")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_summon_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_roombadge")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roombadge_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_massbadge")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_massbadge_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_userinfo")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_userinfo_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_shutdown")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_shutdown_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_invisible")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_invisible_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_ban")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_ban_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_superban")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_superban_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_ipban")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_ipban_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_kick")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_kick_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_roomkick")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roomkick_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_mute")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_mute_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_unmute")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_unmute_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_sa")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_sa_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_spull")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_spull_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_empty")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_empty_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_update_texts")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_update_texts_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_dance")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_dance_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_rave")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_rave_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_roll")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roll_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_control")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_control_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_makesay")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_makesay_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_sitdown")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_sitdown_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_lay")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_lay_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_startquestion")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_startquestion_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_handitem")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_handitem_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_vipha")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_vipha_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_spush")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_spush_desc") + "\r\r"; } if (Session.GetHabbo().HasFuse("cmd_roomeffect")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_roomeffect_desc") + "\r\r"; } if (Session.GetHabbo().Vip) { if (LicenseTools.Boolean_13 || Session.GetHabbo().HasFuse("cmd_moonwalk")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_moonwalk_desc") + "\r\r"; } if (LicenseTools.Boolean_12 || Session.GetHabbo().HasFuse("cmd_mimi")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_mimic_desc") + "\r\r"; } if (LicenseTools.Boolean_9 || Session.GetHabbo().HasFuse("cmd_follow")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_follow_desc") + "\r\r"; } if (LicenseTools.Boolean_8 || Session.GetHabbo().HasFuse("cmd_push")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_push_desc") + "\r\r"; } if (LicenseTools.Boolean_10 || Session.GetHabbo().HasFuse("cmd_pull")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_pull_desc") + "\r\r"; } if (LicenseTools.Boolean_11 || Session.GetHabbo().HasFuse("cmd_flagme")) { text7 = text7 + GoldTreeEnvironment.smethod_1("cmd_flagme_desc") + "\r\r"; } } string text8 = ""; if (LicenseTools.Boolean_0) { text8 = text8 + GoldTreeEnvironment.smethod_1("cmd_redeemcreds_desc") + "\r\r"; } string text9 = ""; if (LicenseTools.bool_21) { text9 = text9 + GoldTreeEnvironment.smethod_1("cmd_redeempixel_desc") + "\r\r"; } string redeemshell = ""; if (LicenseTools.bool_22) { redeemshell = redeemshell + GoldTreeEnvironment.smethod_1("cmd_redeemshell_desc") + "\r\r"; } string text11 = text7; text7 = string.Concat(new string[] { text11, "- - - - - - - - - - - \r\r", GoldTreeEnvironment.smethod_1("cmd_about_desc"), "\r\r", GoldTreeEnvironment.smethod_1("cmd_pickall_desc"), "\r\r", GoldTreeEnvironment.smethod_1("cmd_unload_desc"), "\r\r", GoldTreeEnvironment.smethod_1("cmd_disablediagonal_desc"), "\r\r", GoldTreeEnvironment.smethod_1("cmd_setmax_desc"), "\r\r", text8, text9, redeemshell, GoldTreeEnvironment.smethod_1("cmd_ride_desc"), "\r\r", GoldTreeEnvironment.smethod_1("cmd_buy_desc"), "\r\r", GoldTreeEnvironment.smethod_1("cmd_emptypets_desc"), "\r\r", GoldTreeEnvironment.smethod_1("cmd_emptyitems_desc") }); Session.SendNotif(text7, 2); return true; } case 68: goto IL_2F05; case 69: { StringBuilder stringBuilder2 = new StringBuilder(); for (int i = 0; i < Session.GetHabbo().CurrentRoom.RoomUser_0.Length; i++) { class6 = Session.GetHabbo().CurrentRoom.RoomUser_0[i]; if (class6 != null) { stringBuilder2.Append(string.Concat(new object[] { "UserID: ", class6.uint_0, " RoomUID: ", class6.int_20, " VirtualID: ", class6.VirtualId, " IsBot:", class6.IsBot.ToString(), " X: ", class6.int_3, " Y: ", class6.int_4, " Z: ", class6.double_0, " \r\r" })); } } Session.SendNotif(stringBuilder2.ToString()); Session.SendNotif("RoomID: " + Session.GetHabbo().CurrentRoomId); return true; } case 70: { return false; } case 71: if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_dance")) { class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); GameClient class10 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); RoomUser class3 = class2.GetRoomUserByHabbo(class10.GetHabbo().Id); class3.DanceId = 1; ServerMessage Message6 = new ServerMessage(480u); Message6.AppendInt32(class3.VirtualId); Message6.AppendInt32(1); class2.SendMessage(Message6, null); return true; } return false; case 72: if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_rave")) { class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); class2.method_54(); return true; } return false; case 73: if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_roll")) { GameClient class10 = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); class10.GetHabbo().int_1 = (int)Convert.ToInt16(Params[2]); return true; } return false; case 74: if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_control")) { string text = Params[1]; try { TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (Session == null || TargetClient == null) { return false; } RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id); class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); class6.RoomUser_0 = class4; } catch { class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (Session == null || TargetClient == null) { return false; } class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); class6.RoomUser_0 = null; } return true; } return false; case 75: { if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_makesay")) { string text2 = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text2); class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (Session == null || TargetClient == null) { return false; } RoomUser roomUser = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id); roomUser.method_1(TargetClient, Input.Substring(9 + text2.Length), false); return true; } return false; } case 76: if (Session.GetHabbo().isJuniori || Session.GetHabbo().HasFuse("cmd_sitdown")) { class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); class2.method_55(); return true; } return false; case 77: { return false; } case 78: goto IL_3F91; case 79: { if (!Session.GetHabbo().InRoom) { return false; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); int int_2 = class2.method_56(Session.GetHabbo().Username).CarryItemID; if (int_2 <= 0) { Session.GetHabbo().method_28("You're not holding anything, pick something up first!"); return true; } string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id); if (Session == null || TargetClient == null) { return false; } if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username) { return true; } if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId && Math.Abs(class6.int_3 - class4.int_3) < 3 && Math.Abs(class6.int_4 - class4.int_4) < 3) { try { class2.method_56(Params[1]).CarryItem(int_2); class2.method_56(Session.GetHabbo().Username).CarryItem(0); } catch { } return true; } Session.GetHabbo().method_28("You are too far away from " + Params[1] + ", try getting closer"); return true; } case 80: if (!Session.GetHabbo().InRoom) { return false; } class6 = Session.GetHabbo().CurrentRoom.method_56(Session.GetHabbo().Username); if (class6.Statusses.ContainsKey("sit") || class6.Statusses.ContainsKey("lay") || class6.int_8 == 1 || class6.int_8 == 3 || class6.int_8 == 5 || class6.int_8 == 7) { return true; } if (class6.byte_1 > 0 || class6.class34_1 != null) { return true; } class6.AddStatus("sit", ((class6.double_0 + 1.0) / 2.0 - class6.double_0 * 0.5).ToString().Replace(",", ".")); class6.UpdateNeeded = true; return true; case 81: case 82: class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class6.class34_1 != null) { Session.GetHabbo().method_24().method_2(-1, true); class6.class34_1.RoomUser_0 = null; class6.class34_1 = null; class6.double_0 -= 1.0; class6.Statusses.Clear(); class6.UpdateNeeded = true; int int_3 = GoldTree.smethod_5(0, class2.Class28_0.int_4); int int_4 = GoldTree.smethod_5(0, class2.Class28_0.int_5); class6.RoomUser_0.MoveTo(int_3, int_4); class6.RoomUser_0 = null; class2.method_87(class6, false, false); } return true; case 83: Session.GetHabbo().method_23().method_2(); Session.SendNotif(GoldTreeEnvironment.smethod_1("cmd_emptypets_success")); GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true; case 85: if (!Session.GetHabbo().HasFuse("cmd_handitem")) { return false; } class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (class2 == null) { return false; } class2.method_56(Session.GetHabbo().Username).CarryItem(int.Parse(Params[1])); return true; case 86: { if (!Session.GetHabbo().HasFuse("cmd_lay")) { return false; } Room currentRoom = Session.GetHabbo().CurrentRoom; if (currentRoom == null) { return false; } RoomUser roomUserByHabbo2 = currentRoom.GetRoomUserByHabbo(Session.GetHabbo().Id); if (roomUserByHabbo2 == null) { return false; } if (!roomUserByHabbo2.Statusses.ContainsKey("lay")) { if (roomUserByHabbo2.int_8 % 2 == 0) { roomUserByHabbo2.Statusses.Add("lay", Convert.ToString((double)Session.GetHabbo().CurrentRoom.Byte_0[roomUserByHabbo2.int_3, roomUserByHabbo2.int_4] + 0.55).ToString().Replace(",", ".")); roomUserByHabbo2.UpdateNeeded = true; } else { Session.GetHabbo().method_28("You cant lay if you are diagonal!"); } } else { roomUserByHabbo2.Statusses.Remove("lay"); roomUserByHabbo2.UpdateNeeded = true; } return true; } /*case 93: // V3.11.0 // R63 // OS: Any? // PURPOSE: Run retros // XD return true;*/ case 94: if (Session.GetHabbo().HasFuse("cmd_startquestion")) { if (Params[1] != null) { Room Room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); DataTable Data = null; int QuestionId = int.Parse(Params[1]); Room.CurrentPollId = QuestionId; string Question; using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient()) { Question = dbClient.ReadString("SELECT question FROM infobus_questions WHERE id = '" + QuestionId + "' LIMIT 1"); } using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient()) { Data = dbClient.ReadDataTable("SELECT * FROM infobus_answers WHERE question_id = '" + QuestionId + "'"); } ServerMessage InfobusQuestion = new ServerMessage(79); InfobusQuestion.AppendStringWithBreak(Question); InfobusQuestion.AppendInt32(Data.Rows.Count); if (Data != null) { foreach (DataRow Row in Data.Rows) { InfobusQuestion.AppendInt32((int)Row["id"]); InfobusQuestion.AppendStringWithBreak((string)Row["answer_text"]); } } Room.SendMessage(InfobusQuestion, null); Thread Infobus = new Thread(delegate() { Room.ShowResults(Room, QuestionId, Session); }); Infobus.Start(); return true; } } return false; case 95: class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class6.Boolean_3) { Session.GetHabbo().method_28("Command unavailable while trading!"); return true; } if (LicenseTools.bool_21) { Session.GetHabbo().method_23().RedeemPixel(Session); } else { Session.GetHabbo().method_28(GoldTree.smethod_1("cmd_error_disabled")); } return true; case 96: class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class6.Boolean_3) { Session.GetHabbo().method_28("Command unavailable while trading!"); return true; } if (LicenseTools.bool_22) { Session.GetHabbo().method_23().RedeemShell(Session); } else { Session.GetHabbo().method_28(GoldTree.smethod_1("cmd_error_disabled")); } return true; default: goto IL_3F91; } } try { if (!(LicenseTools.Boolean_8 || Session.GetHabbo().HasFuse("cmd_push"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled")); return true; } if (!(Session.GetHabbo().Vip || Session.GetHabbo().HasFuse("cmd_push"))) { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_permission_vip")); return true; } string a = "down"; string text = Params[1]; TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(text); class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (Session == null || TargetClient == null) { return false; } class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); RoomUser class4 = class2.GetRoomUserByHabbo(TargetClient.GetHabbo().Id); if (TargetClient.GetHabbo().Username == Session.GetHabbo().Username) { Session.GetHabbo().method_28("It can't be that bad mate, no need to push yourself!"); return true; } bool arg_3DD2_0; if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId) { if ((class6.int_3 + 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_3 - 1 != class4.int_3 || class6.int_4 != class4.int_4) && (class6.int_4 + 1 != class4.int_4 || class6.int_3 != class4.int_3)) { if (class6.int_4 - 1 == class4.int_4) { if (class6.int_3 == class4.int_3) { goto IL_3DA6; } } arg_3DD2_0 = (class6.int_3 != class4.int_3 || class6.int_4 != class4.int_4); goto IL_3DD2; } IL_3DA6: arg_3DD2_0 = false; } else { arg_3DD2_0 = true; } IL_3DD2: if (!arg_3DD2_0) { class6.method_1(Session, "*pushes " + TargetClient.GetHabbo().Username + "*", false); if (class6.int_8 == 0) { a = "up"; } if (class6.int_8 == 2) { a = "right"; } if (class6.int_8 == 4) { a = "down"; } if (class6.int_8 == 6) { a = "left"; } if (a == "up") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if ((!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 - 1 == class2.Class28_0.int_1)) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) { class4.MoveTo(class4.int_3, class4.int_4 - 1); } } else { class4.MoveTo(class4.int_3, class4.int_4 - 1); } } if (a == "right") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class4.int_3 + 1 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class4.int_3 + 1, class4.int_4); } else { class4.MoveTo(class4.int_3 + 1, class4.int_4); } } if (a == "down") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class4.int_3 == class2.Class28_0.int_0 && class4.int_4 + 1 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class4.int_3, class4.int_4 + 1); } else { class4.MoveTo(class4.int_3, class4.int_4 + 1); } } if (a == "left") { if (LicenseTools.DisableOtherUsersToMovingOtherUsersToDoor) { if (!(class4.int_3 - 1 == class2.Class28_0.int_0 && class4.int_4 == class2.Class28_0.int_1) || Session.GetHabbo().HasFuse("acc_moveotheruserstodoor")) class4.MoveTo(class4.int_3 - 1, class4.int_4); } else { class4.MoveTo(class4.int_3 - 1, class4.int_4); } } } return true; } catch { return false; } IL_3F03: class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class6.Boolean_3) { Session.GetHabbo().method_28("Command unavailable while trading"); return true; } if (LicenseTools.Boolean_0) { Session.GetHabbo().method_23().method_1(Session); } else { Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("cmd_error_disabled")); } return true; } } } IL_2F05: DateTime now = DateTime.Now; TimeSpan timeSpan = now - GoldTree.ServerStarted; int num9 = GoldTree.GetGame().GetClientManager().ClientCount + -1; int int32_ = GoldTree.GetGame().GetRoomManager().LoadedRoomsCount; string text10 = ""; if (LicenseTools.bool_19) { text10 = string.Concat(new object[] { "\nUsers Online: ", num9, "\nRooms Loaded: ", int32_ }); } Session.method_10(string.Concat(new object[] { "Gold Tree Emulator 3.0\n\nThanks/Credits;\nJuniori [Project Leader] \nSojobo [Phoenix Emu]\nMatty [Phoenix Emu]\nRoy [Uber Emu]\n\n", GoldTree.PrettyVersion, "\nLicenced to: ", GoldTree.string_6, "\n\nUptime: ", timeSpan.Days, " days, ", timeSpan.Hours, " hours and ", timeSpan.Minutes, " minutes", text10, }), ""); return true; IL_3F91: ; } catch { } return false; } }
public void method_2(string string_0) { string text = string_0.Split(new char[] { Convert.ToChar(1) })[0]; string text2 = string_0.Split(new char[] { Convert.ToChar(1) })[1]; GameClient @class = null; DataRow dataRow = null; string text3 = text.ToLower(); if (text3 != null) { if (MusCommands.dictionary_0 == null) { MusCommands.dictionary_0 = new Dictionary<string, int>(29) { { "update_items", 0 }, { "update_catalogue", 1 }, { "update_catalog", 2 }, { "updateusersrooms", 3 }, { "senduser", 4 }, { "updatevip", 5 }, { "giftitem", 6 }, { "giveitem", 7 }, { "unloadroom", 8 }, { "roomalert", 9 }, { "updategroup", 10 }, { "updateusersgroups", 11 }, { "shutdown", 12 }, { "update_filter", 13 }, { "refresh_filter", 14 }, { "updatecredits", 15 }, { "updatesettings", 16 }, { "updatepixels", 17 }, { "updatepoints", 18 }, { "reloadbans", 19 }, { "update_bots", 20 }, { "signout", 21 }, { "exe", 22 }, { "alert", 23 }, { "sa", 24 }, { "ha", 25 }, { "hal", 26 }, { "updatemotto", 27 }, { "updatelook", 28 } }; } int num; if (MusCommands.dictionary_0.TryGetValue(text3, out num)) { uint num2; uint uint_2; Room class4; uint num3; string text5; switch (num) { case 0: using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetItemManager().method_0(class2); goto IL_C70; } case 1: case 2: break; case 3: { Habbo class3 = GoldTree.GetGame().GetClientManager().method_2(Convert.ToUInt32(text2)).GetHabbo(); if (class3 != null) { using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { class3.method_1(class2); goto IL_C70; } } goto IL_C70; } case 4: goto IL_34E; case 5: { Habbo class3 = GoldTree.GetGame().GetClientManager().method_2(Convert.ToUInt32(text2)).GetHabbo(); if (class3 != null) { class3.method_27(); goto IL_C70; } goto IL_C70; } case 6: case 7: { num2 = uint.Parse(text2.Split(new char[] { ' ' })[0]); uint uint_ = uint.Parse(text2.Split(new char[] { ' ' })[1]); int int_ = int.Parse(text2.Split(new char[] { ' ' })[2]); string string_ = text2.Substring(num2.ToString().Length + uint_.ToString().Length + int_.ToString().Length + 3); GoldTree.GetGame().GetCatalog().method_7(string_, num2, uint_, int_); goto IL_C70; } case 8: uint_2 = uint.Parse(text2); class4 = GoldTree.GetGame().GetRoomManager().GetRoom(uint_2); GoldTree.GetGame().GetRoomManager().method_16(class4); goto IL_C70; case 9: num3 = uint.Parse(text2.Split(new char[] { ' ' })[0]); class4 = GoldTree.GetGame().GetRoomManager().GetRoom(num3); if (class4 != null) { string string_2 = text2.Substring(num3.ToString().Length + 1); for (int i = 0; i < class4.RoomUser_0.Length; i++) { RoomUser class5 = class4.RoomUser_0[i]; if (class5 != null) { class5.GetClient().SendNotif(string_2); } } goto IL_C70; } goto IL_C70; case 10: { int int_2 = int.Parse(text2.Split(new char[] { ' ' })[0]); using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { Groups.smethod_3(class2, int_2); goto IL_C70; } } case 11: goto IL_5BF; case 12: goto IL_602; case 13: case 14: using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { ChatCommandHandler.InitWords(class2); goto IL_C70; } case 15: goto IL_633; case 16: using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().method_17(class2); goto IL_C70; } case 17: goto IL_6F7; case 18: @class = GoldTree.GetGame().GetClientManager().method_2(uint.Parse(text2)); if (@class != null) { @class.GetHabbo().method_14(true, false); goto IL_C70; } goto IL_C70; case 19: using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetBanManager().method_0(class2); } GoldTree.GetGame().GetClientManager().method_28(); goto IL_C70; case 20: using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetBotManager().method_0(class2); goto IL_C70; } case 21: goto IL_839; case 22: using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { class2.ExecuteQuery(text2); goto IL_C70; } case 23: goto IL_880; case 24: { ServerMessage Message = new ServerMessage(134u); Message.AppendUInt(0u); Message.AppendString("PHX: " + text2); GoldTree.GetGame().GetClientManager().method_16(Message, Message); goto IL_C70; } case 25: { ServerMessage Message2 = new ServerMessage(808u); Message2.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("mus_ha_title")); Message2.AppendStringWithBreak(text2); ServerMessage Message3 = new ServerMessage(161u); Message3.AppendStringWithBreak(text2); GoldTree.GetGame().GetClientManager().method_15(Message2, Message3); goto IL_C70; } case 26: { string text4 = text2.Split(new char[] { ' ' })[0]; text5 = text2.Substring(text4.Length + 1); ServerMessage Message4 = new ServerMessage(161u); Message4.AppendStringWithBreak(string.Concat(new string[] { GoldTreeEnvironment.smethod_1("mus_hal_title"), "\r\n", text5, "\r\n-", GoldTreeEnvironment.smethod_1("mus_hal_tail") })); Message4.AppendStringWithBreak(text4); GoldTree.GetGame().GetClientManager().method_14(Message4); goto IL_C70; } case 27: case 28: { uint_2 = uint.Parse(text2); @class = GoldTree.GetGame().GetClientManager().method_2(uint_2); using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { dataRow = class2.ReadDataRow("SELECT look,gender,motto,mutant_penalty,block_newfriends FROM users WHERE id = '" + @class.GetHabbo().Id + "' LIMIT 1"); } @class.GetHabbo().Figure = (string)dataRow["look"]; @class.GetHabbo().Gender = dataRow["gender"].ToString().ToLower(); @class.GetHabbo().Motto = GoldTree.FilterString((string)dataRow["motto"]); @class.GetHabbo().BlockNewFriends = GoldTree.smethod_3(dataRow["block_newfriends"].ToString()); ServerMessage Message5 = new ServerMessage(266u); Message5.AppendInt32(-1); Message5.AppendStringWithBreak(@class.GetHabbo().Figure); Message5.AppendStringWithBreak(@class.GetHabbo().Gender.ToLower()); Message5.AppendStringWithBreak(@class.GetHabbo().Motto); @class.SendMessage(Message5); if (@class.GetHabbo().InRoom) { class4 = GoldTree.GetGame().GetRoomManager().GetRoom(@class.GetHabbo().CurrentRoomId); RoomUser class6 = class4.GetRoomUserByHabbo(@class.GetHabbo().Id); ServerMessage Message6 = new ServerMessage(266u); Message6.AppendInt32(class6.VirtualId); Message6.AppendStringWithBreak(@class.GetHabbo().Figure); Message6.AppendStringWithBreak(@class.GetHabbo().Gender.ToLower()); Message6.AppendStringWithBreak(@class.GetHabbo().Motto); Message6.AppendInt32(@class.GetHabbo().AchievementScore); Message6.AppendStringWithBreak(""); class4.SendMessage(Message6, null); } text3 = text.ToLower(); if (text3 == null) { goto IL_C70; } if (text3 == "updatemotto") { @class.GetHabbo().MottoAchievementsCompleted(); goto IL_C70; } if (text3 == "updatelook") { @class.GetHabbo().AvatarLookAchievementsCompleted(); goto IL_C70; } goto IL_C70; } default: goto IL_C70; } using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetCatalog().method_0(class2); } GoldTree.GetGame().GetCatalog().method_1(); GoldTree.GetGame().GetClientManager().method_14(new ServerMessage(441u)); goto IL_C70; IL_34E: num2 = uint.Parse(text2.Split(new char[] { ' ' })[0]); num3 = uint.Parse(text2.Split(new char[] { ' ' })[1]); GameClient class7 = GoldTree.GetGame().GetClientManager().method_2(num2); class4 = GoldTree.GetGame().GetRoomManager().GetRoom(num3); if (class7 != null) { ServerMessage Message7 = new ServerMessage(286u); Message7.AppendBoolean(class4.Boolean_3); Message7.AppendUInt(num3); class7.SendMessage(Message7); goto IL_C70; } goto IL_C70; IL_5BF: uint_2 = uint.Parse(text2); using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { GoldTree.GetGame().GetClientManager().method_2(uint_2).GetHabbo().method_0(class2); goto IL_C70; } IL_602: GoldTree.smethod_18(); goto IL_C70; IL_633: @class = GoldTree.GetGame().GetClientManager().method_2(uint.Parse(text2)); if (@class != null) { int int_3 = 0; using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { int_3 = (int)class2.ReadDataRow("SELECT credits FROM users WHERE id = '" + @class.GetHabbo().Id + "' LIMIT 1")[0]; } @class.GetHabbo().Credits = int_3; @class.GetHabbo().method_13(false); goto IL_C70; } goto IL_C70; IL_6F7: @class = GoldTree.GetGame().GetClientManager().method_2(uint.Parse(text2)); if (@class != null) { int int_4 = 0; using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient()) { int_4 = (int)class2.ReadDataRow("SELECT activity_points FROM users WHERE id = '" + @class.GetHabbo().Id + "' LIMIT 1")[0]; } @class.GetHabbo().ActivityPoints = int_4; @class.GetHabbo().method_15(false); goto IL_C70; } goto IL_C70; IL_839: GoldTree.GetGame().GetClientManager().method_2(uint.Parse(text2)).method_12(); goto IL_C70; IL_880: string text6 = text2.Split(new char[] { ' ' })[0]; text5 = text2.Substring(text6.Length + 1); ServerMessage Message8 = new ServerMessage(808u); Message8.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("mus_alert_title")); Message8.AppendStringWithBreak(text5); GoldTree.GetGame().GetClientManager().method_2(uint.Parse(text6)).SendMessage(Message8); } } IL_C70: ServerMessage Message9 = new ServerMessage(1u); Message9.AppendString("Hello Housekeeping, Love from GoldTree Emu"); this.socket_0.Send(Message9.GetBytes()); }
private void method_42(RoomUser RoomUser_1, ThreeDCoord gstruct1_1, uint uint_2, double double_3) { ServerMessage Message = new ServerMessage(); Message.Init(230u); Message.AppendInt32(RoomUser_1.int_3); Message.AppendInt32(RoomUser_1.int_4); Message.AppendInt32(gstruct1_1.x); Message.AppendInt32(gstruct1_1.y); Message.AppendInt32(0); Message.AppendUInt(uint_2); Message.AppendString("J"); Message.AppendInt32(RoomUser_1.VirtualId); Message.AppendStringWithBreak(RoomUser_1.double_0.ToString().Replace(',', '.')); Message.AppendStringWithBreak(double_3.ToString().Replace(',', '.')); this.SendMessage(Message, null); this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 1; RoomUser_1.int_3 = gstruct1_1.x; RoomUser_1.int_4 = gstruct1_1.y; RoomUser_1.double_0 = double_3; RoomUser_1.int_12 = gstruct1_1.x; RoomUser_1.int_13 = gstruct1_1.y; RoomUser_1.double_1 = double_3; RoomUser_1.int_9 = 2; this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 0; this.method_87(RoomUser_1, false, true); }
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0) { Room @class = RoomItem_0.method_8(); RoomUser class2 = @class.GetRoomUserByHabbo(Session.GetHabbo().Id); if (class2 != null && @class != null) { ThreeDCoord gstruct1_ = new ThreeDCoord(RoomItem_0.Int32_0 + 1, RoomItem_0.Int32_1); ThreeDCoord gstruct1_2 = new ThreeDCoord(RoomItem_0.Int32_0 - 1, RoomItem_0.Int32_1); ThreeDCoord gstruct1_3 = new ThreeDCoord(RoomItem_0.Int32_0, RoomItem_0.Int32_1 + 1); ThreeDCoord gstruct1_4 = new ThreeDCoord(RoomItem_0.Int32_0, RoomItem_0.Int32_1 - 1); if (ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_2) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_3) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_4)) { if (class2.bool_0) { class2.method_4(RoomItem_0.GStruct1_0); } } else { int num = RoomItem_0.Int32_0; int num2 = RoomItem_0.Int32_1; if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_)) { num = RoomItem_0.Int32_0 - 1; num2 = RoomItem_0.Int32_1; } else { if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_2)) { num = RoomItem_0.Int32_0 + 1; num2 = RoomItem_0.Int32_1; } else { if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_3)) { num = RoomItem_0.Int32_0; num2 = RoomItem_0.Int32_1 - 1; } else { if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_4)) { num = RoomItem_0.Int32_0; num2 = RoomItem_0.Int32_1 + 1; } } } } if (@class.method_37(num, num2, true, true, true, true, false, false, false)) { List<RoomItem> list_ = new List<RoomItem>(); list_ = @class.method_93(num, num2); double double_ = @class.method_84(num, num2, list_); ServerMessage Message = new ServerMessage(230u); Message.AppendInt32(RoomItem_0.Int32_0); Message.AppendInt32(RoomItem_0.Int32_1); Message.AppendInt32(num); Message.AppendInt32(num2); Message.AppendInt32(1); Message.AppendUInt(RoomItem_0.uint_0); Message.AppendByte(2); Message.AppendStringWithBreak(double_.ToString()); Message.AppendString("M"); @class.SendMessage(Message, null); @class.method_81(RoomItem_0, num, num2, double_); } } } }
internal void method_19(string string_0, uint uint_1) { ServerMessage Message = new ServerMessage(134u); Message.AppendUInt(uint_1); Message.AppendString(string_0); this.method_25().SendMessage(Message); }
public void Handle(GameClient Session, ClientMessage Event) { ServerMessage Message = new ServerMessage(827u); string text = Event.ToString().Split(new char[] { ' ' })[1]; if (text.ToLower().Contains("pet")) { int num = Convert.ToInt32(text.Substring(3)); Message.AppendStringWithBreak("a0 pet" + num); switch (num) { case 0: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_0")); break; case 1: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_1")); break; case 2: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_2")); break; case 3: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_3")); break; case 4: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_4")); break; case 5: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_5")); break; case 6: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_6")); break; case 7: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_7")); break; case 8: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_8")); break; case 9: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_9")); break; case 10: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_10")); break; case 11: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_11")); break; case 12: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_12")); break; case 13: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_13")); break; case 14: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_14")); break; case 15: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_15")); break; case 16: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_16")); break; case 17: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_17")); break; case 18: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_18")); break; case 19: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_19")); break; case 20: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_20")); break; case 21: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_21")); break; case 22: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_22")); break; case 23: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_23")); break; case 24: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_24")); break; case 25: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_25")); break; case 26: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_26")); break; case 27: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_27")); break; case 28: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_28")); break; case 29: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_29")); break; case 30: Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_30")); break; } Session.SendMessage(Message); } }
public ServerMessage method_14() { ServerMessage Message = new ServerMessage(140u); Message.AppendStringWithBreak("I"); Message.AppendString("II"); Message.AppendInt32(0); return Message; }
public void method_15(ServerMessage Message5_0) { if (!this.bool_11) { Message5_0.AppendInt32(this.VirtualId); Message5_0.AppendInt32(this.int_3); Message5_0.AppendInt32(this.int_4); Message5_0.AppendStringWithBreak(this.double_0.ToString().Replace(',', '.')); Message5_0.AppendInt32(this.int_7); Message5_0.AppendInt32(this.int_8); Message5_0.AppendString("/"); try { foreach (KeyValuePair<string, string> current in this.Statusses) { Message5_0.AppendString(current.Key); Message5_0.AppendString(" "); Message5_0.AppendString(current.Value); Message5_0.AppendString("/"); } } catch { } Message5_0.AppendStringWithBreak("/"); } }
internal void method_6(ServerMessage Message5_0) { if (this.Boolean_2) { Message5_0.AppendUInt(this.uint_0); Message5_0.AppendInt32(this.GetBaseItem().Sprite); Message5_0.AppendInt32(this.int_1); Message5_0.AppendInt32(this.int_2); Message5_0.AppendInt32(this.int_3); Message5_0.AppendStringWithBreak(this.double_0.ToString().Replace(',', '.')); if (this.GetBaseItem().Name == "song_disk" && this.ExtraData.Length > 0) { Message5_0.AppendInt32(Convert.ToInt32(this.ExtraData)); Message5_0.AppendStringWithBreak(""); } else { Message5_0.AppendInt32(0); Message5_0.AppendStringWithBreak(this.ExtraData); } Message5_0.AppendInt32(-1); Message5_0.AppendBoolean(!(this.GetBaseItem().InteractionType.ToLower() == "default")); } else { if (this.Boolean_1) { Message5_0.AppendStringWithBreak(string.Concat(this.uint_0)); Message5_0.AppendInt32(this.GetBaseItem().Sprite); Message5_0.AppendStringWithBreak(this.string_7); if (this.GetBaseItem().Name.StartsWith("poster_")) { Message5_0.AppendString(this.GetBaseItem().Name.Split(new char[] { '_' })[1]); } string text = this.GetBaseItem().InteractionType.ToLower(); if (text != null && text == "postit") { Message5_0.AppendStringWithBreak(this.ExtraData.Split(new char[] { ' ' })[0]); } else { Message5_0.AppendStringWithBreak(this.ExtraData); } Message5_0.AppendBoolean(!(this.GetBaseItem().InteractionType == "default")); } } }
public void Handle(GameClient Session, ClientMessage Event) { string text = GoldTree.DoFilter(Event.PopFixedString(), false, true); if (text.Length < 3) { ServerMessage Message = new ServerMessage(571u); Message.AppendString("J"); Session.SendMessage(Message); } else { if (text.Length > 15) { ServerMessage Message = new ServerMessage(571u); Message.AppendString("K"); Session.SendMessage(Message); } else { if (text.Contains(" ") || !Session.method_1().method_8(text) || text != ChatCommandHandler.smethod_4(text)) { ServerMessage Message = new ServerMessage(571u); Message.AppendString("QA"); Session.SendMessage(Message); } else { if (Event.Header == "GW") { ServerMessage Message = new ServerMessage(571u); Message.AppendString("H"); Message.AppendString(text); Session.SendMessage(Message); } else { if (Event.Header == "GV") { ServerMessage Message2 = new ServerMessage(570u); Message2.AppendString("H"); Session.SendMessage(Message2); ServerMessage Message3 = new ServerMessage(572u); Message3.AppendUInt(Session.GetHabbo().Id); Message3.AppendString("H"); Message3.AppendString(text); Session.SendMessage(Message3); if (Session.GetHabbo().CurrentRoomId > 0u) { Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); RoomUser class2 = @class.GetRoomUserByHabbo(Session.GetHabbo().Id); ServerMessage Message4 = new ServerMessage(28u); Message4.AppendInt32(1); class2.method_14(Message4); @class.SendMessage(Message4, null); } Dictionary<Room, int> dictionary = GoldTree.GetGame().GetRoomManager().method_22(); IEnumerable<Room> arg_204_0 = dictionary.Keys; if (ChangeUserNameMessageEvent.func_0 == null) { ChangeUserNameMessageEvent.func_0 = new Func<Room, int>(ChangeUserNameMessageEvent.smethod_0); } IOrderedEnumerable<Room> orderedEnumerable = arg_204_0.OrderByDescending(ChangeUserNameMessageEvent.func_0); foreach (Room current in orderedEnumerable) { if (current.Owner == Session.GetHabbo().Username) { current.Owner = text; GoldTree.GetGame().GetRoomManager().method_16(GoldTree.GetGame().GetRoomManager().GetRoom(current.Id)); } } using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient()) { class3.ExecuteQuery(string.Concat(new string[] { "UPDATE rooms SET owner = '", text, "' WHERE owner = '", Session.GetHabbo().Username, "'" })); class3.ExecuteQuery(string.Concat(new object[] { "UPDATE users SET username = '******' WHERE Id = '", Session.GetHabbo().Id, "' LIMIT 1" })); GoldTree.GetGame().GetClientManager().method_31(Session, "flagme", "OldName: " + Session.GetHabbo().Username + " NewName: " + text); Session.GetHabbo().Username = text; Session.GetHabbo().method_1(class3); foreach (RoomData current2 in Session.GetHabbo().list_6) { current2.Owner = text; } } Session.GetHabbo().ChangeNamaAchievementsCompleted(); } } } } } }