Advertisement
TemplatesDoVitinho

Untitled

Aug 19th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.08 KB | None | 0 0
  1. using Plus.HabboHotel.GameClients;
  2.  
  3. namespace Plus.HabboHotel.Items.Interactor
  4. {
  5.     public class InteractorHabboWheel : IFurniInteractor
  6.     {
  7.         public void OnPlace(GameClient Session, Item Item)
  8.         {
  9.             Item.ExtraData = "-1";
  10.             Item.RequestUpdate(10, true);
  11.         }
  12.  
  13.         public void OnRemove(GameClient Session, Item Item)
  14.         {
  15.             Item.ExtraData = "-1";
  16.         }
  17.  
  18.         public void OnTrigger(GameClient Session, Item Item, int Request, bool HasRights)
  19.         {
  20.             if (!HasRights)
  21.             {
  22.                 return;
  23.             }
  24.  
  25.             if (Item.ExtraData != "-1")
  26.             {
  27.                 Item.ExtraData = "-1";
  28.                 Item.UpdateState();
  29.                 Item.RequestUpdate(10, true);
  30.             }
  31.         }
  32.  
  33.         public void OnWiredTrigger(Item Item)
  34.         {
  35.             if (Item.ExtraData != "-1")
  36.             {
  37.                 Item.ExtraData = "-1";
  38.                 Item.UpdateState();
  39.                 Item.RequestUpdate(10, true);
  40.             }
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement