[UBEREMU] Furni moving in roller 80%

Results 1 to 22 of 22
  1. #1
    Account Upgraded | Title Enabled! =dj.matias= is offline
    MemberRank
    Apr 2008 Join Date
    FinlandLocation
    381Posts

    [UBEREMU] Furni moving in roller 80%

    Find:

    Code:
    Messenger.OnStatusChanged(false);
    Add after:

    [code] foreach (RoomItem Itemit in Room.Items)
    {
    if (Itemit.GetBaseItem().InteractionType.ToLower() == "roller")
    {

    try
    {
    Thread Roller = new Thread(delegate() { Room.RollerItemProcess(User, Itemit); });
    Roller.Start();
    Room.HasThread.Add(User.HabboId, Roller);
    }
    catch { }
    }
    Add to Room.cs top

    Code:
    using System.Threading;[/room]
                }
    Add to Room.cs

    Code:
    public void RollerItemProcess(RoomUser User, RoomItem RollerItem)
            {
                Room Room = UberEnvironment.GetGame().GetRoomManager().GetRoom(RoomId);
                for (int i = 0; i < 999999999; i++)
                {
    
                    Thread.Sleep(2000);
    
                    foreach (RoomItem Itemit in Items)
                    {
                        if (Itemit.GetBaseItem().InteractionType.ToLower() != "roller" && Itemit.X == RollerItem.X && Itemit.Y == RollerItem.Y)
                        {
                            int nextx = RollerItem.SquareInFront.x;
                            int nexty = RollerItem.SquareInFront.y;
    
                            ServerMessage Message2 = new ServerMessage(230);
                            Message2.AppendInt32(RollerItem.X);
                            Message2.AppendInt32(RollerItem.Y);
                            Message2.AppendInt32(nextx);
                            Message2.AppendInt32(nexty);
                            Message2.AppendInt32(1);
                            Message2.AppendUInt(Itemit.Id);
                            Message2.AppendString(Itemit.Z.ToString().Replace(",", "."));
                            Message2.AppendString(Convert.ToChar(2).ToString());
                            Message2.AppendString(Itemit.Z.ToString().Replace(",", "."));
                            Message2.AppendString(Convert.ToChar(2).ToString());
    
                            Message2.AppendUInt(Itemit.Id);
                            SendMessage(Message2);
    
                            SetFloorItem(User.GetClient(), Itemit, nextx, nexty, Itemit.Rot, false);
                        }
                    }
    
                    Thread.Sleep(2000);
    
                    if (Room.UserCount == 0)
                    {
                        break;
                    }
                }
            }
    If room hasn't rollers before, you must re-enter room. Items moving roller.

    Edit:

    Not tested code, furni move no re-enter required:

    Add FurniInteractor.cs

    Code:
       class InteractorRoller : FurniInteractor
        { 
            public override void OnPlace(GameClient Session, RoomItem Item)
            {
                Room Room = UberEnvironment.GetGame().GetRoomManager().GetRoom(Item.RoomId);
                RoomUser User = Room.GetRoomUserByHabbo(Session.GetHabbo().Username);
                foreach (RoomItem Itemit in Room.Items)
                {
                    if (Itemit.GetBaseItem().InteractionType.ToLower() == "roller")
                    {
    
                        try
                        {
                            Thread Roller = new Thread(delegate() { Room.RollerItemProcess(User, Itemit); });
                            Roller.Start();
                            Room.HasThread.Add(User.HabboId, Roller);
                        }
                        catch { }
                    }
                }
            }
            public override void OnRemove(GameClient Session, RoomItem Item)
            {
    
            }
            public override void OnTrigger(GameClient Session, RoomItem Item, int Request, bool UserHasRights)
            {
            }
        }
    Find:

    Code:
    case "scoreboard":
    
                            return new InteractorScoreboard();
    Add after:

    Code:
      case "roller":
    
                            return new InteractorRoller();
    Last edited by =dj.matias=; 01-04-11 at 06:02 AM.


  2. #2
    Apprentice apfelman is offline
    MemberRank
    Apr 2009 Join Date
    24Posts

    Re: [UBEREMU] Furni moving in roller 80%

    "Add room.cs" where i have to add it in the room.cs?

  3. #3
    Proficient Member HabsHotel is offline
    MemberRank
    Jan 2011 Join Date
    CanadaLocation
    167Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Quote Originally Posted by apfelman View Post
    "Add room.cs" where i have to add it in the room.cs?
    Anywhere?

  4. #4
    Account Upgraded | Title Enabled! =dj.matias= is offline
    MemberRank
    Apr 2008 Join Date
    FinlandLocation
    381Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Yes, anywhere.

  5. #5
    Proficient Member Alexx. is offline
    MemberRank
    Feb 2011 Join Date
    160Posts

    Re: [UBEREMU] Furni moving in roller 80%

    this is nice try to fix the error i see in the coding :P

  6. #6
    Your Favorite Stalker Arnii is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    579Posts

    Re: [UBEREMU] Furni moving in roller 80%

    nice, many people were looking for this (I guess)

    Grr..
    Arnii

  7. #7
    Account Upgraded | Title Enabled! jasjj is offline
    MemberRank
    Oct 2008 Join Date
    200Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Where can i find this : Messenger.OnStatusChanged(false); ?

  8. #8
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Nice one.

  9. #9
    C# | C++ Emerica is offline
    MemberRank
    Oct 2010 Join Date
    GermanyLocation
    437Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Yeah thanks

  10. #10
    Banned Beny. is offline
    BannedRank
    Aug 2009 Join Date
    536Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Error:

    An object reference is required for the non-static field, method, or property 'Uber.HabboHotel.Rooms.Room.Items'

  11. #11
    Enthusiast Kouille is offline
    MemberRank
    Jun 2010 Join Date
    37Posts

    Re: [UBEREMU] Furni moving in roller 80%

    thanks for the release :)

  12. #12
    Account Upgraded | Title Enabled! taylan is offline
    MemberRank
    Feb 2009 Join Date
    GermanyLocation
    336Posts

    Re: [UBEREMU] Furni moving in roller 80%

    help me pls guys got errors.

    1.error:

    Error Message:
    Code:
    An object reference is required for the non-static field, method, or property...
    If i add at Habbo.cs this word:
    Room.Items
    i have got 2 times this problem ...



    And 2nd Problem
    at FurniInteractor.cs
    Error-Message:
    Code:
    A Typ or Namespace for "Thread" cant find...
    got 2 times this problem....

    Help plsss :(((

  13. #13
    Enthusiast Kouille is offline
    MemberRank
    Jun 2010 Join Date
    37Posts

    Re: [UBEREMU] Furni moving in roller 80%

    You should not add a file named "Roller.cs" in Items??

  14. #14
    Account Upgraded | Title Enabled! taylan is offline
    MemberRank
    Feb 2009 Join Date
    GermanyLocation
    336Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Quote Originally Posted by Kouille View Post
    You should not add a file named "Roller.cs" in Items??
    Ur Right i dont have Roller.cs at the Items folder ...

    Can someone post the source code for roller.cs plsss

  15. #15
    Account Upgraded | Title Enabled! taylan is offline
    MemberRank
    Feb 2009 Join Date
    GermanyLocation
    336Posts

    Re: [UBEREMU] Furni moving in roller 80%

    help me pls guys :(

    need the sourcecode for Roller.cs at HabboHotel->Items
    :(

  16. #16
    Banned Beny. is offline
    BannedRank
    Aug 2009 Join Date
    536Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Same, Anyone got Roller.cs ?

    ---------- Post added at 10:20 PM ---------- Previous post was at 09:07 PM ----------

    anyone ?

  17. #17
    Banned c0mma is offline
    BannedRank
    Jan 2011 Join Date
    ^RaGEZONE^Location
    696Posts

    Re: [UBEREMU] Furni moving in roller 80%

    To whoever coded this:

    My fukkin 60 yr old grandmother can code better than you ;o

    ----
    This don't even work -.-

  18. #18
    Account Upgraded | Title Enabled! FlyCoder is offline
    MemberRank
    Jan 2011 Join Date
    United KingdomLocation
    469Posts

    Re: [UBEREMU] Furni moving in roller 80%

    @iPixelHotel

    Go fuck yourself, you cant code so you have ruin everyone else cuz your a sad motherfucker. Go away learn some maners and then come back.
    Posted via Mobile Device

  19. #19
    Banned c0mma is offline
    BannedRank
    Jan 2011 Join Date
    ^RaGEZONE^Location
    696Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Oh, that's nice, you BLACKMAIL. Look at the way you are talking, I think you need to go wash your mouth with fkin soap until it's clean...

    Anyways, the code don't work at all :o

  20. #20
    HTML,CSS and a bit C# Richardjuhh is offline
    MemberRank
    Dec 2010 Join Date
    NetherlandsLocation
    351Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Quote Originally Posted by iPixelHotel View Post
    To whoever coded this:

    My fukkin 60 yr old grandmother can code better than you ;o

    ----
    This don't even work -.-
    Lol you mean renanemed youre a fucking renamer!!
    You cant code a simple masscredits command fag

    ---------- Post added at 05:17 PM ---------- Previous post was at 05:16 PM ----------

    Quote Originally Posted by iPixelHotel View Post
    Oh, that's nice, you BLACKMAIL. Look at the way you are talking, I think you need to go wash your mouth with fkin soap until it's clean...

    Anyways, the code don't work at all :o
    if you can good code (you cant)
    code this better and do not spam this thread

  21. #21
    Enthusiast emEricaStudio is offline
    MemberRank
    Mar 2011 Join Date
    30Posts

    Re: [UBEREMU] Furni moving in roller 80%

    lawl.... This code DOSN`T WORK AT ALL!

  22. #22
    Proficient Member klaudio007 is offline
    MemberRank
    Dec 2007 Join Date
    ChileLocation
    190Posts

    Re: [UBEREMU] Furni moving in roller 80%

    Quote Originally Posted by emEricaStudio View Post
    lawl.... This code DOSN`T WORK AT ALL!
    but is nice! i love rollers! <3



Advertisement