Aller au contenu

Monde

Contributeur
  • Compteur de contenus

    639
  • Inscription

  • Dernière visite

  • Jours gagnés

    11

Messages posté(e)s par Monde

  1. il y a 40 minutes, loiconair a dit :

    a bon ? surement une erreur de ma part :( peux tu me le renvoyer ici stp ?

    Rend toi dans "UserDataFactory.cs" et essaye de voir si t'as une ligne du genre

     

    if (user.Rank >= 6) //Changer le rank
    friends.Add(0x7fffffff, new MessengerBuddy(0x7fffffff, "Staff Chat", "hr-831-45.fa-1206-91.sh-290-1331.ha-3129-100.hd-180-2.cc-3039-73.ch-3215-92.lg-270-73", "Solo Staffs", 0, true, false)); return new UserData(UserId, Achievements, favouritedRooms, ignores, badges, friends, requests, rooms, quests, user, Relationships);

     

     

    Parce que ça peut changer en fonction de comment ça a était coder dans l'ému, moi j'ai pas coder pareil, mais vérifie déjà ça

  2. il y a 53 minutes, alexprod a dit :

     

    Pourrais-tu demander à Gurvan d'aller lire les tickets ?

    Car apparemment si comme le dit swipper ils mettent plusieurs semaines à répondre aux tickets, on est pas sorti de l'auberge. 

    Ton nom de domaine est-il actif ? Numéro du ticket ?

    • Merci 1
  3. il y a une heure, Myzer L'Dosé a dit :

    Vérifie les permissions

    Non

    il y a une heure, ?µ????? a dit :

    C'est un problème de configuration du rank

    Et non aussi

     

     

    Ça se passe dans l'emulateur, ou il faut changer le rank 2 par un rank plus haut, dans le fichier WhisperEvent.cs

    • J'aime 1
  4. Il y a 22 heures, yel0x a dit :

    va dans CatalogIndexComposer.cs avec visual studio et remplace tout le contenu par: 

     

    
    using System.Collections.Generic;using Plus.HabboHotel.Catalog;
    using Plus.HabboHotel.GameClients;
    
    
    namespace Plus.Communication.Packets.Outgoing.Catalog
    {
        public class CatalogIndexComposer : ServerPacket
        {
            public CatalogIndexComposer(GameClient Session, ICollection<CatalogPage> Pages, int Sub = 0)
                : base(ServerPacketHeader.CatalogIndexMessageComposer)
            {
                WriteRootIndex(Session, Pages);
    
    
                foreach (CatalogPage Page in Pages)
                {
                    if (Page.ParentId != -1 || Page.MinimumRank > Session.GetHabbo().Rank || (Page.MinimumVIP > Session.GetHabbo().VIPRank && Session.GetHabbo().Rank == 1))
                        continue;
    
    
                    WritePage(Page, CalcTreeSize(Session, Pages, Page.Id));
    
    
                    foreach (CatalogPage child in Pages)
                    {
                        if (child.ParentId != Page.Id || child.MinimumRank > Session.GetHabbo().Rank || (child.MinimumVIP > Session.GetHabbo().VIPRank && Session.GetHabbo().Rank == 1))
                            continue;
    
    
                        WritePage(child, CalcTreeSize(Session, Pages, child.Id));
    
    
                        foreach (CatalogPage baby in Pages)
                        {
                            if (baby.ParentId != child.Id || baby.MinimumRank > Session.GetHabbo().Rank || (baby.MinimumVIP > Session.GetHabbo().VIPRank && Session.GetHabbo().Rank == 1))
                                continue;
    
    
                            WritePage(baby, 0);
                        }
                    }
                }
    
    
                base.WriteBoolean(false);
                base.WriteString("NORMAL");
            }
    
    
            public void WriteRootIndex(GameClient Session, ICollection<CatalogPage> Pages)
            {
                base.WriteBoolean(true);
                base.WriteInteger(0);
                base.WriteInteger(-1);
                base.WriteString("root");
                base.WriteString(string.Empty);
                base.WriteInteger(0);
                base.WriteInteger(CalcTreeSize(Session, Pages, -1));
            }
    
    
            public void WritePage(CatalogPage Page, int TreeSize)
            {
                base.WriteBoolean(Page.Visible);
                base.WriteInteger(Page.Icon);
                base.WriteInteger(!Page.Enabled ? -1 : Page.Id);
                base.WriteString(Page.PageLink);
                base.WriteString(Page.Caption);
                base.WriteInteger(Page.ItemOffers.Count);
                foreach (int i in Page.ItemOffers.Keys)
                {
                    base.WriteInteger(i);
                }
                base.WriteInteger(TreeSize);
            }
    
    
            public int CalcTreeSize(GameClient Session, ICollection<CatalogPage> Pages, int ParentId)
            {
                int i = 0;
                foreach (CatalogPage Page in Pages)
                {
                    if (Page.MinimumRank > Session.GetHabbo().Rank || (Page.MinimumVIP > Session.GetHabbo().VIPRank && Session.GetHabbo().Rank == 1) || Page.ParentId != ParentId)
                        continue;
    
    
                    if (Page.ParentId == ParentId)
                        i++;
                }
    
    
                return i;
            }
        }
    }

     

     

    T'as repris le code que j'ai posté dans un autre sujet ^^

     

     

     

    • J'aime 1
  5. Va dans CatalogIndexComposer.cs, remplace tout le code par celui-là:

     

    using System.Collections.Generic;using Plus.HabboHotel.Catalog;
    using Plus.HabboHotel.GameClients;
    
    
    namespace Plus.Communication.Packets.Outgoing.Catalog
    {
        public class CatalogIndexComposer : ServerPacket
        {
            public CatalogIndexComposer(GameClient Session, ICollection<CatalogPage> Pages, int Sub = 0)
                : base(ServerPacketHeader.CatalogIndexMessageComposer)
            {
                WriteRootIndex(Session, Pages);
    
    
                foreach (CatalogPage Page in Pages)
                {
                    if (Page.ParentId != -1 || Page.MinimumRank > Session.GetHabbo().Rank || (Page.MinimumVIP > Session.GetHabbo().VIPRank && Session.GetHabbo().Rank == 1))
                        continue;
    
    
                    WritePage(Page, CalcTreeSize(Session, Pages, Page.Id));
    
    
                    foreach (CatalogPage child in Pages)
                    {
                        if (child.ParentId != Page.Id || child.MinimumRank > Session.GetHabbo().Rank || (child.MinimumVIP > Session.GetHabbo().VIPRank && Session.GetHabbo().Rank == 1))
                            continue;
    
    
                        WritePage(child, CalcTreeSize(Session, Pages, child.Id));
    
    
                        foreach (CatalogPage baby in Pages)
                        {
                            if (baby.ParentId != child.Id || baby.MinimumRank > Session.GetHabbo().Rank || (baby.MinimumVIP > Session.GetHabbo().VIPRank && Session.GetHabbo().Rank == 1))
                                continue;
    
    
                            WritePage(baby, 0);
                        }
                    }
                }
    
    
                base.WriteBoolean(false);
                base.WriteString("NORMAL");
            }
    
    
            public void WriteRootIndex(GameClient Session, ICollection<CatalogPage> Pages)
            {
                base.WriteBoolean(true);
                base.WriteInteger(0);
                base.WriteInteger(-1);
                base.WriteString("root");
                base.WriteString(string.Empty);
                base.WriteInteger(0);
                base.WriteInteger(CalcTreeSize(Session, Pages, -1));
            }
    
    
            public void WritePage(CatalogPage Page, int TreeSize)
            {
                base.WriteBoolean(Page.Visible);
                base.WriteInteger(Page.Icon);
                base.WriteInteger(!Page.Enabled ? -1 : Page.Id);
                base.WriteString(Page.PageLink);
                base.WriteString(Page.Caption);
                base.WriteInteger(Page.ItemOffers.Count);
                foreach (int i in Page.ItemOffers.Keys)
                {
                    base.WriteInteger(i);
                }
                base.WriteInteger(TreeSize);
            }
    
    
            public int CalcTreeSize(GameClient Session, ICollection<CatalogPage> Pages, int ParentId)
            {
                int i = 0;
                foreach (CatalogPage Page in Pages)
                {
                    if (Page.MinimumRank > Session.GetHabbo().Rank || (Page.MinimumVIP > Session.GetHabbo().VIPRank && Session.GetHabbo().Rank == 1) || Page.ParentId != ParentId)
                        continue;
    
    
                    if (Page.ParentId == ParentId)
                        i++;
                }
    
    
                return i;
            }
        }
    }

     

  6. il y a une heure, dim43 a dit :

    yo rien a voir avec ton sujet tu serais pourquoi je peux pas m’inscrire sur mon rétro ? ma demande d'aide juste en dessous de la tienne va voir si tu peux me donner un coups de main

     

    pour ce qui est de modifier t'es titres/images de la page principal de ton catalogue, sa doit ce faire dans t'es donner de ton catalogue pour ma part 'CatalogPage.cs' avec notepad++

    CatalogPageComposer.cs avec visual studio, t'as mal dit le nom et on ne modifie pas du C# avec notepad ++

×
×
  • Créer...