本文整理汇总了C#中Phoenix.Messages.ClientMessage.PopWiredInt32方法的典型用法代码示例。如果您正苦于以下问题:C# ClientMessage.PopWiredInt32方法的具体用法?C# ClientMessage.PopWiredInt32怎么用?C# ClientMessage.PopWiredInt32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Phoenix.Messages.ClientMessage
的用法示例。
在下文中一共展示了ClientMessage.PopWiredInt32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: parse
public void parse(GameClient Session, ClientMessage Event)
{
Room @class = PhoenixEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (@class != null && (@class.AllowPet || @class.CheckRights(Session, true)))
{
uint uint_ = Event.PopWiredUInt();
Pet class2 = Session.GetHabbo().GetInventoryComponent().GetPet(uint_);
if (class2 != null && !class2.PlacedInRoom)
{
int num = Event.PopWiredInt32();
int num2 = Event.PopWiredInt32();
if (@class.CanWalk(num, num2, 0.0, true, false))
{
if (@class.Int32_2 >= GlobalClass.MaxPetsPerRoom)
{
Session.SendNotif(TextManager.GetText("error_maxpets") + GlobalClass.MaxPetsPerRoom);
}
else
{
class2.PlacedInRoom = true;
class2.RoomId = @class.RoomId;
List<RandomSpeech> list = new List<RandomSpeech>();
List<BotResponse> list2 = new List<BotResponse>();
@class.method_4(new RoomBot(class2.PetId, class2.RoomId, AIType.Pet, "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().GetInventoryComponent().MovePetToRoom(class2.PetId, @class.RoomId);
}
}
}
}
}
}
示例2: parse
public void parse(GameClient Session, ClientMessage Event)
{
int num = Event.PopWiredInt32();
ServerMessage Message = new ServerMessage(300);
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);
}
示例3: parse
public void parse(GameClient Session, ClientMessage Event)
{
int MinCost = Event.PopWiredInt32();
int MaxCost = Event.PopWiredInt32();
string SearchQuery = Event.PopFixedString();
int FilterMode = Event.PopWiredInt32();
Session.SendMessage(PhoenixEnvironment.GetGame().GetCatalog().GetMarketplace().SerializeOffersNew(MinCost, MaxCost, SearchQuery, FilterMode));
}
示例4: parse
public void parse(GameClient Session, ClientMessage Event)
{
if (Session.GetHabbo().HasRole("acc_supporttool"))
{
int Result = Event.PopWiredInt32();
Event.PopWiredInt32();
uint TicketId = Event.PopWiredUInt();
PhoenixEnvironment.GetGame().GetModerationTool().CloseTicket(Session, TicketId, Result);
}
}
示例5: parse
public void parse(GameClient Session, ClientMessage Event)
{
Event.PopWiredInt32();
uint num = Event.PopWiredUInt();
Event.PopWiredInt32();
if (PhoenixEnvironment.GetConfig().data["emu.messages.roommgr"] == "1")
{
Logging.WriteLine("[RoomMgr] Requesting Public Room [ID: " + num + "]");
}
RoomData @class = PhoenixEnvironment.GetGame().GetRoomManager().GenerateRoomData(num);
if (@class != null && !(@class.Type != "public"))
{
Session.GetMessageHandler().PrepareRoomForUser(num, "");
}
}
示例6: parse
public void parse(GameClient Session, ClientMessage Event)
{
uint Id = Event.PopWiredUInt();
Event.PopFixedString();
Event.PopWiredInt32();
RoomData Data = PhoenixEnvironment.GetGame().GetRoomManager().GenerateRoomData(Id);
if (Data != null)
{
if (Data.Type == "private")
{
ServerMessage Message = new ServerMessage(286);
Message.AppendBoolean(Data.IsPublicRoom);
Message.AppendUInt(Id);
Session.SendMessage(Message);
}
else
{
ServerMessage Message2 = new ServerMessage(453);
Message2.AppendUInt(Data.Id);
Message2.AppendStringWithBreak(Data.CCTs);
Message2.AppendUInt(Data.Id);
Session.SendMessage(Message2);
}
}
}
示例7: parse
public void parse(GameClient Session, ClientMessage Event)
{
Room room = PhoenixEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
RoomUser roomUserByHabbo = room.GetRoomUserByHabbo(Session.GetHabbo().Id);
roomUserByHabbo.Unidle();
int i = Event.PopWiredInt32();
if (i < 0 || i > 4 || (!Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") && i > 1))
{
i = 0;
}
if (i > 0 && roomUserByHabbo.CarryItemID > 0)
{
roomUserByHabbo.CarryItem(0);
}
roomUserByHabbo.DanceId = i;
ServerMessage Message = new ServerMessage(480);
Message.AppendInt32(roomUserByHabbo.VirtualId);
Message.AppendInt32(i);
room.SendMessage(Message, null);
if (Session.GetHabbo().CurrentQuestId == 6)
{
PhoenixEnvironment.GetGame().GetQuestManager().ProgressUserQuest(6, Session);
}
}
示例8: parse
public void parse(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().GetInventoryComponent().GetItem((uint)num);
if ((item != null) && (item.GetBaseItem().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().GetInventoryComponent().RemoveItem((uint)num, 0, true);
Session.GetHabbo().GetInventoryComponent().UpdateItems(true);
Session.SendMessage(JukeboxDiscksComposer.Compose(roomMusicController.PlaylistCapacity, roomMusicController.Playlist.Values.ToList<SongInstance>()));
}
}
}
}
}
}
示例9: parse
public void parse(GameClient Session, ClientMessage Event)
{
try
{
Room room = PhoenixEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
uint uint_ = Event.PopWiredUInt();
RoomItem item = room.GetItem(uint_);
string text = item.GetBaseItem().InteractionType.ToLower();
if (text != null && (text == "wf_cnd_trggrer_on_frn" || text == "wf_cnd_furnis_hv_avtrs" || text == "wf_cnd_has_furni_on"))
{
Event.PopWiredBoolean();
Event.PopFixedString();
item.Extra1 = Event.ToString().Substring(Event.Length - (Event.RemainingLength - 2));
item.Extra1 = item.Extra1.Substring(0, item.Extra1.Length - 1);
Event.ResetPointer();
item = room.GetItem(Event.PopWiredUInt());
Event.PopWiredBoolean();
Event.PopFixedString();
int num = Event.PopWiredInt32();
item.Extra2 = "";
for (int i = 0; i < num; i++)
{
item.Extra2 = item.Extra2 + "," + Convert.ToString(Event.PopWiredUInt());
}
if (item.Extra2.Length > 0)
{
item.Extra2 = item.Extra2.Substring(1);
}
}
}
catch
{
}
}
示例10: parse
public void parse(GameClient Session, ClientMessage Event)
{
if (Session.GetHabbo().HasRole("acc_supporttool"))
{
Event.PopWiredInt32();
int num = Event.PopWiredInt32();
string Msg = Event.PopFixedString();
string text2 = "";
if (num.Equals(3))
{
text2 += "Room Cautioned.";
}
text2 = text2 + " Message: " + Msg;
PhoenixEnvironment.GetGame().GetClientManager().RecordCmdLogs(Session, "ModTool - Room Alert", text2);
PhoenixEnvironment.GetGame().GetModerationTool().method_13(Session.GetHabbo().CurrentRoomId, !num.Equals(3), Msg);
}
}
示例11: parse
public void parse(GameClient Session, ClientMessage Event)
{
Room Room = Session.GetHabbo().CurrentRoom;
if (Room != null)
{
RoomUser @class = Room.GetRoomUserByHabbo(Session.GetHabbo().Id);
if (@class != null && @class.CanWalk)
{
int num = Event.PopWiredInt32();
int num2 = Event.PopWiredInt32();
if (num != @class.X || num2 != @class.Y)
{
if (@class.Target != null)
{
try
{
if (@class.Target.IsBot)
{
@class.Unidle();
}
@class.Target.MoveTo(num, num2);
return;
}
catch
{
@class.Target = null;
@class.Riding = null;
@class.MoveTo(num, num2);
Session.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyEffect(-1, true);
return;
}
}
if (@class.TeleportMode)
{
@class.X = num;
@class.Y = num2;
@class.UpdateNeeded = true;
}
else
{
@class.MoveTo(num, num2);
}
}
}
}
}
示例12: parse
public void parse(GameClient Session, ClientMessage Event)
{
int PageId = Event.PopWiredInt32();
uint ItemId = Event.PopWiredUInt();
string ExtraData = Event.PopFixedString();
string GiftUser = PhoenixEnvironment.FilterInjectionChars(Event.PopFixedString());
string GiftMessage = PhoenixEnvironment.FilterInjectionChars(Event.PopFixedString());
PhoenixEnvironment.GetGame().GetCatalog().HandlePurchase(Session, PageId, ItemId, ExtraData, true, GiftUser, GiftMessage, true);
}
示例13: parse
public void parse(GameClient Session, ClientMessage Event)
{
Room @class = PhoenixEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (@class != null && @class.CheckRights(Session))
{
RoomItem class2 = @class.GetItem(Event.PopWiredUInt());
if (class2 != null)
{
int num = Event.PopWiredInt32();
int num2 = Event.PopWiredInt32();
int num3 = Event.PopWiredInt32();
Event.PopWiredInt32();
if (Session.GetHabbo().CurrentQuestId == 1u && (num != class2.GetX || num2 != class2.GetY))
{
PhoenixEnvironment.GetGame().GetQuestManager().ProgressUserQuest(1u, Session);
}
else
{
if (Session.GetHabbo().CurrentQuestId == 7u && num3 != class2.Rot)
{
PhoenixEnvironment.GetGame().GetQuestManager().ProgressUserQuest(7u, Session);
}
else
{
if (Session.GetHabbo().CurrentQuestId == 9u && class2.GetZ >= 0.1)
{
PhoenixEnvironment.GetGame().GetQuestManager().ProgressUserQuest(9u, Session);
}
}
}
bool flag = false;
string text = class2.GetBaseItem().InteractionType.ToLower();
if (text != null && text == "teleport")
{
flag = true;
}
@class.method_79(Session, class2, num, num2, num3, false, false, false);
if (flag)
{
@class.method_64();
}
}
}
}
示例14: parse
public void parse(GameClient Session, ClientMessage Event)
{
Session.GetHabbo().GetBadgeComponent().ResetSlots();
using (DatabaseClient adapter = PhoenixEnvironment.GetDatabase().GetClient())
{
adapter.ExecuteQuery("UPDATE user_badges SET badge_slot = '0' WHERE user_id = '" + Session.GetHabbo().Id + "'");
goto IL_131;
}
IL_52:
int num = Event.PopWiredInt32();
string text = Event.PopFixedString();
if (text.Length != 0)
{
if (!Session.GetHabbo().GetBadgeComponent().HasBadge(text) || num < 1 || num > 5)
{
return;
}
if (Session.GetHabbo().CurrentQuestId == 16u)
{
PhoenixEnvironment.GetGame().GetQuestManager().ProgressUserQuest(16u, Session);
}
Session.GetHabbo().GetBadgeComponent().GetBadge(text).Slot = num;
using (DatabaseClient @class = PhoenixEnvironment.GetDatabase().GetClient())
{
@class.AddParamWithValue("slotid", num);
@class.AddParamWithValue("badge", text);
@class.AddParamWithValue("userid", Session.GetHabbo().Id);
@class.ExecuteQuery("UPDATE user_badges SET badge_slot = @slotid WHERE badge_id = @badge AND user_id = @userid LIMIT 1");
}
}
IL_131:
if (Event.RemainingLength > 0)
{
goto IL_52;
}
ServerMessage Message = new ServerMessage(228u);
Message.AppendUInt(Session.GetHabbo().Id);
Message.AppendInt32(Session.GetHabbo().GetBadgeComponent().EquippedCount);
foreach (Badge current in Session.GetHabbo().GetBadgeComponent().BadgeList)
{
if (current.Slot > 0)
{
Message.AppendInt32(current.Slot);
Message.AppendStringWithBreak(current.Code);
}
}
if (Session.GetHabbo().InRoom && PhoenixEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId) != null)
{
PhoenixEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId).SendMessage(Message, null);
}
else
{
Session.SendMessage(Message);
}
}
示例15: parse
public void parse(GameClient Session, ClientMessage Event)
{
uint num = Event.PopWiredUInt();
string string_ = Event.PopFixedString();
Event.PopWiredInt32();
if (PhoenixEnvironment.GetConfig().data["emu.messages.roommgr"] == "1")
{
Logging.WriteLine("[RoomMgr] Requesting Private Room [ID: " + num + "]");
}
Session.GetMessageHandler().PrepareRoomForUser(num, string_);
}