public MoveToDir(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); Delay = 0; }
public UserIsNotWearingEffect(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); OtherString = "0"; }
public UserHasFurni(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); OtherString = string.Empty; }
/// <summary> /// Delivers the random pinata item. /// </summary> /// <param name="user">The user.</param> /// <param name="room">The room.</param> /// <param name="item">The item.</param> internal void DeliverRandomPinataItem(RoomUser user, Room room, RoomItem item) { if (room == null || item == null || item.GetBaseItem().InteractionType != Interaction.Pinata || !Pinatas.ContainsKey(item.GetBaseItem().ItemId)) return; PinataItem pinataItem; Pinatas.TryGetValue(item.GetBaseItem().ItemId, out pinataItem); if (pinataItem == null || pinataItem.Rewards.Count < 1) return; item.RefreshItem(); //@TODO :: KESSILER, now PINATA DOESNT WORK. MUST CREATE SOLUTION LATER. //item.BaseName = pinataItem.Rewards[new Random().Next((pinataItem.Rewards.Count - 1))]; item.ExtraData = string.Empty; room.GetRoomItemHandler().RemoveFurniture(user.GetClient(), item.Id, false); using (IQueryAdapter queryReactor = Yupi.GetDatabaseManager().GetQueryReactor()) queryReactor.RunFastQuery( $"UPDATE items_rooms SET item_name='{item.BaseName}', extra_data='' WHERE id='{item.Id}'"); if (!room.GetRoomItemHandler().SetFloorItem(user.GetClient(), item, item.X, item.Y, 0, true, false, true)) user.GetClient().GetHabbo().GetInventoryComponent().AddItem(item); }
public WalksOffFurni(RoomItem item, Room room) { Item = item; Room = room; ToWork = new Queue(); Items = new List<RoomItem>(); }
public HowManyUsers(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); OtherString = string.Empty; }
public SaysKeyword(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherBool = false; }
public DateRangeActive(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); OtherString = string.Empty; }
public UserIsWearingBadge(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); OtherString = string.Empty; }
public Chase(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); Delay = 0; }
public ResetTimers(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public BotTalkToAvatar(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public ToggleFurniState(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); Delay = 0; _mNext = 0L; }
public FurniStateToggled(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); Delay = 0; _mUsers = new List<RoomUser>(); }
public BotGiveHanditem(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public BotClothes(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public Collision(RoomItem item, WiredHandler handler, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherBool = false; _handler = handler; }
public LeaveTeam(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public Template(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public GiveScore(RoomItem item, Room room) { Item = item; Room = room; OtherString = "10,1"; OtherExtraString = "0"; OtherExtraString2 = string.Empty; }
public MuteUser(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; Delay = 0; }
public GiveReward(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; _mBanned = new List<Interaction>(); }
public ItemsNotCoincide(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public BotTeleport(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public LongRepeater(RoomItem item, Room room) { Item = item; Room = room; Delay = 10000; Room.GetWiredHandler().EnqueueCycle(this); if (_mNext == 0L || _mNext < Yupi.Now()) _mNext = Yupi.Now() + Delay; }
public ScoreAchieved(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; Delay = 0; OtherBool = true; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public MoveRotateFurni(RoomItem item, Room room) { Item = item; Room = room; Items = new List<RoomItem>(); Delay = 0; _rot = 0; _dir = 0; _cycles = 0; }
public TemplateTrigger(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; Delay = 0; OtherBool = true; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; }
public ResetPosition(RoomItem item, Room room) { Item = item; Room = room; OtherString = string.Empty; OtherExtraString = string.Empty; OtherExtraString2 = string.Empty; Delay = 0; Items = new List<RoomItem>(); _mBanned = new List<Interaction>(); }
/// <summary> /// Determines whether [is tele linked] [the specified tele identifier]. /// </summary> /// <param name="teleId">The tele identifier.</param> /// <param name="pRoom">The p room.</param> /// <returns><c>true</c> if [is tele linked] [the specified tele identifier]; otherwise, <c>false</c>.</returns> internal static bool IsTeleLinked(uint teleId, Room pRoom) { uint linkedTele = GetLinkedTele(teleId, pRoom); if (linkedTele == 0u) return false; RoomItem item = pRoom.GetRoomItemHandler().GetItem(linkedTele); return (item != null && (item.GetBaseItem().InteractionType == Interaction.Teleport || item.GetBaseItem().InteractionType == Interaction.QuickTeleport)) || GetTeleRoomId(linkedTele, pRoom) != 0u; }