UberEmu Rollers 100%

Page 1 of 2 12 LastLast
Results 1 to 25 of 41
  1. #1
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    UberEmu Rollers 100%

    put this in your room.cs

    Code:
            public void RollerProcess(RoomItem Item, RoomUser User)
            {
                try
                {
                    Thread.Sleep(2000);
                    int nextx = Item.SquareInFront.x;
                    int nexty = Item.SquareInFront.y;
                    double Zro;
    
                    if (ValidTile(nextx, nexty))
                    {
                        Zro = GetRollerCoord(nextx, nexty);
    
                        /*HasRolling.Add(User.HabboId);
                        User.SetRot(Item.Rot);
                        User.MoveTo(nextx, nexty);
                        User.Z = Zro;*/
                        
                        ServerMessage mMessage = new ServerMessage(230);
                        mMessage.AppendInt32(User.X);
                        mMessage.AppendInt32(User.Y);
                        mMessage.AppendInt32(nextx);
                        mMessage.AppendInt32(nexty);
                        mMessage.AppendInt32(0);
                        mMessage.AppendUInt(Item.Id);
                        mMessage.AppendInt32(2);
                        mMessage.AppendInt32(User.VirtualId);
                        mMessage.AppendStringWithBreak(User.Z.ToString().Replace(',', '.'));
    
                        mMessage.AppendStringWithBreak(Zro.ToString().Replace(',', '.'));
    
    
                        Pathfinder Pathfinder = new Pathfinder(this, User);
    
                        User.GoalX = nextx;
                        User.GoalY = nexty;
                        User.Z = Zro;
    
                        User.Path.Clear();
                        User.Path = Pathfinder.FindPath();
    
                        if (User.Path.Count > 1)
                        {
                            User.PathStep = 1;
                            User.IsWalking = true;
                            User.PathRecalcNeeded = false;
                        }
                        else
                        {
                            User.PathRecalcNeeded = false;
                            User.Path.Clear();
                        }
    
                        int k = (User.Path.Count - User.PathStep) - 1;
                        Coord NextStep = User.Path[k];
                        User.PathStep++;
                        User.RemoveStatus("mv");
                        User.SetStep = true;
                        User.SetX = nextx;
                        User.SetY = nexty;
                        User.SetZ = Zro;
    
                        SendMessage(mMessage);
                    }
                }
                catch { }
            }
    
            public double GetRollerCoord(int nextx, int nexty)
            {
                using (TimedLock.Lock(this.Items))
                {
                    foreach (RoomItem I in Items)
                    {
                        if (I.X == nextx && I.Y == nexty)
                        {
                            return I.TotalHeight;
                        }
                    }
                }
    
                return 0;
            }
    works 100%

    credits to me


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

    Re: UberEmu Rollers 100%

    Nice coding looks a little sloppy though..!

  3. #3
    Infraction Banned HabMoon is offline
    MemberRank
    Jun 2007 Join Date
    HM OfficesLocation
    3,068Posts

    Re: UberEmu Rollers 100%

    Is this fully the rolling part and not the 'walking off' part?

  4. #4
    8-bit Bitch Slapper Alpha Ducky is offline
    MemberRank
    Mar 2007 Join Date
    In My HouseLocation
    2,436Posts

    Re: UberEmu Rollers 100%

    here is the catalog icon for it ;)

    http://images.habbo.com/c_images/catalogue/icon_96.png

  5. #5
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: UberEmu Rollers 100%

    with slide effect

  6. #6
    Infraction Banned UberInsane is offline
    MemberRank
    Oct 2010 Join Date
    Under your bedLocation
    186Posts

    Re: UberEmu Rollers 100%

    love it, thanks!

  7. #7
    Banned Someuser is offline
    BannedRank
    Aug 2010 Join Date
    466Posts

    Re: UberEmu Rollers 100%

    It ain't 100% with this code yet, this wont move furniture etc..

  8. #8
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: UberEmu Rollers 100%

    iknow

  9. #9
    Infraction Banned UberInsane is offline
    MemberRank
    Oct 2010 Join Date
    Under your bedLocation
    186Posts

    Re: UberEmu Rollers 100%

    Stop complaining, This is awesome!

  10. #10
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts
    Quote Originally Posted by UberInsane View Post
    Stop complaining, This is awesome!
    awsome? only if it slides?

  11. #11
    Infraction Banned UberInsane is offline
    MemberRank
    Oct 2010 Join Date
    Under your bedLocation
    186Posts

    Re: UberEmu Rollers 100%

    Take the damn compliment ;P

  12. #12
    sexiess is a sin. Subway is offline
    MemberRank
    Jun 2010 Join Date
    2,491Posts

    Re: UberEmu Rollers 100%

    if furni can't move on it, it's not 100%

  13. #13
    Member lars1080 is offline
    MemberRank
    Apr 2010 Join Date
    99Posts

    Re: UberEmu Rollers 100%

    Indeed.
    How can i make furni move on a rollers Please help me

    Or add me @ msn : Larsvangaever@hotmail.com

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

    Re: UberEmu Rollers 100%

    sweet.

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

    Re: UberEmu Rollers 100%

    Oh I love it ;)

  16. #16
    Proud to be Persian DarkBreakX is offline
    MemberRank
    Apr 2009 Join Date
    GermanyLocation
    364Posts

    Re: UberEmu Rollers 100%

    Were there not a Fix for Roller on Furni??? I think so..

    -Slaxxer

  17. #17
    Valued Member jordyhouben is offline
    MemberRank
    Aug 2009 Join Date
    EuropaLocation
    111Posts

    Re: UberEmu Rollers 100%

    :D Love it! Ur realy good!

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

    Re: UberEmu Rollers 100%

    Youre BACK!! NICE release I LOVE IT

  19. #19
    V.I.P Member Beny. is offline
    MemberRank
    Aug 2009 Join Date
    536Posts

    Re: UberEmu Rollers 100%

    Dont you just change everything that has "User" with "RoomItem" ???

  20. #20
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: UberEmu Rollers 100%

    No, you like it to rol a room item? pff.

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

    Re: UberEmu Rollers 100%

    thanks

  22. #22
    Proficient Member </Meap> is offline
    MemberRank
    Jul 2010 Join Date
    159Posts

    Re: UberEmu Rollers 100%

    thanks wichard :0

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

    Re: UberEmu Rollers 100%

    I've coded roller move item 80%.

  24. #24
    Account Upgraded | Title Enabled! MikeDavies is offline
    MemberRank
    Aug 2010 Join Date
    WalesLocation
    629Posts

    Re: UberEmu Rollers 100%

    Quote Originally Posted by =dj.matias= View Post
    I've coded roller move item 80%.
    Release it?

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

    Re: UberEmu Rollers 100%

    80%: Item moving on furni. Sometimes fast.
    20%: Roller not move furni sometime.



Page 1 of 2 12 LastLast

Advertisement