Runyard 70 Posté(e) le 15 avril 2018 Partager Posté(e) le 15 avril 2018 Hey la communauté inshare, aujourd'hui, je vous partage la commande :invisible qui permet d'être invisible dans le prochain appart. *Petit rappel Ce sujet n'est pas un support. Merci de créer un sujet pour les problèmes rencontrés. CODE dans InvisibleCommand.cs (il faut créé le fichier) Merci de mettre le fichier dans HabboHotel > Rooms > Commands > Moderator using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.Rooms; using Plus.HabboHotel.Rooms.Chat.Styles; namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator { class InvisibleCommand : IChatCommand { public string PermissionRequired { get { return "command_invisible"; } } public string Parameters { get { return ""; } } public string Description { get { return "Permet d'être invisible !"; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { if (Session == null) return; if (Session.GetHabbo().blnInv) { Session.GetHabbo().blnInv = false; Session.SendWhisper("Mode invisible désactivé", 4); } else { Session.GetHabbo().blnInv = true; Session.SendWhisper("Mode invisible activé - Validation dans le prochain appart", 4); } } } } Dans GetRoomEntryDataEvent.cs: Remplace ce code: if (!Room.GetRoomUserManager().AddAvatarToRoom(Session)) { Room.GetRoomUserManager().RemoveUserFromRoom(Session, false, false); return;//TODO: Remove? } Par celui-ci: if (!Session.GetHabbo().blnInv) { if (!Room.GetRoomUserManager().AddAvatarToRoom(Session)) { Room.GetRoomUserManager().RemoveUserFromRoom(Session, false, false); return;//TODO: Remove? } } else { Session.GetHabbo().blnInv = !Session.GetHabbo().blnInv; } Insère ce code dans Habbo.cs: private bool boolInv; public bool blnInv { get { return this.boolInv; } set { this.boolInv = value; } } Insère ce code dans CommandManager.cs: this.Register("invisible", new InvisibleCommand()); Voilà voilà ! Bonne utilisation ! D'autres commandes arriveront sous peu (c'est que le début) ! Sky, un bot discord français multifonctions avec un RPG hors du commun. Site web : https://skybot.fr Serveur communautaire : https://skybot.fr/discord Lien à poster Partager sur d’autres sites Plus d'options de partage...
ʍʀʍɑς 6 Posté(e) le 15 avril 2018 Partager Posté(e) le 15 avril 2018 il y a 1 minute, Runyard a dit : Hey la communauté inshare, aujourd'hui, je vous partage la commande :invisible qui permet d'être invisible dans le prochain appart. *Petit rappel Ce sujet n'est pas un support. Merci de créer un sujet pour les problèmes rencontrés. CODE dans InvisibleCommand.cs (il faut créé le fichier) Merci de mettre le fichier dans HabboHotel > Rooms > Commands > Moderator using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.Rooms; using Plus.HabboHotel.Rooms.Chat.Styles; namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator { class InvisibleCommand : IChatCommand { public string PermissionRequired { get { return "command_invisible"; } } public string Parameters { get { return ""; } } public string Description { get { return "Permet d'être invisible !"; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { if (Session == null) return; if (Session.GetHabbo().blnInv) { Session.GetHabbo().blnInv = false; Session.SendWhisper("Mode invisible désactivé", 4); } else { Session.GetHabbo().blnInv = true; Session.SendWhisper("Mode invisible activé - Validation dans le prochain appart", 4); } } } } Dans GetRoomEntryDataEvent.cs: Remplace ce code: if (!Room.GetRoomUserManager().AddAvatarToRoom(Session)) { Room.GetRoomUserManager().RemoveUserFromRoom(Session, false, false); return;//TODO: Remove? } Par celui-ci: if (!Session.GetHabbo().blnInv) { if (!Room.GetRoomUserManager().AddAvatarToRoom(Session)) { Room.GetRoomUserManager().RemoveUserFromRoom(Session, false, false); return;//TODO: Remove? } } else { Session.GetHabbo().blnInv = !Session.GetHabbo().blnInv; } Insère ce code dans Habbo.cs: private bool boolInv; public bool blnInv { get { return this.boolInv; } set { this.boolInv = value; } } Insère ce code dans CommandManager.cs: this.Register("invisible", new InvisibleCommand()); Voilà voilà ! Bonne utilisation ! D'autres commandes arriveront sous peu (c'est que le début) ! Merci beaucoup,j'allais faire un sujet pour cette commande (je le fais pour tester les nouveaux staffs) BESOIN D'AIDE CONTACTE-MOI MP moi pour question ou projet Lien à poster Partager sur d’autres sites Plus d'options de partage...
Runyard 70 Posté(e) le 15 avril 2018 Auteur Partager Posté(e) le 15 avril 2018 il y a 10 minutes, ???äç a dit : Merci beaucoup,j'allais faire un sujet pour cette commande (je le fais pour tester les nouveaux staffs) Eh bah voilà Sky, un bot discord français multifonctions avec un RPG hors du commun. Site web : https://skybot.fr Serveur communautaire : https://skybot.fr/discord Lien à poster Partager sur d’autres sites Plus d'options de partage...
Akushi 75 Posté(e) le 15 avril 2018 Partager Posté(e) le 15 avril 2018 il y a 22 minutes, Runyard a dit : Hey la communauté inshare, aujourd'hui, je vous partage la commande :invisible qui permet d'être invisible dans le prochain appart. *Petit rappel Ce sujet n'est pas un support. Merci de créer un sujet pour les problèmes rencontrés. CODE dans InvisibleCommand.cs (il faut créé le fichier) Merci de mettre le fichier dans HabboHotel > Rooms > Commands > Moderator using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.Rooms; using Plus.HabboHotel.Rooms.Chat.Styles; namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator { class InvisibleCommand : IChatCommand { public string PermissionRequired { get { return "command_invisible"; } } public string Parameters { get { return ""; } } public string Description { get { return "Permet d'être invisible !"; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { if (Session == null) return; if (Session.GetHabbo().blnInv) { Session.GetHabbo().blnInv = false; Session.SendWhisper("Mode invisible désactivé", 4); } else { Session.GetHabbo().blnInv = true; Session.SendWhisper("Mode invisible activé - Validation dans le prochain appart", 4); } } } } Dans GetRoomEntryDataEvent.cs: Remplace ce code: if (!Room.GetRoomUserManager().AddAvatarToRoom(Session)) { Room.GetRoomUserManager().RemoveUserFromRoom(Session, false, false); return;//TODO: Remove? } Par celui-ci: if (!Session.GetHabbo().blnInv) { if (!Room.GetRoomUserManager().AddAvatarToRoom(Session)) { Room.GetRoomUserManager().RemoveUserFromRoom(Session, false, false); return;//TODO: Remove? } } else { Session.GetHabbo().blnInv = !Session.GetHabbo().blnInv; } Insère ce code dans Habbo.cs: private bool boolInv; public bool blnInv { get { return this.boolInv; } set { this.boolInv = value; } } Insère ce code dans CommandManager.cs: this.Register("invisible", new InvisibleCommand()); Voilà voilà ! Bonne utilisation ! D'autres commandes arriveront sous peu (c'est que le début) ! Cette commande n'est pas parfaite une fois le :invisible taper si tu entre une commande tu crash directement Lien à poster Partager sur d’autres sites Plus d'options de partage...
Runyard 70 Posté(e) le 15 avril 2018 Auteur Partager Posté(e) le 15 avril 2018 il y a 48 minutes, Akushi a dit : Cette commande n'est pas parfaite une fois le :invisible taper si tu entre une commande tu crash directement Ah, peut-être j'ai mais essayé sa Sky, un bot discord français multifonctions avec un RPG hors du commun. Site web : https://skybot.fr Serveur communautaire : https://skybot.fr/discord Lien à poster Partager sur d’autres sites Plus d'options de partage...
BrYan 7 Posté(e) le 14 mai 2018 Partager Posté(e) le 14 mai 2018 @Runyard Merci Bcp sa marche #Free_Palestine #Free_AhedTamimi https://inshare.fr/topic/5854-pack-habbo-2018/ Lien à poster Partager sur d’autres sites Plus d'options de partage...
Runyard 70 Posté(e) le 14 mai 2018 Auteur Partager Posté(e) le 14 mai 2018 Il y a 1 heure, BrYan a dit : @Runyard Merci Bcp sa marche Je t'en prie Padawan ! Sky, un bot discord français multifonctions avec un RPG hors du commun. Site web : https://skybot.fr Serveur communautaire : https://skybot.fr/discord Lien à poster Partager sur d’autres sites Plus d'options de partage...
Logic 30 Posté(e) le 14 mai 2018 Partager Posté(e) le 14 mai 2018 public bool blnInv { get { return this.boolInv; } set { this.boolInv = value; } } meh.. pas trop ça le mot "propre" ahah, remplace par ça public bool blnInv => this.boolInv; meeeeeh Lien à poster Partager sur d’autres sites Plus d'options de partage...
Messages recommandés
Créer un compte ou se connecter pour commenter
Vous devez être membre afin de pouvoir déposer un commentaire
Créer un compte
Créez un compte sur notre communauté. C’est facile !
Créer un nouveau compteSe connecter
Vous avez déjà un compte ? Connectez-vous ici.
Connectez-vous maintenant