Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PLUS EMULATOR] Love Command

Status
Not open for further replies.
Initiate Mage
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!
 
Initiate Mage
Joined
Jun 8, 2006
Messages
10
Reaction score
1
On what lines do you put the codes on commandmanager?
 
Initiate Mage
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