1. Tired of not being able to see links? Want to chat with other members? Need help?

PlusEMU Support thread.

Discussion in 'Habbo Help & Support' started by Sledmore, Apr 24, 2016.

  1. Blasteh

    Blasteh hablix.org

    Hello,
    I'm trying to create a "VIP Shop" tab within the hotel. I have an updated Production from October that I am using. My problem is, I cannot make min_vip higher than the root category.

    So if VIP Shop is min_vip = 3, then only subscription 3 can view it.
    But, all VIP ranks have to be able to view this tab, so I set it at 1.

    When it's at 1, it works. Now, sub-category wise, I have Bronze (1), Silver (2), Gold (3).
    Whenever I set them to their min_vip values, the catalog does not load. I don't want to create 3 seperate headers for the catalog, anyone have a fix?
    [​IMG]
    When you're VIP rank 3, you can view the catalog fine.
     
    Sentinel likes this.
  2. Sentinel

    Sentinel h4x0r

    Top Poster Of Month

    Can you post column data for the following 4?
     
  3. Jerry_

    Jerry_ http://holorp.com :)

    You need to enable the php_sockets.dll extension in PHP Manager via IIS.
    [​IMG]
     
  4. Sentinel

    Sentinel h4x0r

    Top Poster Of Month

    I've already enabled php_sockets.dll and there's no errors shown when running the socket.

    Sent from my SM-G928F using Tapatalk
     
  5. Blasteh

    Blasteh hablix.org

    What?
     
  6. JMG

    JMG wut wut Staff Member

    I need some help regarding the navigator categories.
    [​IMG]
    How would I go about adding more sections? Rather than just having Public rooms, then how would I add a room to the category? In the database I can only see navigator_publics
     
  7. Meap

    Meap Don't need glasses if you C#

    if thats from rise I think they recoded that section, I just had a look and either im stupid or it wont work, I tried setting stuff to featured and whatnot to no avail, maybe @Damien can be of assistance the nerd
     
    JMG likes this.
  8. Cloby25

    Cloby25 New Member

    I have an issue with group badges, does anyone know the fix?!?

    Pics related.
     

    Attached Files:

    • 04.PNG
      04.PNG
      File size:
      62.8 KB
      Views:
      9
    • 01.PNG
      01.PNG
      File size:
      27.4 KB
      Views:
      8
  9. Sentinel

    Sentinel h4x0r

    Top Poster Of Month

    Wrong variables. Make sure the group badges variables points to the url where the badge is generated.

    Sent from my SM-G928F using Tapatalk
     
  10. Damiens

    Damiens Don't need glasses if you can C#

    Adding them is pretty simple. In navigator_categories set the category to "official_view" and the category type to "featured". Problem is since navigator_public's affects all rooms in the public category, you'll need to do a bit of re-coding to get them to have their own rooms. Lucky for you I've already done this.

    Firstly replace FeaturedRoom.cs with this:
    Code:
    using System;
    
    namespace Plus.HabboHotel.Navigator
    {
        public class FeaturedRoom
        {
            public int RoomId { get; set; }
            public string Caption { get; set; }
            public string Description { get; set; }
            public string Image { get; set; }
            public int CategoryId { get; set; }
    
            public FeaturedRoom(int RoomId, string Caption, string Description, string Image, int CategoryId)
            {
                this.RoomId = RoomId;
                this.Caption = Caption;
                this.Description = Description;
                this.Image = Image;
                this.CategoryId = CategoryId;
            }
        }
    }
    
    In NavigatorManager.cs change this:
    Code:
    dbClient.SetQuery("SELECT `room_id`,`caption`,`description`,`image_url`,`enabled` FROM `navigator_publics` ORDER BY `order_num` ASC");
    
    To this:
    Code:
    dbClient.SetQuery("SELECT `room_id`,`caption`,`description`,`image_url`,`enabled`,`cat_id` FROM `navigator_publics` ORDER BY `order_num` ASC");
    
    And this:
    Code:
    this._featuredRooms.Add(Convert.ToInt32(Row["room_id"]), new FeaturedRoom(Convert.ToInt32(Row["room_id"]), Convert.ToString(Row["caption"]), Convert.ToString(Row["description"]), Convert.ToString(Row["image_url"])));
    
    To this:
    Code:
    this._featuredRooms.Add(Convert.ToInt32(Row["room_id"]), new FeaturedRoom(Convert.ToInt32(Row["room_id"]), Convert.ToString(Row["caption"]), Convert.ToString(Row["description"]), Convert.ToString(Row["image_url"]), Convert.ToInt32(Row["cat_id"])));
    
    Also change this entire void:
    Code:
    public ICollection<FeaturedRoom> GetFeaturedRooms()  { ... }
    
    To this:
    Code:
    public ICollection<FeaturedRoom> GetFeaturedRooms(int CategoryId)
            {
                List<FeaturedRoom> FeaturedRooms = new List<FeaturedRoom>();
                foreach (var featuredRoom in this._featuredRooms)
                {
                    if (featuredRoom.Value.CategoryId == CategoryId)
                        FeaturedRooms.Add(featuredRoom.Value);
                }
                return FeaturedRooms;
            }
    
    Then finally in NavigatorHandler.cs change this:
    Code:
    ICollection<FeaturedRoom> Featured = PlusEnvironment.GetGame().GetNavigator().GetFeaturedRooms();
    
    To this:
    Code:
    ICollection<FeaturedRoom> Featured = PlusEnvironment.GetGame().GetNavigator().GetFeaturedRooms(SearchResult.Id);
    
    A sexy Image:
    [​IMG]

    Also make sure to add a new column in the "navigator_publics" table for "cat_id".

    Give me a like and stuff, thanks!
     
    Last edited: Jan 16, 2017 at 11:34 AM
    JMG, Bjork, CoIt and 2 others like this.
  11. Meap

    Meap Don't need glasses if you C#

    thx bby love u
     
    Damiens likes this.

Share This Page

Loading...