UberEmu - PuzzleBox!

Page 1 of 3 123 LastLast
Results 1 to 15 of 37
  1. #1
    League of Legends <3 toperwin is offline
    MemberRank
    Jan 2009 Join Date
    313Posts

    UberEmu - PuzzleBox!

    Don't look at it if you are new with uberemu/uberdb!

    In /HabboHotel/Items/RoomItem.cs search for:
    PHP Code:
                        case "scoreboard":

                            return new 
    InteractorScoreboard(); 
    After add:
    PHP Code:
                        case "puzzlebox":

                            return new 
    InteractorPuzzleBox(); 
    In /HabboHotel/Items/FurniInteractor.cs search for:
    PHP Code:
    using Uber.HabboHotel.Rooms
    After add:
    PHP Code:
    using Uber.Messages
    Search for:
    PHP Code:
    class InteractorScoreboard FurniInteractor 
    Before add:
    PHP Code:
        class InteractorPuzzleBox FurniInteractor
        
    {
            public 
    override void OnPlace(GameClient SessionRoomItem Item) { }
            public 
    override void OnRemove(GameClient SessionRoomItem Item) { }

            public 
    override void OnTrigger(GameClient SessionRoomItem Itemint Requestbool UserHasRights)
            {
                
    RoomUser User Item.GetRoom().GetRoomUserByHabbo(Session.GetHabbo().Id);

                
    Coord ItemCoordx1 = new Coord(Item.Coordinate.1Item.Coordinate.y);
                
    Coord ItemCoordx2 = new Coord(Item.Coordinate.1Item.Coordinate.y);
                
    Coord ItemCoordy1 = new Coord(Item.Coordinate.xItem.Coordinate.1);
                
    Coord ItemCoordy2 = new Coord(Item.Coordinate.xItem.Coordinate.1);

                if (
    User == null)
                {
                    return;
                }

                if (
    User.Coordinate != ItemCoordx1 && User.Coordinate != ItemCoordx2 && User.Coordinate != ItemCoordy1 && User.Coordinate != ItemCoordy2)
                {
                    if (
    User.CanWalk)
                    {
                        
    User.MoveTo(Item.SquareInFront);
                        return;
                    }
                }
                else
                {
                    
    int NewX Item.Coordinate.x;
                    
    int NewY Item.Coordinate.y;

                    if (
    User.Coordinate == ItemCoordx1)
                    {
                        
    NewX Item.Coordinate.1;
                        
    NewY Item.Coordinate.y;
                    }
                    else if (
    User.Coordinate == ItemCoordx2)
                    {
                        
    NewX Item.Coordinate.1;
                        
    NewY Item.Coordinate.y;
                    }
                    else if (
    User.Coordinate == ItemCoordy1)
                    {
                        
    NewX Item.Coordinate.x;
                        
    NewY Item.Coordinate.1;
                    }
                    else if (
    User.Coordinate == ItemCoordy2)
                    {
                        
    NewX Item.Coordinate.x;
                        
    NewY Item.Coordinate.1;
                    }

                    if (
    Item.GetRoom().ValidTile(NewXNewY))
                    {
                        
    Double NewZ Item.GetRoom().SqAbsoluteHeight(NewXNewY);

                        
    ServerMessage Message = new ServerMessage(230);
                        
    Message.AppendInt32(Item.Coordinate.x);
                        
    Message.AppendInt32(Item.Coordinate.y);
                        
    Message.AppendInt32(NewX);
                        
    Message.AppendInt32(NewY);
                        
    Message.AppendInt32(1);
                        
    Message.AppendUInt(Item.Id);
                        
    Message.AppendByte(2);
                        
    Message.AppendStringWithBreak(NewZ.ToString());
                        
    Message.AppendString("M");
                        
    Item.GetRoom().SendMessage(Message);

                        
    Item.GetRoom().SetFloorItem(User.GetClient(), ItemNewXNewYItem.Rotfalse);
                    }
                }
            }
        } 
    Now add into the sql a new 'interaction_type' called: puzzlebox
    And add the furniture:
    PHP Code:
    INSERT INTO `furniture` (`id`, `public_name`, `item_name`, `type`, `width`, `length`, `stack_height`, `can_stack`, `can_sit`, `is_walkable`, `sprite_id`, `allow_recycle`, `allow_trade`, `allow_marketplace_sell`, `allow_gift`, `allow_inventory_stack`, `interaction_type`, `interaction_modes_count`, `vending_ids`, `foot_figure`) VALUES 
    (79357958'Puzzle Box''wf_box''s'111'1''0''0'3853'1''1''1''1''1''puzzlebox'1'0'''); 
    Last thing todo is just add the furniture to a catalog_item and after to catalog_page,.. and done ;D

    Images/SWF:
    http://forum.ragezone.com/f353/puzzl...s-swfs-734053/

    Screenshot:


    Video:
    YouTube - UberEmu - PuzzleBox!

    Credits:
    TopErwin - Making this whole code ;d
    Last edited by toperwin; 09-03-11 at 04:53 PM.


  2. #2
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: UberEmu - PuzzleBox!

    Thanks!

  3. #3
    Account Upgraded | Title Enabled! LucasReis is offline
    MemberRank
    Jun 2009 Join Date
    Sorocaba, BraziLocation
    206Posts

    Re: UberEmu - PuzzleBox!

    Nice and thanks !

  4. #4
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: UberEmu - PuzzleBox!

    I don't get it?
    What does this do?
    Giving the Puzzlebox a new rotation or something?
    Please show it in a video :P

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

    Re: UberEmu - PuzzleBox!

    You have to like connect all the boxes, like a puzzle, no?

  6. #6
    League of Legends <3 toperwin is offline
    MemberRank
    Jan 2009 Join Date
    313Posts

    Re: UberEmu - PuzzleBox!

    It works easy,
    Just like read habbo,..
    Walk to a box, double click on it, and it moves :D
    (For people who doesn't check habbo updates, PuzzleBoxes is a new wired update, maybe i will code the PuzzleTile later)

    I have uploaded a video:
    YouTube - UberEmu - PuzzleBox!

  7. #7
    Account Upgraded | Title Enabled! simoneihg is offline
    MemberRank
    Dec 2010 Join Date
    PalermoLocation
    243Posts

    Re: UberEmu - PuzzleBox!

    Thanks for the fix :P

  8. #8
    Account Upgraded | Title Enabled! Muscab is offline
    MemberRank
    Oct 2009 Join Date
    264Posts

    Re: UberEmu - PuzzleBox!

    Thanks :P

  9. #9
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: UberEmu - PuzzleBox!

    Omgosh, NICE!!! :D

  10. #10
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: UberEmu - PuzzleBox!

    Quote Originally Posted by PEjump2 View Post
    Omgosh, NICE!!! :D
    WOOT, first good post from Pejump2 ITS A MIRACLE!

  11. #11
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: UberEmu - PuzzleBox!

    Quote Originally Posted by davidaap View Post
    WOOT, first good post from Pejump2 ITS A MIRACLE!
    Nah you'r wrong, one month ago or something like that, Donkjam discovered the first nice post from me :D

  12. #12
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: UberEmu - PuzzleBox!

    Quote Originally Posted by PEjump2 View Post
    Nah you'r wrong, one month ago or something Donkjam discovered the first nice post from me :D
    ok second post :P

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

    Re: UberEmu - PuzzleBox!

    Stop spamming nao.

    Nice release once again.

  14. #14
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: UberEmu - PuzzleBox!

    Quote Originally Posted by PowahAlert View Post
    Stop spamming nao.

    Nice release once again.
    Don't stop me to spam bro, or you'll get double spammed :3

  15. #15
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: UberEmu - PuzzleBox!

    Quote Originally Posted by PEjump2 View Post
    Don't stop me to spam bro, or you'll get double spammed :3
    lolled



Page 1 of 3 123 LastLast

Advertisement