Quote:
if (TargetRoom.CheckRights(Session, true) == true){
The "== true" isn't needed i think. CheckRights is already a booleanCode:if (TargetRoom.CheckRights(Session, true)){
Printable View
Quote:
if (TargetRoom.CheckRights(Session, true) == true){
The "== true" isn't needed i think. CheckRights is already a booleanCode:if (TargetRoom.CheckRights(Session, true)){
Hi I have made a small modification to the command to read the maximum users can define setMax in config.ini
add in ChatCommandHandler.cs:
replace all void with:Code:private int SetMaxLimits;
add in config.ini:Code:internal void setmax()
{
Room TargetRoom = Session.GetHabbo().CurrentRoom;
TargetRoom = Session.GetHabbo().CurrentRoom;
try
{
int MaxUsers = int.Parse(this.Params[1]);
this.SetMaxLimits = int.Parse(ButterflyEnvironment.GetConfig().data["setmax.limit"]);
if (TargetRoom.CheckRights(Session, true))
{
if ((MaxUsers > SetMaxLimits) || (MaxUsers < 1))
{
this.Session.SendNotif("The number you entered is either too big or too small. Must be between 1 and " + SetMaxLimits + ".");
}
}
else
{
TargetRoom.UsersMax = MaxUsers;
Session.SendNotif("The maximum number of allowed users has been set to " + MaxUsers + ".");
}
}
catch { }
}
sorry for my English, I'm Spanish.Code:## Maximum Users for setmax command
setmax.limit=300
I have not tried it, I hope to work properly.
Here is a quick fix for declining all friend requests:
Find the following in GameClientMessageHandler.cs:
Replace the whole void with:PHP Code:internal void DeclineRequest()
PHP Code:internal void DeclineRequest()
{
if (Session.GetHabbo().GetMessenger() == null)
return;
bool declineAll = Request.PopWiredBoolean();
if (declineAll == true)
Session.GetHabbo().GetMessenger().HandleAllRequests();
else
{
uint RequestId = Request.PopWiredUInt();
Session.GetHabbo().GetMessenger().HandleRequest(RequestId);
}
}
Another bug ive found:
When accepting someone as a friend if they are offline, it dosn't save. Meaning if you reload your still have a friends request from them.
Somebody have the code for buy 6, get 1 extra
Verstuurd vanaf mijn LG-E610 met Tapatalk 4
can you ensure that the owner and the people not be transferred accreditated
When entering the client, the emu receives no connections.. Does somebody have a fix for this?
Which CMS are u using
Verstuurd vanaf mijn LG-E610 met Tapatalk 4
HabboPHP, but other swift emu's are working well but the latest Revision 5 isn't working.. I downloaded the SWF's from this thread and the latest habbo.swf from habbo.uk.com ..
Someone should fix
- Promoted rooms... (Navigator and the other one that opens the catalog)
- Profiles... You can only see yourself, and not other peoples.
Thanks to whoever may attempt this xD....
Promoted rooms still not.
yes event's dont work on client and steam is not loading
I have found new exploit, we can empty ALL DATABASE based on bcstorm..
I suppose it's change name.
How do i fix relationships it comes up with this
here
I've download Revision 5 - Alpha 5 from this thread, but when I give somebody diamonds they amount updates after he reloads the hotel.