Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Plus.HabboHotel.GameClients;
- namespace Plus.HabboHotel.Items.Interactor
- {
- public class InteractorHabboWheel : IFurniInteractor
- {
- public void OnPlace(GameClient Session, Item Item)
- {
- Item.ExtraData = "-1";
- Item.RequestUpdate(10, true);
- }
- public void OnRemove(GameClient Session, Item Item)
- {
- Item.ExtraData = "-1";
- }
- public void OnTrigger(GameClient Session, Item Item, int Request, bool HasRights)
- {
- if (!HasRights)
- {
- return;
- }
- if (Item.ExtraData != "-1")
- {
- Item.ExtraData = "-1";
- Item.UpdateState();
- Item.RequestUpdate(10, true);
- }
- }
- public void OnWiredTrigger(Item Item)
- {
- if (Item.ExtraData != "-1")
- {
- Item.ExtraData = "-1";
- Item.UpdateState();
- Item.RequestUpdate(10, true);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement