• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[PLUS EMULATOR] Love Command

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jan 15, 2017
Messages
24
Reaction score
4
Hello Ragezone,


I'm here to release a new command.
Go to => HabboHotel\Rooms\Chat\Commands\User and create new file.cs, called :
LoveCommand.cs

PHP:
http://pastebin.com/CNABVjKF
And , Go to :=>CommandManager.cs and put
PHP:
this.Register("love", new LoveCommand());
Good Luck!
 
Newbie Spellweaver
Joined
Jun 8, 2006
Messages
10
Reaction score
1
On what lines do you put the codes on commandmanager?
 
Newbie Spellweaver
Joined
Jan 15, 2017
Messages
24
Reaction score
4
private void RegisterUser() {
this.Register("love", new LoveCommand());
 
Banned
Banned
Joined
Jan 1, 2014
Messages
793
Reaction score
81
PHP:
INSERT INTO `permissions_commands` VALUES ('command_love', '1', '0');
U really don't like queries, lol.
 
  • Like
Reactions: u20
Experienced Elementalist
Joined
Nov 11, 2015
Messages
238
Reaction score
89
Constructive critics on your code:

Name local variables with lowerCamelCase.

On line 54 you create a new RoomUser for the current session, you already did that on line 41.

You could spam this command over and over, flooding the room, because you instantly send the Chat packet, without checking for flooding.
 
Status
Not open for further replies.
Back
Top