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


C# ClientMessage.PopWiredInt32方法代码示例

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


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

示例1: 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

示例2: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     int PollId = Event.PopWiredInt32();
     int QuestionId = Event.PopWiredInt32();
     int AnswerCount = Event.PopWiredInt32();
     string AnswerText = "";
     if (AnswerCount > 1)
     {
         for (int i = 1; i <= AnswerCount; i++)
         {
             if (AnswerText == "")
             {
                 AnswerText = Event.PopFixedString();
             }
             else
             {
                 AnswerText = AnswerText + "," + Event.PopFixedString();
             }
         }
     }
     else
     {
         AnswerText = Event.PopFixedString();
     }
     using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
     {
         dbClient.ExecuteQuery("INSERT INTO `room_poll_results` (`poll_id`, `question_id`, `answer_text`, `user_id`) VALUES ('" + PollId +"', '" + QuestionId + "', '" + AnswerText + "', '" + Session.GetHabbo().Id + "')");
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:29,代码来源:GetRoomPollAnswers.cs

示例3: Handle

        public void Handle(GameClient Session, ClientMessage Event)
        {
            int num = Event.PopWiredInt32();
            ServerMessage Message = new ServerMessage(300u);
            Message.AppendInt32(num);
            if (num > 0)
            {
                for (int i = 0; i < num; i++)
                {
                    int num2 = Event.PopWiredInt32();
                    if (num2 > 0)
                    {
                        /*Soundtrack @class = GoldTree.GetGame().GetItemManager().method_4(num2);
                        Message.AppendInt32(@class.Id);
                        Message.AppendStringWithBreak(@class.Name);
                        Message.AppendStringWithBreak(@class.Track);
                        Message.AppendInt32(@class.Length);
                        Message.AppendStringWithBreak(@class.Author);*/

                        Message.AppendInt32(SongManager.GetSong(num2).Id);
                        Message.AppendStringWithBreak(SongManager.GetSong(num2).Name);
                        Message.AppendStringWithBreak(SongManager.GetSong(num2).Track);
                        Message.AppendInt32(SongManager.GetSong(num2).Length);
                        Message.AppendStringWithBreak(SongManager.GetSong(num2).Author);
                    }
                }
            }
            Session.SendMessage(Message);
        }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:29,代码来源:GetSongInfoMessageEvent.cs

示例4: 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(Session.GetHabbo().Id);
             if (class2 != null)
             {
                 class2.Unidle();
                 int num = Event.PopWiredInt32();
                 int num2 = Event.PopWiredInt32();
                 if (num != class2.int_3 || num2 != class2.int_4)
                 {
                     int int_ = Class107.smethod_0(class2.int_3, class2.int_4, num, num2);
                     class2.method_9(int_);
                     if (class2.class34_1 != null && class2.RoomUser_0 != null)
                     {
                         class2.RoomUser_0.method_9(int_);
                     }
                 }
             }
         }
     }
 }
开发者ID:Waguiinhocvp,项目名称:Gold-Tree-Emulator,代码行数:26,代码来源:LockToMessageEvent.cs

示例5: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().HasFuse("acc_supporttool"))
     {
         int int_ = Event.PopWiredInt32();
         Event.PopWiredInt32();
         uint uint_ = Event.PopWiredUInt();
         GoldTree.GetGame().GetModerationTool().method_8(Session, uint_, int_);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:10,代码来源:CloseIssuesMessageEvent.cs

示例6: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session != null && Session.GetHabbo() != null)
     {
         Room class14_ = Session.GetHabbo().CurrentRoom;
         if (class14_ != null)
         {
             RoomUser @class = class14_.GetRoomUserByHabbo(Session.GetHabbo().Id);
             if (@class != null && @class.bool_0)
             {
                 int num = Event.PopWiredInt32();
                 int num2 = Event.PopWiredInt32();
                 if (num != @class.int_3 || num2 != @class.int_4)
                 {
                     if (@class.RoomUser_0 != null)
                     {
                         try
                         {
                             if (@class.RoomUser_0.IsBot)
                             {
                                 @class.Unidle();
                             }
                             @class.RoomUser_0.MoveTo(num, num2);
                             return;
                         }
                         catch
                         {
                             @class.RoomUser_0 = null;
                             @class.class34_1 = null;
                             @class.MoveTo(num, num2);
                             Session.GetHabbo().method_24().method_2(-1, true);
                             return;
                         }
                     }
                     if (@class.TeleportMode)
                     {
                         @class.int_3 = num;
                         @class.int_4 = num2;
                         @class.UpdateNeeded = true;
                     }
                     else
                     {
                         @class.MoveTo(num, num2);
                     }
                 }
             }
         }
     }
 }
开发者ID:GoldTreeTheBest,项目名称:Gold-Tree-Emulator,代码行数:49,代码来源:MoveAvatarMessageEvent.cs

示例7: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && @class.method_26(Session))
     {
         RoomItem class2 = @class.method_28(Event.PopWiredUInt());
         if (class2 != null)
         {
             int num = Event.PopWiredInt32();
             int num2 = Event.PopWiredInt32();
             int num3 = Event.PopWiredInt32();
             Event.PopWiredInt32();
             if (GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "MOVE_ITEM" && (num != class2.Int32_0 || num2 != class2.Int32_1))
             {
                 GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session);
             }
             else
             {
                 if (GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "ROTATE_ITEM" && num3 != class2.int_3)
                 {
                     GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session);
                 }
                 else
                 {
                     if (GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "STACKITEM" && class2.Double_0 > 0.0)
                     {
                         GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session);
                     }
                 }
             }
             bool flag = false;
             string text = class2.GetBaseItem().InteractionType.ToLower();
             if (text != null && text == "teleport")
             {
                 flag = true;
             }
             if (text != null && text == "hopper")
             {
                 flag = true;
             }
             @class.method_79(Session, class2, num, num2, num3, false, false, false);
             if (flag)
             {
                 @class.method_64();
             }
         }
     }
 }
开发者ID:GoldTreeTheBest,项目名称:Gold-Tree-Emulator,代码行数:48,代码来源:MoveObjectMessageEvent.cs

示例8: 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

示例9: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (((Session != null) && (Session.GetHabbo() != null)) && (Session.GetHabbo().CurrentRoom != null))
     {
         Room currentRoom = Session.GetHabbo().CurrentRoom;
         if (currentRoom.CheckRights(Session, true))
         {
             RoomMusicController roomMusicController = currentRoom.GetRoomMusicController();
             if (roomMusicController.PlaylistSize < roomMusicController.PlaylistCapacity)
             {
                 int num = Event.PopWiredInt32();
                 UserItem item = Session.GetHabbo().method_23().method_10((uint)num);
                 if ((item != null) && (item.method_1().InteractionType == "musicdisc"))
                 {
                     SongItem diskItem = new SongItem(item);
                     if (roomMusicController.AddDisk(diskItem) >= 0)
                     {
                         //diskItem.SaveToDatabase((int)currentRoom.Id); // <-- old
                         diskItem.SaveToDatabase((int)roomMusicController.LinkedItemId); // <-- new
                         Session.GetHabbo().method_23().method_12((uint)num, 0u, true);
                         Session.GetHabbo().method_23().method_9(true);
                         Session.SendMessage(JukeboxDiscksComposer.Compose(roomMusicController.PlaylistCapacity, roomMusicController.Playlist.Values.ToList<SongInstance>()));
                     }
                 }
             }
         }
     }
 }
开发者ID:Waguiinhocvp,项目名称:Gold-Tree-Emulator,代码行数:28,代码来源:AddNewJukeboxCD.cs

示例10: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (@class != null && !Session.GetHabbo().list_4.Contains(@class.Id) && [email protected](Session, true))
     {
         switch (Event.PopWiredInt32())
         {
         case -1:
             @class.Score--;
             break;
         case 0:
             return;
         case 1:
             @class.Score++;
             break;
         default:
             return;
         }
         using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
         {
             class2.ExecuteQuery(string.Concat(new object[]
             {
                 "UPDATE rooms SET score = '",
                 @class.Score,
                 "' WHERE Id = '",
                 @class.Id,
                 "' LIMIT 1"
             }));
         }
         Session.GetHabbo().list_4.Add(@class.Id);
         ServerMessage Message = new ServerMessage(345u);
         Message.AppendInt32(@class.Score);
         Session.SendMessage(Message);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:35,代码来源:RateFlatMessageEvent.cs

示例11: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     Room room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
     if (room != null)
     {
         RoomUser roomUserByHabbo = room.GetRoomUserByHabbo(Session.GetHabbo().Id);
         if (roomUserByHabbo != null)
         {
             roomUserByHabbo.Unidle();
             int num = Event.PopWiredInt32();
             if (num < 0 || num > 4 || (!Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") && num > 1))
             {
                 num = 0;
             }
             if (num > 0 && roomUserByHabbo.CarryItemID > 0)
             {
                 roomUserByHabbo.CarryItem(0);
             }
             roomUserByHabbo.DanceId = num;
             ServerMessage serverMessage = new ServerMessage(480u);
             serverMessage.AppendInt32(roomUserByHabbo.VirtualId);
             serverMessage.AppendInt32(num);
             room.SendMessage(serverMessage, null);
             if (Session.GetHabbo().CurrentQuestId > 0 && GoldTree.GetGame().GetQuestManager().GetQuestAction(Session.GetHabbo().CurrentQuestId) == "DANCE")
             {
                 GoldTree.GetGame().GetQuestManager().ProgressUserQuest(Session.GetHabbo().CurrentQuestId, Session);
             }
         }
     }
 }
开发者ID:Waguiinhocvp,项目名称:Gold-Tree-Emulator,代码行数:30,代码来源:DanceMessageEvent.cs

示例12: 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

示例13: 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

示例14: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     if (Session.GetHabbo().HasFuse("acc_supporttool"))
     {
         Event.PopWiredInt32();
         int num = Event.PopWiredInt32();
         string text = Event.PopFixedString();
         string text2 = "";
         if (num.Equals(3))
         {
             text2 += "Room Cautioned.";
         }
         text2 = text2 + " Message: " + text;
         GoldTree.GetGame().GetClientManager().method_31(Session, "ModTool - Room Alert", text2);
         GoldTree.GetGame().GetModerationTool().method_13(Session.GetHabbo().CurrentRoomId, !num.Equals(3), text);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:17,代码来源:ModeratorActionMessageEvent.cs

示例15: Handle

 public void Handle(GameClient Session, ClientMessage Event)
 {
     int int_ = Event.PopWiredInt32();
     uint uint_ = Event.PopWiredUInt();
     string string_ = Event.PopFixedString();
     string string_2 = GoldTree.FilterString(Event.PopFixedString());
     string string_3 = GoldTree.FilterString(Event.PopFixedString());
     GoldTree.GetGame().GetCatalog().method_6(Session, int_, uint_, string_, true, string_2, string_3, true);
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:9,代码来源:PurchaseFromCatalogAsGiftEvent.cs


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