Does anybody have an buggless database, the official one sucks as hell here.
Printable View
Does anybody have an buggless database, the official one sucks as hell here.
Upload a new db and a swf pack
someone gives me emulator with the mute button all functional?
*Improvement*
Find setmax() in ChatCommandHandler.cs
and replace the entire void with
It should work, I haven't tested it as much as I would have liked to. Anyway this works almost identically to the original command but it's written better.Code:internal void setmax()
{
try
{
int MaxUsers = int.Parse(this.Params[1]);
if (TargetRoom.CheckRights(Session, true) == true)
{
if ((MaxUsers > 500) || (MaxUsers < 1))
{
this.Session.SendNotif("The number you entered is either too big or too small. Must be between 1 and 500.");
}
}
else
{
TargetRoom.UsersMax = MaxUsers;
Session.SendNotif("The maximum number of allowed users has been set to " + MaxUsers + ".");
}
}
catch { }
}
If you discover any problems just post here so I can solve them, I recommend you change 500 to 200 if you have a large hotel as 500 users in a single room could cause a lot of problems, I have it set to 500 for stress testing purposes.
Nobody has an fixed database?
hmm the Profil Look manager dont show on new swf
A small fix, for people who have issues with the flooding in rooms.
Go to Butterfly > Messages > GameClientMessageHandler.cs
Search for: [CTRL F]
Quote:
if (((span.Seconds < 4) && (this.FloodCount > 5)) && (this.Session.GetHabbo().Rank < 5))
Now replace that above code with:
Quote:
if (((span.Seconds < 4) && (this.FloodCount > 10)) && (this.Session.GetHabbo().Rank < 5))
Notice the only thing that was changed was the value of "(this.FloodCount > 5)) " Change into any number you think that be good, but 10 worked fine for me. It stops flood how i'd want it.
If I'm not mistaken the code should be:
Code:internal void setmax()
{
Room TargetRoom = Session.GetHabbo().CurrentRoom;
TargetRoom = Session.GetHabbo().CurrentRoom;
try
{
int MaxUsers = int.Parse(this.Params[1]);
if (TargetRoom.CheckRights(Session, true) == true)
{
if ((MaxUsers > 500) || (MaxUsers < 1))
{
this.Session.SendNotif("The number you entered is either too big or too small. Must be between 1 and 500.");
}
}
else
{
TargetRoom.UsersMax = MaxUsers;
Session.SendNotif("The maximum number of allowed users has been set to " + MaxUsers + ".");
}
}
catch { }
}
Someone has official swiftemu download link?
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