public void ParsePacket(Session session, Message message) { var Response = new Message(2888); Response.WriteInt32(3); session.SendPacket(Response); Response = new Message(1401); Response.WriteInt32(3); Response.WriteString("1344031458870"); Response.WriteString("http://habbo.hs.llnwd.net/basejump/693/BaseJump.swf"); Response.WriteString("best"); Response.WriteString("showAll"); Response.WriteInt32(60); Response.WriteInt32(10); Response.WriteInt32(0); Response.WriteInt32(4); Response.WriteString("accessToken"); Response.WriteString(session.Habbo.username + "-" + session.Habbo.figure); Response.WriteString("gameServerHost"); Response.WriteString("ff-am.habbo.com"); Response.WriteString("gameServerPort"); Response.WriteString("30000"); Response.WriteString("socketPolicyPort"); Response.WriteString("30843"); session.SendPacket(Response); }
/// <summary> /// Handles Packet, for current user, and message event. /// </summary> /// <param name="gameclient">User of Packet</param> /// <param name="Message">Message for User</param> public void ParsePacket(Session session, Message message) { var Response = new Message(2121); session.SendPacket(Response); Response = new Message(294); Response.WriteString("model_f"); // Room Model Response.WriteInt32(1); // id ? session.SendPacket(Response); Response = new Message(3248); Response.WriteString("floor"); Response.WriteInt32(0); session.SendPacket(Response); Response = new Message(3248); Response.WriteString("landscape"); Response.WriteString("0.0"); session.SendPacket(Response); Response = new Message(3323); Response.WriteInt32(4); session.SendPacket(Response); Response = new Message(3840); session.SendPacket(Response); Response = new Message(1794); Response.WriteInt32(0); session.SendPacket(Response); Response = new Message(369); Response.WriteInt32(142641); session.SendPacket(Response); }
public void ParsePacket(Session session, Message message) { var response = new Message(544); response.WriteString("Team Rev|"); response.WriteString(""); session.SendPacket(response); }
/// <summary> /// Handels the purchase for an object from the catalog. /// </summary> public void Purchase(Session session, Message message) { // Get pageId from Client. int pageId = message.NextInt32(); // Get itemId from Client. int itemId = message.NextInt32(); // Create a instance of CatalogItemController using the purchased item Id. CatalogItemController purchasedItem = new CatalogItemController(itemId); // Simple check. if (purchasedItem.pageId != pageId) // If Page id do not match return; // Remove credits based on Item cost. session.Habbo.credits -= purchasedItem.credits; message = new Message(11); // Change to CreditUpdate id. // Updates users credits. message.WriteString("" + session.Habbo.credits + ".0"); session.SendPacket(message); session.Habbo.SaveOrUpdate(session.Habbo); }
public void ParsePacket(Session session, Message message) { /* * [LOG][CLIENT] > 2574: [0][0][0]D[10][0][0][0][1][0][0]^^[0]8b12104s05013s05014s05015b629b628442e26e378b9f8f18818bbaa * [LOG][CLIENT] > 3163: [0][0][0][6][12][[0][0][0][0] */ var Response = new Message(2574); Response.WriteInt32(1); Response.WriteInt32(24158); Response.WriteString("b12104s05013s05014s05015b629b628442e26e378b9f8f18818bbaa"); session.SendPacket(Response); Response = new Message(3163); Response.WriteInt32(0); session.SendPacket(Response); }
public void ParsePacket(Session session, Message message) { //[LOG] > CLIENT ID: '785': [0][0][0][3] [0][0][0][0] [0][0][0][0] [0][0][0][1] [0][0][0][10] //[LOG] > CLIENT ID: '3721': [0][0][0][0][0]*6[0]GET_SNOWWAR_TOKENS[0][0][0][1] var response = new Message(785); response.WriteInt32(0); response.WriteInt32(0); response.WriteInt32(1); response.WriteInt32(10); session.SendPacket(response); response = new Message(3721); response.WriteInt32(1); response.WriteString("GET_SNOWWAR_TOKENS"); response.WriteInt32(1); session.SendPacket(response); }
/// <summary> /// Handles Packet, for current user, and message event. /// </summary> /// <param name="Session">User of Packet</param> /// <param name="Message">Message for User</param> public void ParsePacket(Session session, Message message) { var Response = new Message(3298); Response.WriteInt32(session.Habbo.id); Response.WriteString(message.NextString()); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(-1); session.SendPacket(Response); }
public void ParsePacket(Session session, Message message) { string sso = message.NextString(); //Application.Logging.WriteLine(string.Format("SSO Ticket: {0}", sso)); var loadMyHabbo = new HabboDistributor().GetHabbo(sso); session.Habbo = loadMyHabbo; var response = new Message(SendHeaders.InitHotelView); session.SendPacket(response); }
public void ParsePacket(Session session, Message message) { int FriendId = message.NextInt32(); string theMessage = message.NextString(); Console.WriteLine(FriendId); var Response = new Message(2582); Response.WriteInt32(FriendId); Response.WriteString(theMessage); Response.WriteString(string.Empty); session.SendPacket(Response); }
/// <summary> /// Handles Packet, for current user, and message event. /// </summary> /// <param name="gameclient">User of Packet</param> /// <param name="Message">Message for User</param> public void ParsePacket(Session session, Message message) { var Response = new Message(2348); session.SendPacket(Response); Response = new Message(1399); Response.WriteString("model_f"); // Room Model Response.WriteInt32(1); // id ? session.SendPacket(Response); Response = new Message(2771); Response.WriteString("wallpaper"); // Wallpaper Response.WriteString("110"); // Height / Width session.SendPacket(Response); Response = new Message(2771); Response.WriteString("floor"); // Floor Response.WriteString("110"); // Height / Width session.SendPacket(Response); Response = new Message(3998); Response.WriteInt32(4); session.SendPacket(Response); Response = new Message(3083); Response.WriteInt32(2); Response.WriteBool(false); session.SendPacket(Response); Response = new Message(831); session.SendPacket(Response); Response = new Message(2771); Response.WriteString("landscape"); // Landscape Response.WriteString("10.0"); // Height / Width session.SendPacket(Response); Response = new Message(2101); Response.WriteString("-1"); session.SendPacket(Response); }
public void ParsePacket(Session session, Message Message) { var Response = new Message(SendHeaders.InitClubStatus); Response.WriteString(Message.NextString()); Response.WriteInt32(10); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(1); Response.WriteBool(false); Response.WriteBool(true); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(0); session.SendPacket(Response); }
public void ParsePacket(Session session, Message message) { var Uinfo = new Message(3744); Uinfo.WriteInt32(session.Habbo.id); // id perhaps Uinfo.WriteString(session.Habbo.username); // names Uinfo.WriteInt32(4); // registered minutes ago Uinfo.WriteInt32(8); // last login minutes ago Uinfo.WriteBool(true); // is online, NO doubt Uinfo.WriteInt32(1); // cfhs Uinfo.WriteInt32(2); // abusive cfhs Uinfo.WriteInt32(3); // cautions Uinfo.WriteInt32(4); // bans Uinfo.WriteString("3"); // purchase shit? Uinfo.WriteInt32(3); // no idea yet Uinfo.WriteInt32(5); // amount banned accounts lol Uinfo.WriteString("666"); // some shit above banned accounts session.SendPacket(Uinfo); }
public void ParsePacket(Session session, Message message) { var response = new Message(1263); response.WriteInt32(326494); response.WriteString("[µ] Train Station [µ] NYC [µ]"); response.WriteInt32(55701607); response.WriteString("b22234s9723416fe55795537635b44781e732427990d"); response.WriteInt32(14); response.WriteInt32(1); response.WriteInt32(0); response.WriteInt32(1); response.WriteString("JakeSS"); response.WriteString( "hr-3163-61.hd-3091-6.ch-255-64.lg-3023-110.sh-3068-64-64.ha-1022-110.ea-3226-110.fa-1205-110.ca-3176-93-93.cc-3075-110.cp-3204"); response.WriteString("Mar 17, 2012"); response.WriteInt32(0); response.WriteInt32(0); response.WriteString(string.Empty); session.SendPacket(response); }
public void ParsePacket(Session session, Message message) { var Response = new Message(3240); try { Response.WriteInt32(5); Response.WriteString(""); Response.WriteInt32(1); Response.WriteInt32(1); Response.WriteBool(false); Response.WriteString("Best Room Ever"); Response.WriteBool(true); Response.WriteInt32(session.Habbo.id); Response.WriteString(session.Habbo.username); Response.WriteInt32(int.Parse("0")); Response.WriteInt32(0); Response.WriteInt32(2500); Response.WriteString("Zak's gay."); Response.WriteInt32(0); //Response.WriteInt32((bool.Parse(room.allowWalkthrough)) ? 1 : 0); Response.WriteInt32(1); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(0); // No group id. Response.WriteString(""); Response.WriteString(""); Response.WriteString(""); Response.WriteInt32(0); //for (int i = 0; i < room.tags.Count(); i++) //Response.WriteInt32(room.tags[i]); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteBool(true); Response.WriteBool(true); //foreach (RoomSql room in RoomSql.GetRooms(session.Habbo.id)) //{ /*Response.WriteInt32(room.id); Response.WriteBool(false); Response.WriteString(room.caption); Response.WriteBool(true); Response.WriteInt32(session.Habbo.id); Response.WriteString(session.Habbo.username); Response.WriteInt32(int.Parse(room.state)); Response.WriteInt32(0); Response.WriteInt32(room.usersMax); Response.WriteString(room.description); Response.WriteInt32(0); //Response.WriteInt32((bool.Parse(room.allowWalkthrough)) ? 1 : 0); Response.WriteInt32(1); Response.WriteInt32(room.score); Response.WriteInt32(room.category); Response.WriteInt32(0); // No group id. Response.WriteString(""); Response.WriteString(""); Response.WriteString(""); Response.WriteInt32(room.tags.Count()); //for (int i = 0; i < room.tags.Count(); i++) //Response.WriteInt32(room.tags[i]); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteInt32(0); Response.WriteBool(true); Response.WriteBool(true);*/ //} Response.WriteBool(false); session.SendPacket(Response); } catch (Exception e) { Console.WriteLine("Own Rooms Error: " + e); } }
public void ParsePacket(Session session, Message message) { Console.Title = string.Format("Revolution Emulator | Invoked on Revision: {0}, Packets loaded!", session.ReleaseBuild); var Response = new Message(SendHeaders.InitUser); Response.WriteInt32(session.Habbo.id); //id Response.WriteString(session.Habbo.username); //username Response.WriteString(session.Habbo.figure); //look Response.WriteString(session.Habbo.gender.ToUpper()); //gender M/F Response.WriteString(session.Habbo.motto); Response.WriteString(session.Habbo.username); //real name???? Response.WriteBool(true); Response.WriteInt32(0); // Respect Response.WriteInt32(3); // Daily Respect Points Response.WriteInt32(3); // Daily Pet Respect Points Response.WriteBool(true); Response.WriteString("31-07-2012 12:28:40"); Response.WriteBool(false); Response.WriteBool(false); session.SendPacket(Response); Response = new Message(2967); Response.WriteInt32(0); session.SendPacket(Response); Response = new Message(416); Response.WriteInt32(90); session.SendPacket(Response); Response = new Message(2594); Response.WriteInt32(25000); session.SendPacket(Response); Response = new Message(3841); Response.WriteInt32(0); Response.WriteInt32(-1); Response.WriteInt32(0); session.SendPacket(Response); Response = new Message(3786); Response.WriteString("100a65a9efd436dc996cbss6"); session.SendPacket(Response); //List<FriendController> friends = new FriendController(session.Habbo.id).GetMyFriends(session.Habbo.id); //session.SendAlert("Zak's a f****t"); Response = new Message(SendHeaders.FriendBarInit); Response.WriteInt32(100); Response.WriteInt32(100); Response.WriteInt32(200); Response.WriteInt32(300); Response.WriteInt32(0); //count friend group Response.WriteInt32(1); //Count friends HabboController friendData = new HabboController(2); Response.WriteInt32(friendData.id); Response.WriteString(friendData.username); //Username Response.WriteInt32(1); //? Response.WriteBool(true); //Online/Offline Response.WriteBool(false); //InRoom Response.WriteString(friendData.figure); Response.WriteInt32(2); Response.WriteString(friendData.motto); Response.WriteString("Super Admin"); Response.WriteString("22-07-2012"); Response.WriteBool(false); //var FriendbarTwo = new HabboController(2); /*for (int i = 0; i < friends.Count; i++) { HabboController friendData = new HabboController(i); Response.WriteInt32(friendData.id); Response.WriteString(friendData.username); //Username Response.WriteInt32(1); //? Response.WriteBool(true); //Online/Offline Response.WriteBool(false); //InRoom Response.WriteString(friendData.figure); Response.WriteInt32(2); Response.WriteString(friendData.motto); Response.WriteString("Super Admin"); Response.WriteString("22-07-2012"); Response.WriteBool(false); }*/ Response.WriteInt32(100); Response.WriteInt32(0); session.SendPacket(Response); Response = new Message(2026); Response.WriteInt32(0); Response.WriteInt32(0); session.SendPacket(Response); Response = new Message(3841); Response.WriteInt32(0); Response.WriteInt32(-1); Response.WriteInt32(0); session.SendPacket(Response); Response = new Message(3443); Response.WriteBool(true); Response.WriteString("lympix1"); Response.WriteInt32(0); Response.WriteInt32(30); Response.WriteInt32(-1); Response.WriteInt32(10); Response.WriteBool(false); Response.WriteString("CHANGE_FIGURE"); Response.WriteInt32(0); Response.WriteString(string.Empty); Response.WriteString("1343121901227"); Response.WriteInt32(0); Response.WriteInt32(1); Response.WriteInt32(1); Response.WriteString(string.Empty); Response.WriteString("keepcalm"); Response.WriteBool(true); Response.WriteInt32(1); Response.WriteInt32(0); session.SendPacket(Response); Response = new Message(2275); Response.WriteString("2012-08-12 00:00,olympicDecorator"); Response.WriteString(string.Empty); session.SendPacket(Response); }
public void ParsePacket(Session session, Message message) { int userId = message.NextInt32(); //var profile = new HabboSqlData(userId); var profile = new HabboController(userId); var Response = new Message(SendHeaders.WatchProfile); Response.WriteInt32(profile.id); Response.WriteString(profile.username); Response.WriteString(profile.figure); Response.WriteString(profile.motto); Response.WriteString("22-07-2012"); Response.WriteInt32(10); Response.WriteInt32(1); Response.WriteBool(false); Response.WriteBool(false); Response.WriteBool(false); Response.WriteInt32(0); Response.WriteInt32(60000); Response.WriteBool(true); session.SendPacket(Response); //[LOG] > CLIENT ID: '462': [0][0][1]d[1]Î[0][4]û^[1][0][0][0][0][0] [µ] Train Station [µ] NYC [µ][0]?This is a famous New York City station known as 'Grand Central' One of the best modes of transportation![0]>b06134s02134s97114t50013t50015b62a5d12f09ff0d1a5365a20ad7301af[3]Qðg[0]>µ T R A I N S T A T I O N µ New York µ armypolicedatefbi[0][0][0][1][0][0][3]Ý[1][0][10]17-03-2012[0][0][0][6]JakeSS[0][0][0][0][0][0] //var Response = new Message(SendHeaders.WatchProfile); //Response.WriteInt32(profile.Getid); //Response.WriteString(profile.username); //Response.WriteString(profile.GetLook()); //Response.WriteString(profile.motto); //Response.WriteString(profile.GetCreationDate()); //Response.WriteInt32(1337); //Response.WriteInt32(2); //Response.WriteBool(false); // online? //Response.WriteBool(false); //Response.WriteBool(profile.GetStatus()); //Response.WriteInt32(5); //Response.WriteInt32(1); //GroupId //Response.WriteString("Team Rev"); //Response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); //Response.WriteString("242424"); //Response.WriteString("242424"); //Response.WriteBool(false); //Favorite? //Response.WriteInt32(2); //GroupId //Response.WriteString("PacketEmu Is Gay."); //Response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); //Response.WriteString("242424"); //Response.WriteString("242424"); //Response.WriteBool(false); //Favorite? //Response.WriteInt32(3); //GroupId //Response.WriteString("Some Noob"); //Response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); //Response.WriteString("242424"); //Response.WriteString("242424"); //Response.WriteBool(false); //Favorite? //Response.WriteInt32(4); //GroupId //Response.WriteString("Bored, eh'"); //Response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); //Response.WriteString("242424"); //Response.WriteString("242424"); //Response.WriteBool(false); //Favorite? //Response.WriteInt32(5); //GroupId //Response.WriteString("Hail Kryptos!"); //Response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); //Response.WriteString("242424"); //Response.WriteString("242424"); //Response.WriteBool(true); //Favorite? //Response.WriteInt32(((int) (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds - // profile.GetLastAccess())); // //((int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds - (int)User.HabboUser.UserRow["lastaccess"]) //Response.WriteBool(true); //session.SendPacket(Response); }
public void ParsePacket(Session session, Message message) { /* * ItemCount Int32 * UserId Int32 * Score Int32 * Position Int32 * Username String * Figure String * Gender String * Int32(1) * Int32(1) */ //TODO: USE DISTRIBUTOR TO JUST GET USER FROM CACHE. int userid = message.NextInt32(); HabboController user = new HabboController(userid); var response = new Message(2048); response.WriteInt32(1); // User Count response.WriteInt32(userid); response.WriteInt32(0); // TODO: Make column for SCORE response.WriteInt32(1); // TODO: Make a void that filters the scores and sets the rank. response.WriteString(user.username); response.WriteString(user.figure); response.WriteString(user.gender); response.WriteInt32(1); response.WriteInt32(1); session.SendPacket(response); }
public void ParsePacket(Session session, Message message) { //NextInt may be ID. int Id = message.NextInt32(); switch (Id) { case 1: var response = new Message(462); response.WriteInt32(1); response.WriteBool(true); response.WriteInt32(0); //state 0:Unlocked; 1: Locked; 2: Closed. response.WriteString("Team Rev"); response.WriteString("The Epic Emulator."); response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); response.WriteInt32(12); response.WriteString("Roomname?"); response.WriteInt32(1); //Member? response.WriteInt32(1); response.WriteBool(true); response.WriteString("17-03-2012"); response.WriteString(string.Empty); response.WriteString("wizcsharp"); response.WriteString(string.Empty); response.WriteInt32(0); session.SendPacket(response); break; case 2: response = new Message(462); response.WriteInt32(2); response.WriteBool(true); response.WriteInt32(0); //state 0:Unlocked; 1: Locked; 2: Closed. response.WriteString("PacketEmu is gay"); response.WriteString("Freaking gay!"); response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); response.WriteInt32(12); response.WriteString("Roomname?"); response.WriteInt32(1); //Member? response.WriteInt32(1); response.WriteBool(true); response.WriteString("17-03-2012"); response.WriteString(string.Empty); response.WriteString("wizcsharp"); response.WriteString(string.Empty); response.WriteInt32(0); session.SendPacket(response); break; case 3: response = new Message(462); response.WriteInt32(3); response.WriteBool(true); response.WriteInt32(0); //state 0:Unlocked; 1: Locked; 2: Closed. response.WriteString("Some Noob"); response.WriteString("F**k yeah"); response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); response.WriteInt32(12); response.WriteString("Roomname?"); response.WriteInt32(1); //Member? response.WriteInt32(1); response.WriteBool(true); response.WriteString("17-03-2012"); response.WriteString(string.Empty); response.WriteString("wizcsharp"); response.WriteString(string.Empty); response.WriteInt32(0); session.SendPacket(response); break; case 4: response = new Message(462); response.WriteInt32(4); response.WriteBool(true); response.WriteInt32(0); //state 0:Unlocked; 1: Locked; 2: Closed. response.WriteString("Bored, eh'"); response.WriteString("Bite me! |"); response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); response.WriteInt32(12); response.WriteString("Roomname?"); response.WriteInt32(1); //Member? response.WriteInt32(1); response.WriteBool(true); response.WriteString("17-03-2012"); response.WriteString(string.Empty); response.WriteString("wizcsharp"); response.WriteString(string.Empty); response.WriteInt32(0); session.SendPacket(response); break; case 5: response = new Message(462); response.WriteInt32(5); response.WriteBool(true); response.WriteInt32(0); //state 0:Unlocked; 1: Locked; 2: Closed. response.WriteString("Hail Kryptos!"); response.WriteString("F*****G DO IT!! |"); response.WriteString("b22114s97114b8aaa7c5101e6bcb6eff94df1b669f0f"); response.WriteInt32(12); response.WriteString("Roomname?"); response.WriteInt32(1); //Member? response.WriteInt32(1); response.WriteBool(true); response.WriteString("17-03-2012"); response.WriteString(string.Empty); response.WriteString("Kryptos"); response.WriteString(string.Empty); response.WriteInt32(0); session.SendPacket(response); break; } }