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


C# ClientMessage.PopWiredUInt方法代码示例

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


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

示例1: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint requester = Event.PopWiredUInt();
     uint newStatus = Event.PopWiredUInt();
     if (Session.GetHabbo().GetRelationshipComposer().GetRelationshipList.ContainsKey(requester))
     {
         if (Session.GetHabbo().GetRelationshipComposer().GetRelationshipList[requester] != newStatus)
             Session.SendMessage(Session.GetHabbo().GetRelationshipComposer().SerializeRelationshipUpdate(requester, newStatus));
     }
     else if ((!Session.GetHabbo().GetRelationshipComposer().GetRelationshipList.ContainsKey(requester)) && (newStatus != 0))
         Session.SendMessage(Session.GetHabbo().GetRelationshipComposer().SerializeRelationshipUpdate(requester, newStatus));
     else
         return;
 }
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:14,代码来源:SetRelationshipsStatusMessage.cs

示例2: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			int num = Event.PopWiredInt32();
			List<uint> list = new List<uint>();
			for (int i = 0; i < num; i++)
			{
				list.Add(Event.PopWiredUInt());
			}
			string text = Event.PopFixedString();
			
				text = Essential.DoFilter(text, true, false);
				text = ChatCommandHandler.ApplyFilter(text);
                ServerMessage Message = new ServerMessage(Outgoing.InstantInvite); // Update
				Message.AppendUInt(Session.GetHabbo().Id);
				Message.AppendStringWithBreak(text);
				foreach (uint current in list)
				{
					if (Session.GetHabbo().GetMessenger().method_9(Session.GetHabbo().Id, current))
					{
						GameClient @class = Essential.GetGame().GetClientManager().GetClient(current);
						if (@class == null)
						{
							break;
						}
						@class.SendMessage(Message);
					}
				}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:28,代码来源:SendRoomInviteMessageEvent.cs

示例3: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			if (Session.GetHabbo().HasFuse("acc_supporttool"))
			{
				uint uint_ = Event.PopWiredUInt();
                bool flag = (Event.PopWiredInt32() == 1);
                bool flag2 = (Event.PopWiredInt32() == 1);
                bool flag3 = (Event.PopWiredInt32() == 1);
				string text = "";
				if (flag)
				{
					text += "Apply Doorbell";
				}
				if (flag2)
				{
					text += " Change Name";
				}
				if (flag3)
				{
					text += " Kick Users";
				}
				Essential.GetGame().GetClientManager().StoreCommand(Session, "ModTool - Room Action", text);
		        Essential.GetGame().GetModerationTool().method_12(Session, uint_, flag3, flag, flag2);
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:25,代码来源:ModerateRoomMessageEvent.cs

示例4: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			Room @class = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
			if (@class != null)
			{
				RoomItem class2 = @class.method_28(Event.PopWiredUInt());
				if (class2 != null && !(class2.GetBaseItem().InteractionType.ToLower() != "postit"))
				{
                    string Color = Event.PopFixedString();
                    string Text = Event.PopFixedString();
                    if (@class.method_26(Session) || Text.StartsWith(class2.ExtraData))
					{
                        switch (Color)
                        {
                            case "FFFF33":
                            case "FF9CFF":
                            case "9CCEFF":
                            case "9CFF9C":
                                break;
                            default:
                                return; // invalid color
                        }
                        class2.ExtraData = Color + " " + Text;
						class2.UpdateState(true, true);
						
					}
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:29,代码来源:SetItemDataMessageEvent.cs

示例5: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			uint num = Event.PopWiredUInt();
			Room @class = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
			if (@class != null && [email protected])
			{
				RoomUser class2 = @class.method_48(num);
				if (class2 == null || class2.PetData == null)
				{
					DataRow dataRow = null;
					using (DatabaseClient class3 = Essential.GetDatabase().GetClient())
					{
						class3.AddParamWithValue("petid", num);
						dataRow = class3.ReadDataRow("SELECT Id, user_id, room_id, name, type, race, color, expirience, energy, nutrition, respect, createstamp, x, y, z FROM user_pets WHERE Id = @petid LIMIT 1");
					}
					if (dataRow != null)
					{
						Session.SendMessage(Essential.GetGame().GetCatalog().GetPet(dataRow).SerializeInfo());
					}
				}
				else
				{
					Session.SendMessage(class2.PetData.SerializeInfo());
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:26,代码来源:GetPetInfoMessageEvent.cs

示例6: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session != null && Session.GetHabbo() != null)
     {
         Event.PopWiredInt32();
         Room @class = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
         if (@class != null && @class.CheckRights(Session, true))
         {
             RoomItem class2 = @class.method_28(Event.PopWiredUInt());
             if (class2 != null)
             {
                 string text = class2.GetBaseItem().InteractionType.ToLower();
                 if (text == null || !(text == "postit"))
                 {
                     @class.method_29(Session, class2.uint_0, false, true);
                     Session.GetHabbo().GetInventoryComponent().method_11(class2.uint_0, class2.uint_2, class2.ExtraData, false, 0, 0, class2.GuildData);
                     Session.GetHabbo().GetInventoryComponent().method_9(true);
                     if (Session.GetHabbo().CurrentQuestId > 0 && Essential.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "PICKUPITEM")
                     {
                         Essential.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session);
                     }
                 }
             }
         }
     }
 }
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:26,代码来源:PickupObjectMessageEvent.cs

示例7: Handle

		public void Handle(GameClient session, ClientMessage message)
		{
			if (session != null && session.GetHabbo() != null)
			{
				Room room = Essential.GetGame().GetRoomManager().GetRoom(session.GetHabbo().CurrentRoomId);

				if (room != null)
				{
					RoomUser targetUser = room.GetRoomUserByHabbo(message.PopWiredUInt());

					if (targetUser != null && !targetUser.IsBot && targetUser.GetClient() != null)
					{
                        ServerMessage Message = new ServerMessage(Outgoing.UpdateBadges); // Updated

						Message.AppendUInt(targetUser.GetClient().GetHabbo().Id);
						Message.AppendInt32(targetUser.GetClient().GetHabbo().GetBadgeComponent().VisibleBadges);

						using (TimedLock.Lock(targetUser.GetClient().GetHabbo().GetBadgeComponent().GetBadges()))
						{
							foreach (Badge current in targetUser.GetClient().GetHabbo().GetBadgeComponent().GetBadges())
							{
								if (current.Slot > 0)
								{
									Message.AppendInt32(current.Slot);
									Message.AppendStringWithBreak(current.Code);
								}
							}
						}

						session.SendMessage(Message);
					}
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:34,代码来源:GetSelectedBadgesMessageEvent.cs

示例8: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			uint num = Event.PopWiredUInt();
            RoomData @class = Essential.GetGame().GetRoomManager().method_12(num);
			if (@class == null || Session.GetHabbo().list_1.Count >= 30 || Session.GetHabbo().list_1.Contains(num) || @class.Type == "public")
			{
			}
			else
			{
                ServerMessage Message2 = new ServerMessage(Outgoing.FavsUpdate); // Updated
				Message2.AppendUInt(num);
				Message2.AppendBoolean(true);
				Session.SendMessage(Message2);
				Session.GetHabbo().list_1.Add(num);
				using (DatabaseClient class2 = Essential.GetDatabase().GetClient())
				{
					class2.ExecuteQuery(string.Concat(new object[]
					{
						"INSERT INTO user_favorites (user_id,room_id) VALUES ('",
						Session.GetHabbo().Id,
						"','",
						num,
						"')"
					}));
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:27,代码来源:AddFavouriteRoomMessageEvent.cs

示例9: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			Room @class = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
			if (@class != null && @class.method_26(Session))
			{
                int num = Event.PopWiredInt32();
                uint Data = Event.PopWiredUInt();
                string BrandData = "state" + Convert.ToChar(9) + "0";
                for (int i = 1; i <= Data; i++)
                {
                    BrandData = BrandData + Convert.ToChar(9) + Event.PopFixedString();
                }
                using (DatabaseClient class2 = Essential.GetDatabase().GetClient())
                {
                    class2.AddParamWithValue("extradata", BrandData);
                    class2.ExecuteQuery("UPDATE items_extra_data SET extra_data = @extradata WHERE item_id = '" + num + "' LIMIT 1");
                }
                /*ServerMessage Message = new ServerMessage();
                Message.Init(Outgoing.ObjectDataUpdate); // Update
                Message.AppendStringWithBreak(num.ToString());
                Message.AppendInt32(0);
                Message.AppendInt32(1);
                Message.AppendStringWithBreak(BrandData);
                @class.SendMessage(Message, null);*/
                @class.method_28((uint)num).ExtraData = BrandData;
                @class.method_79(Session, @class.method_28((uint)num), @class.method_28((uint)num).GetX, @class.method_28((uint)num).Int32_1, @class.method_28((uint)num).int_3, false, false, true);
                @class.method_28((uint)num).UpdateState(true, false, true);
				}
			
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:30,代码来源:SetObjectDataMessageEvent.cs

示例10: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			uint num = Event.PopWiredUInt();
			string text = Essential.FilterString(Event.PopFixedString());
			if (Session != null && Session.GetHabbo() != null && Session.GetHabbo().GetMessenger() != null && Session.GetHabbo().PassedSafetyQuiz)
			{
                Session.GetHabbo().CheckForUnmute();
				if (num == 0u && Session.GetHabbo().HasFuse("cmd_sa"))
				{
                    ServerMessage Message = new ServerMessage(Outgoing.InstantChat);
					Message.AppendUInt(0u);
					Message.AppendString(Session.GetHabbo().Username + ": " + text);
                    Message.AppendString(Essential.GetUnixTimestamp() + string.Empty);
					Essential.GetGame().GetClientManager().SendToStaffs(Session, Message, false);
				}
				else
				{
					if (num == 0u)
					{
                       /* ServerMessage Message2 = new ServerMessage(1133);
						Message2.AppendInt32(4);
						Message2.AppendUInt(0u);
						Session.SendMessage(Message2);*/
					}
					else
					{
                        if (Session != null && Session.GetHabbo() != null)
                        {
                            Session.GetHabbo().GetMessenger().method_18(num, text);
                        }
					}
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:34,代码来源:SendMsgMessageEvent.cs

示例11: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			if (Session.GetHabbo().GetMessenger() != null)
			{
				int num = Event.PopWiredInt32();
				for (int i = 0; i < num; i++)
				{
					uint uint_ = Event.PopWiredUInt();
					MessengerRequest @class = Session.GetHabbo().GetMessenger().method_4(uint_);
					if (@class != null)
					{
						if (@class.To != Session.GetHabbo().Id)
						{
							break;
						}

						if (!Session.GetHabbo().GetMessenger().method_9(@class.To, @class.From))
						{
							Session.GetHabbo().GetMessenger().method_12(@class.From);
						}

						Session.GetHabbo().GetMessenger().method_11(uint_);

                       
					}
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:28,代码来源:AcceptBuddyMessageEvent.cs

示例12: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
            if (Session.GetHabbo().InRoom)
			{
				int num = Event.PopWiredInt32();
				if (num >= 3)
				{
					for (int i = 0; i < num; i++)
					{
						UserItem @class = Session.GetHabbo().GetInventoryComponent().GetItemById(Event.PopWiredUInt());
						if (@class == null || [email protected]().AllowRecycle)
						{
							return;
						}
                        Session.GetHabbo().GetInventoryComponent().method_12(@class.uint_0, 0u, false);
					}
					uint num2 = Essential.GetGame().GetCatalog().GetNextId();
					EcotronReward class2 = Essential.GetGame().GetCatalog().GetEcotronReward();
					using (DatabaseClient class3 = Essential.GetDatabase().GetClient())
					{
						class3.ExecuteQuery(string.Concat(new object[]
						{
							"INSERT INTO items (Id,user_id,base_item,wall_pos) VALUES ('",
							num2,
							"','",
							Session.GetHabbo().Id,
							"','1478','')"
						}));
                        class3.ExecuteQuery(string.Concat(new object[]
						{
							"INSERT INTO items_extra_data (item_id,extra_data) VALUES ('",
							num2,
							"','",
							DateTime.Now.ToLongDateString(),
							"')"
						}));
						class3.ExecuteQuery(string.Concat(new object[]
						{
							"INSERT INTO user_presents (item_id,base_id,amount,extra_data) VALUES ('",
							num2,
							"','",
							class2.uint_2,
							"','1','')"
						}));
					}
					Session.GetHabbo().GetInventoryComponent().method_9(true);
                    ServerMessage Response = new ServerMessage(Outgoing.SendPurchaseAlert);
                    Response.AppendInt32(1);
                    Response.AppendInt32(1);
                    Response.AppendInt32(1);
                    Response.AppendInt32(class2.GetBaseItem().Sprite);
                    Session.SendMessage(Response);
                    ServerMessage Response2 = new ServerMessage(Outgoing.RecycleState);
                    Response2.AppendInt32(1);
                    Response2.AppendInt32(class2.GetBaseItem().Sprite);
                    Session.SendMessage(Response2);
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:59,代码来源:RecycleItemsMessageEvent.cs

示例13: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			if (Session.GetHabbo().HasFuse("acc_supporttool"))
			{
				uint uint_ = Event.PopWiredUInt();
				Session.SendMessage(Essential.GetGame().GetModerationTool().method_19(uint_));
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:8,代码来源:GetRoomVisitsMessageEvent.cs

示例14: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint userId = Event.PopWiredUInt();
     GameClient gc = Essential.GetGame().GetClientManager().GetClientByHabbo(Essential.GetGame().GetClientManager().GetNameById(userId));
     if (gc != null)
         Session.SendMessage(gc.GetHabbo().GetRelationshipComposer().SerializeRelationshipsProfile());
     else
         Session.SendMessage(new RelationshipComposer(userId).SerializeRelationshipsProfile());
 }
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:9,代码来源:GetRelationshipsProfile.cs

示例15: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			if (Session.GetHabbo().HasFuse("acc_supporttool"))
			{
				uint uint_ = Event.PopWiredUInt();
				string string_ = Event.PopFixedString();
				Essential.GetGame().GetModerationTool().method_16(Session, uint_, string_, true);
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:9,代码来源:ModAlertMessageEvent.cs


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