Users keep moaning about the flood time which is at 20 seconds and I can't seem to find the reference for it, any chance you can tell me where it is?
Thanks for this Craig, was stressing me out not being able to find it
Yeah but none the less I'm sure people will appreciate the help, just I'd be prepared to get spammed if I were you to be fair
Trying to make :kiss and :jump commands but when I do :kiss or :jump its doing effects such as blowing a kiss or the pogo mogo, how do I make it not do that and actually run the command ?
Is that located in the actual Habbo.swf file?
Yeah I got the tool on my laptop, Ill go remove that now because those two things are irritating me with conflicting
Decompiled my Habbo.swf but I can't seem to find the file you're referring to
How do you make it so rank 6 or 7 and above can edit, save and move roomads? At the moment only rank 8 and above can do that.
if (!Room.CheckRights(Session, true) || !Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items"))
return;
if (!Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items"))
return;
"room_item_save_branding_items", however you'd have to modify a line. In "SetObjectDataEvent":
Replace:
With:PHP:if (!Room.CheckRights(Session, true) || !Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items")) return;
PHP:if (!Session.GetHabbo().GetPermissions().HasRight("room_item_save_branding_items")) return;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Utilities;
using Plus.HabboHotel.Users;
using Plus.HabboHotel.GameClients;
namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
class MuteCommand : IChatCommand
{
public string PermissionRequired
{
get { return "command_mute"; }
}
public string Parameters
{
get { return "%username% %time%"; }
}
public string Description
{
get { return "Mute another user for a certain amount of time."; }
}
public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
{
if (Params.Length == 1)
{
Session.SendWhisper("Please enter a username and a valid time in seconds (max 600, anything over will be set back to 600).");
return;
}
Habbo Habbo = PlusEnvironment.GetHabboByUsername(Params[1]);
if (Habbo == null)
{
Session.SendWhisper("An error occoured whilst finding that user in the database.");
return;
}
if (Habbo.GetPermissions().HasRight("mod_tool") && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_any"))
{
Session.SendWhisper("Oops, you cannot mute that user.");
return;
}
double Time;
if (double.TryParse(Params[2], out Time))
{
if (Time > 600 && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_limit_override"))
Time = 600;
using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.RunQuery("UPDATE `users` SET `time_muted` = '" + Time + "' WHERE `id` = '" + Habbo.Id + "' LIMIT 1");
}
if (Habbo.GetClient() != null)
{
Habbo.TimeMuted = Time;
Habbo.GetClient().SendNotification("You have been muted by a moderator for " + Time + " seconds!");
}
Session.SendWhisper("You have successfully muted " + Habbo.Username + " for " + Time + " seconds.");
}
else
Session.SendWhisper("Please enter a valid integer.");
}
}
}
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Database.Interfaces;
using Plus.Utilities;
using Plus.HabboHotel.GameClients;
namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
class UnmuteCommand : IChatCommand
{
public string PermissionRequired
{
get { return "command_unmute"; }
}
public string Parameters
{
get { return "%username%"; }
}
public string Description
{
get { return "Unmute a currently muted user."; }
}
public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
{
if (Params.Length == 1)
{
Session.SendWhisper("Please enter the username of the user you would like to unmute.");
return;
}
GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
if (TargetClient == null || TargetClient.GetHabbo() == null)
{
Session.SendWhisper("An error occoured whilst finding that user, maybe they're not online.");
return;
}
using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.RunQuery("UPDATE `users` SET `time_muted` = '0' WHERE `id` = '" + TargetClient.GetHabbo().Id + "' LIMIT 1");
}
TargetClient.GetHabbo().TimeMuted = 0;
TargetClient.SendNotification("You have been un-muted by " + Session.GetHabbo().Username + "!");
Session.SendWhisper("You have successfully un-muted " + TargetClient.GetHabbo().Username + "!");
}
}
}
Lol @ myself.. Can anyone tell me how to add Commands? I know you have to debug via Visual Studios??? But can someone tell me how to exactly do it I cant figure it out.
Im trying to add the jump & hug command
Came across a weird error, when muting a user, the staff member doesn not receive any of the whispers stated in the command for such as if they didnt enter the username correctly or if they muted the user etc but it stills mutes them however unmute works perfectly fine and I cant see any issues, here are the two commands, maybe you can see something I cant
Code:using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.Database.Interfaces; using Plus.Utilities; using Plus.HabboHotel.Users; using Plus.HabboHotel.GameClients; namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator { class MuteCommand : IChatCommand { public string PermissionRequired { get { return "command_mute"; } } public string Parameters { get { return "%username% %time%"; } } public string Description { get { return "Mute another user for a certain amount of time."; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { if (Params.Length == 1) { Session.SendWhisper("Please enter a username and a valid time in seconds (max 600, anything over will be set back to 600)."); return; } Habbo Habbo = PlusEnvironment.GetHabboByUsername(Params[1]); if (Habbo == null) { Session.SendWhisper("An error occoured whilst finding that user in the database."); return; } if (Habbo.GetPermissions().HasRight("mod_tool") && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_any")) { Session.SendWhisper("Oops, you cannot mute that user."); return; } double Time; if (double.TryParse(Params[2], out Time)) { if (Time > 600 && !Session.GetHabbo().GetPermissions().HasRight("mod_mute_limit_override")) Time = 600; using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor()) { dbClient.RunQuery("UPDATE `users` SET `time_muted` = '" + Time + "' WHERE `id` = '" + Habbo.Id + "' LIMIT 1"); } if (Habbo.GetClient() != null) { Habbo.TimeMuted = Time; Habbo.GetClient().SendNotification("You have been muted by a moderator for " + Time + " seconds!"); } Session.SendWhisper("You have successfully muted " + Habbo.Username + " for " + Time + " seconds."); } else Session.SendWhisper("Please enter a valid integer."); } } }
Code:using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.Database.Interfaces; using Plus.Utilities; using Plus.HabboHotel.GameClients; namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator { class UnmuteCommand : IChatCommand { public string PermissionRequired { get { return "command_unmute"; } } public string Parameters { get { return "%username%"; } } public string Description { get { return "Unmute a currently muted user."; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { if (Params.Length == 1) { Session.SendWhisper("Please enter the username of the user you would like to unmute."); return; } GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]); if (TargetClient == null || TargetClient.GetHabbo() == null) { Session.SendWhisper("An error occoured whilst finding that user, maybe they're not online."); return; } using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor()) { dbClient.RunQuery("UPDATE `users` SET `time_muted` = '0' WHERE `id` = '" + TargetClient.GetHabbo().Id + "' LIMIT 1"); } TargetClient.GetHabbo().TimeMuted = 0; TargetClient.SendNotification("You have been un-muted by " + Session.GetHabbo().Username + "!"); Session.SendWhisper("You have successfully un-muted " + TargetClient.GetHabbo().Username + "!"); } } }
:mute user time in seconds so for exampleAre you using :smute or :mute?