Omega 9 Posted July 15, 2017 Share Posted July 15, 2017 Salut je partage la commande SmokeWeed (PlusEMU). Alors pour commencer aller dans le dossier : HabboHotel/Rooms/Chat/Commands/User/Fun Puis crée un fichier nommé : SmokeWeedCommand.cs et remplacer tout ce qu'il y'a à l’intérieur par ce code : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Plus.HabboHotel.GameClients; using Plus.Communication.Packets.Outgoing.Rooms.Chat; namespace Plus.HabboHotel.Rooms.Chat.Commands.User.Fun { class SmokeWeedCommand : IChatCommand { public string PermissionRequired { get { return "command_smokeweed"; } } public string Parameters { get { return ""; } } public string Description { get { return "Get as stoned as Snoop Dog"; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { RoomUser ThisUser = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (ThisUser == null) return; Task.Run(async delegate { Room.SendMessage(new ChatComposer(ThisUser.VirtualId, "*" + Session.GetHabbo().Username + ", rolls a spliff*", 0, ThisUser.LastBubble)); await Task.Delay(1000); Session.GetHabbo().Effects().ApplyEffect(26); Room.SendMessage(new ChatComposer(ThisUser.VirtualId, "*" + Session.GetHabbo().Username + ", Lights up the joint*", 0, ThisUser.LastBubble)); await Task.Delay(500); Session.GetHabbo().Effects().ApplyEffect(0); await Task.Delay(1000); Session.GetHabbo().Effects().ApplyEffect(53); Room.SendMessage(new ChatComposer(ThisUser.VirtualId, "*" + Session.GetHabbo().Username + ", Smokes the beautiful joint*", 0, ThisUser.LastBubble)); await Task.Delay(5000); Session.GetHabbo().Effects().ApplyEffect(0); }); } } } Ensuite rendez vous dans HabboHotel/Rooms/Chat/Commands/CommandManager.cs Rechercher : Citation this.Register("superpush", new SuperPushCommand()); Passer une ligne et ajouter ceci : this.Register("smokeweed", new SmokeWeedCommand()) ; Ensuite aller dans votre db, sql ensuite ajouter ceci : INSERT INTO `permissions_commands` (`command`, `group_id`, `subscription_id`) VALUES ('', '4', '0'), ('command_smokeweed', '1', '0'); Voilà, penser à bien débuger l'émulateur! Je précise ce tuto ne fonctionne pas sur tout les émulateurs. Sur ce, Peace ! Source: Please login or register to see this link. Link to post Share on other sites
Akushi 83 Posted July 15, 2017 Share Posted July 15, 2017 La source aussi merci et merci du partage Link to post Share on other sites
Omega 9 Posted July 15, 2017 Author Share Posted July 15, 2017 il y a 37 minutes, reikenz a dit : La source aussi merci et merci du partage Je vais placé la source et pas de soucis Link to post Share on other sites
Akrino 20 Posted July 15, 2017 Share Posted July 15, 2017 Pas mal, peut-être cool sur un rétro. Super partage. Link to post Share on other sites
Logic 30 Posted July 15, 2017 Share Posted July 15, 2017 thanks for shared, au passage c'est bon pour le sso? Link to post Share on other sites
Monde 68 Posted July 15, 2017 Share Posted July 15, 2017 À chaque partage de commande, pour le fichié CommandManager.cs tout le monde dit de rechercher une ligne et y mettre dessous, alors que peu importe dessous qu'elle commande on ajoute notre ligne, ça marche x) Sinon, merci du partage Link to post Share on other sites
Logic 30 Posted July 15, 2017 Share Posted July 15, 2017 Je me suis pas embêter j'ai tout rassemblé: Please login or register to see this link. Link to post Share on other sites
Monde 68 Posted July 15, 2017 Share Posted July 15, 2017 il y a une heure, Cipher a dit : Je me suis pas embêter j'ai tout rassemblé: Please login or register to see this link. Link to post Share on other sites
Romaric 9 Posted July 15, 2017 Share Posted July 15, 2017 ok mercia toi pour ton partage , a tu des screens de la ccommande sur le client? @OmegaOffishiel Link to post Share on other sites
Pouney 32 Posted July 15, 2017 Share Posted July 15, 2017 Merci, un screen s'il te plaît ? Link to post Share on other sites
Ifez 41 Posted July 15, 2017 Share Posted July 15, 2017 Très bien détaillé, Merci pour ce tutoriel. Bonne continuation. Link to post Share on other sites
Omega 9 Posted July 15, 2017 Author Share Posted July 15, 2017 Il y a 12 heures, Clement a dit : Pas mal, peut-être cool sur un rétro. Super partage. Merci Link to post Share on other sites
Omega 9 Posted July 15, 2017 Author Share Posted July 15, 2017 Il y a 12 heures, Cipher a dit : thanks for shared, au passage c'est bon pour le sso? Oui merci Link to post Share on other sites
Omega 9 Posted July 15, 2017 Author Share Posted July 15, 2017 Il y a 11 heures, Monde a dit : À chaque partage de commande, pour le fichié CommandManager.cs tout le monde dit de rechercher une ligne et y mettre dessous, alors que peu importe dessous qu'elle commande on ajoute notre ligne, ça marche x) Sinon, merci du partage Oui bien sûr mais pour ceux qu'il ne s'y connaissent pas c'est mieux après faites à votre guisse Link to post Share on other sites
Omega 9 Posted July 15, 2017 Author Share Posted July 15, 2017 Il y a 11 heures, Cipher a dit : Je me suis pas embêter j'ai tout rassemblé: Please login or register to see this link. Ahah bien vu 1 Link to post Share on other sites
Omega 9 Posted July 15, 2017 Author Share Posted July 15, 2017 Il y a 8 heures, Romaric a dit : ok mercia toi pour ton partage , a tu des screens de la ccommande sur le client? @OmegaOffishiel De rien Dée que je le test car j'avais un problème de VPS je vous montre cela puis je fourni ça Il y a 7 heures, Pouney a dit : Merci, un screen s'il te plaît ? Dée que je le test car j'avais un problème de VPS je vous montre cela puis je fourni ça Link to post Share on other sites
Omega 9 Posted July 15, 2017 Author Share Posted July 15, 2017 Il y a 2 heures, Ifez a dit : Très bien détaillé, Merci pour ce tutoriel. Bonne continuation. Merci et pas de soucis Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now