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


C# ClientMessage.PopWiredUInt方法代码示例

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


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

示例1: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint num = Event.PopWiredUInt();
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && [email protected]_3)
     {
         RoomUser class2 = @class.method_48(num);
         if (class2 == null || class2.PetData == null)
         {
             DataRow dataRow = null;
             using (DatabaseClient class3 = GoldTree.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(GoldTree.GetGame().GetCatalog().method_12(dataRow).SerializeInfo());
             }
         }
         else
         {
             Session.SendMessage(class2.PetData.SerializeInfo());
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:26,代码来源:GetPetInfoMessageEvent.cs

示例2: Handle

        public void Handle(GameClient Session, ClientMessage Event)
        {
            int int_ = Event.PopWiredInt32();
            uint uint_ = Event.PopWiredUInt();
            string string_ = Event.PopFixedString();

            if (Session == null || Session.GetHabbo() == null)
            {
                return;
            }

            if (Session.GetHabbo().int_24 > 1)
            {
                int num = 0;
                while (num < Session.GetHabbo().int_24 && GoldTree.GetGame().GetCatalog().method_6(Session, int_, uint_, string_, false, "", "", num == 0))
                {
                    num++;
                }
                Session.GetHabbo().int_24 = 1;
            }
            else
            {
                GoldTree.GetGame().GetCatalog().method_6(Session, int_, uint_, string_, false, "", "", true);
            }
        }
开发者ID:Waguiinhocvp,项目名称:Gold-Tree-Emulator,代码行数:25,代码来源:PurchaseFromCatalogEvent.cs

示例3: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint num = Event.PopWiredUInt();
     Room room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (room != null)
     {
         RoomUser roomUserByHabbo = room.GetRoomUserByHabbo(num);
         if (room != null && room.CheckRights(Session, true) && roomUserByHabbo != null && !roomUserByHabbo.IsBot && !room.UsersWithRights.Contains(num))
         {
             room.UsersWithRights.Add(num);
             using (DatabaseClient client = GoldTree.GetDatabase().GetClient())
             {
                 client.ExecuteQuery(string.Concat(new object[]
                 {
                     "INSERT INTO room_rights (room_id,user_id) VALUES (",
                     room.Id,
                     ",",
                     num,
                     ")"
                 }));
             }
             ServerMessage serverMessage = new ServerMessage(510u);
             serverMessage.AppendUInt(room.Id);
             serverMessage.AppendUInt(num);
             serverMessage.AppendStringWithBreak(roomUserByHabbo.GetClient().GetHabbo().Username);
             Session.SendMessage(serverMessage);
             roomUserByHabbo.AddStatus("flatctrl", "");
             roomUserByHabbo.UpdateNeeded = true;
             roomUserByHabbo.GetClient().SendMessage(new ServerMessage(42u));
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:32,代码来源:AssignRightsMessageEvent.cs

示例4: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.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 text = Event.PopFixedString();
             string text2 = text.Split(new char[]
             {
                 ' '
             })[0];
             string str = GoldTree.DoFilter(text.Substring(text2.Length + 1), true, true);
             if (@class.method_26(Session) || text.StartsWith(class2.ExtraData))
             {
                 string text3 = text2;
                 if (text3 != null && (text3 == "FFFF33" || text3 == "FF9CFF" || text3 == "9CCEFF" || text3 == "9CFF9C"))
                 {
                     class2.ExtraData = text2 + " " + str;
                     class2.UpdateState(true, true);
                 }
             }
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:26,代码来源:SetItemDataMessageEvent.cs

示例5: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room class14_ = Session.GetHabbo().CurrentRoom;
     if (class14_ != null)
     {
         Event.PopWiredUInt();
         string string_ = Event.PopFixedString();
         RoomUser @class = class14_.method_56(string_);
         if (@class != null)
         {
             uint uint_ = @class.GetClient().GetHabbo().Id;
             if (Session.GetHabbo().list_2.Contains(uint_))
             {
                 Session.GetHabbo().list_2.Remove(uint_);
                 using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
                 {
                     class2.ExecuteQuery(string.Concat(new object[]
                     {
                         "DELETE FROM user_ignores WHERE user_id = ",
                         Session.GetHabbo().Id,
                         " AND ignore_id = ",
                         uint_,
                         " LIMIT 1;"
                     }));
                 }
                 ServerMessage Message = new ServerMessage(419u);
                 Message.AppendInt32(3);
                 Session.SendMessage(Message);
             }
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:32,代码来源:UnignoreUserMessageEvent.cs

示例6: Handle

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

示例7: Handle

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

示例8: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && (@class.AllowPet || @class.CheckRights(Session, true)))
     {
         uint uint_ = Event.PopWiredUInt();
         Pet class2 = Session.GetHabbo().method_23().method_4(uint_);
         if (class2 != null && !class2.PlacedInRoom)
         {
             int num = Event.PopWiredInt32();
             int num2 = Event.PopWiredInt32();
             if (@class.method_30(num, num2, 0.0, true, false))
             {
                 if (@class.Int32_2 >= LicenseTools.int_2)
                 {
                     Session.SendNotif(GoldTreeEnvironment.smethod_1("error_maxpets") + LicenseTools.int_2);
                 }
                 else
                 {
                     class2.PlacedInRoom = true;
                     class2.RoomId = @class.Id;
                     List<RandomSpeech> list = new List<RandomSpeech>();
                     List<BotResponse> list2 = new List<BotResponse>();
                     @class.method_4(new RoomBot(class2.PetId, class2.RoomId, AIType.const_0, "freeroam", class2.Name, "", class2.Look, num, num2, 0, 0, 0, 0, 0, 0, ref list, ref list2, 0), class2);
                     if (@class.CheckRights(Session, true))
                     {
                         Session.GetHabbo().method_23().method_6(class2.PetId, @class.Id);
                     }
                 }
             }
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:33,代码来源:PlacePetMessageEvent.cs

示例9: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     uint num = Event.PopWiredUInt();
     Event.PopFixedString();
     Event.PopWiredInt32();
     RoomData @class = GoldTree.GetGame().GetRoomManager().method_12(num);
     if (@class != null)
     {
         if (@class.Type == "private")
         {
             ServerMessage Message = new ServerMessage(286u);
             Message.AppendBoolean(@class.IsPublicRoom);
             Message.AppendUInt(num);
             Session.SendMessage(Message);
         }
         else
         {
             ServerMessage Message2 = new ServerMessage(453u);
             Message2.AppendUInt(@class.Id);
             Message2.AppendStringWithBreak(@class.CCTs);
             Message2.AppendUInt(@class.Id);
             Session.SendMessage(Message2);
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:25,代码来源:GetPublicSpaceCastLibsMessageEvent.cs

示例10: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.method_26(Session))
     {
         uint num = Event.PopWiredUInt();
         string a = Event.PopFixedString().ToUpper();
         string text = GoldTree.FilterString(Event.PopFixedString());
         text = text.Replace("hd-99999-99999", "");
         text += ".";
         RoomItem class2 = @class.Hashtable_0[num] as RoomItem;
         if (class2.ExtraData.Contains(','))
         {
             class2.string_2 = class2.ExtraData.Split(new char[]
             {
                 ','
             })[0];
             class2.string_3 = class2.ExtraData.Split(new char[]
             {
                 ','
             })[1];
         }
         if (a == "M")
         {
             class2.string_2 = text;
         }
         else
         {
             class2.string_3 = text;
         }
         class2.ExtraData = class2.string_2 + "," + class2.string_3;
         class2.UpdateState(true, true);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:34,代码来源:SetClothingChangeDataMessageEvent.cs

示例11: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session != null && Session.GetHabbo() != null)
     {
         Event.PopWiredInt32();
         Room @class = GoldTree.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().method_23().method_11(class2.uint_0, class2.uint_2, class2.ExtraData, false);
                     Session.GetHabbo().method_23().method_9(true);
                     if (Session.GetHabbo().CurrentQuestId > 0 && GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "PICKUPITEM")
                     {
                         GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session);
                     }
                 }
             }
         }
     }
 }
开发者ID:Waguiinhocvp,项目名称:Gold-Tree-Emulator,代码行数:26,代码来源:PickupObjectMessageEvent.cs

示例12: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room class14_ = Session.GetHabbo().CurrentRoom;
     if (class14_ != null)
     {
         Event.PopWiredUInt();
         string string_ = Event.PopFixedString();
         RoomUser @class = class14_.method_56(string_);
         if (@class != null && @class.GetClient().GetHabbo().Rank <= 2u)
         {
             uint uint_ = @class.GetClient().GetHabbo().Id;
             if (!Session.GetHabbo().list_2.Contains(uint_))
             {
                 Session.GetHabbo().list_2.Add(uint_);
                 using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
                 {
                     class2.ExecuteQuery(string.Concat(new object[]
                     {
                         "INSERT INTO user_ignores(user_id, ignore_id) VALUES (",
                         Session.GetHabbo().Id,
                         ", ",
                         uint_,
                         ");"
                     }));
                 }
                 ServerMessage Message = new ServerMessage(419u);
                 Message.AppendInt32(1);
                 Session.SendMessage(Message);
             }
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:32,代码来源:IgnoreUserMessageEvent.cs

示例13: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().HasFuse("acc_chatlogs"))
     {
         Session.SendMessage(GoldTree.GetGame().GetModerationTool().method_20(Event.PopWiredUInt()));
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:7,代码来源:GetUserChatlogMessageEvent.cs

示例14: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && Session.GetHabbo().int_21 > 0)
     {
         RoomUser class2 = @class.GetRoomUserByHabbo(Event.PopWiredUInt());
         if (class2 != null && class2.GetClient().GetHabbo().Id != Session.GetHabbo().Id && !class2.IsBot)
         {
             Session.GetHabbo().int_21--;
             Session.GetHabbo().RespectGiven++;
             class2.GetClient().GetHabbo().Respect++;
             using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
             {
                 class3.ExecuteQuery("UPDATE user_stats SET Respect = respect + 1 WHERE Id = '" + class2.GetClient().GetHabbo().Id + "' LIMIT 1");
                 class3.ExecuteQuery("UPDATE user_stats SET RespectGiven = RespectGiven + 1 WHERE Id = '" + Session.GetHabbo().Id + "' LIMIT 1");
                 class3.ExecuteQuery("UPDATE user_stats SET dailyrespectpoints = dailyrespectpoints - 1 WHERE Id = '" + Session.GetHabbo().Id + "' LIMIT 1");
             }
             ServerMessage Message = new ServerMessage(440u);
             Message.AppendUInt(class2.GetClient().GetHabbo().Id);
             Message.AppendInt32(class2.GetClient().GetHabbo().Respect);
             @class.SendMessage(Message, null);
             Session.GetHabbo().CheckRespectGivedAchievements();
             class2.GetClient().GetHabbo().CheckRespectReceivedAchievements();
             if (Session.GetHabbo().CurrentQuestId == 5u)
             {
                 GoldTree.GetGame().GetQuestManager().ProgressUserQuest(5u, Session);
             }
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:30,代码来源:RespectUserMessageEvent.cs

示例15: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session != null && Session.GetHabbo() != null)
     {
         Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
         if (@class != null)
         {
             RoomUser class2 = @class.GetRoomUserByHabbo(Event.PopWiredUInt());
             if (class2 != null && !class2.IsBot && class2.GetClient() != null)
             {
                 ServerMessage Message = new ServerMessage(228u);
                 Message.AppendUInt(class2.GetClient().GetHabbo().Id);
                 Message.AppendInt32(class2.GetClient().GetHabbo().method_22().Int32_1);
                 using (TimedLock.Lock(class2.GetClient().GetHabbo().method_22().List_0))
                 {
                     foreach (Badge current in class2.GetClient().GetHabbo().method_22().List_0)
                     {
                         if (current.Slot > 0)
                         {
                             Message.AppendInt32(current.Slot);
                             Message.AppendStringWithBreak(current.Code);
                         }
                     }
                 }
                 Session.SendMessage(Message);
             }
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:29,代码来源:GetSelectedBadgesMessageEvent.cs


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