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 :
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: https://devbest.com/threads/release-plusemu-smokeweed-command.81504/