Plus Emulator Fixes de Segurança 28.05.16 15:21
Fixes importantíssimos para você que utiliza desse emulador.
Importante !
Todos esses fixes tem que ser inseridos na source do emulador.
Vamos lá!
1) Entre nesse diretório: HabboHotel\Items\Wired\Boxes\Effects\BotChangesClothesBox.cs
Procure por:
using (QueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.RunQuery("UPDATE `bots` SET `look` = '" + User.BotData.Look + "', `gender` = '" + User.BotData.Gender + "' WHERE `id` = '" + User.BotData.Id + "' LIMIT 1");
}
E substitua por:
using (QueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.SetQuery("UPDATE `bots` SET `look` = @look, `gender` = '" + User.BotData.Gender + "' WHERE `id` = '" + User.BotData.Id + "' LIMIT 1");
dbClient.AddParameter("look", User.BotData.Look);
dbClient.RunQuery();
}
2) Entre nesse diretório: Communication\Packets\Incoming\Rooms\AI\Bots\SaveBotActionEvent.cs
Procure por:
using (QueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.RunQuery("UPDATE `bots` SET `look` = '" + Session.GetHabbo().Look + "', `gender` = '" + Session.GetHabbo().Gender + "' WHERE `id` = '" + Bot.BotData.Id + "' LIMIT 1");
}
E substitua por:
using (QueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.SetQuery("UPDATE `bots` SET `look` = @look, `gender` = '" + Session.GetHabbo().Gender + "' WHERE `id` = '" + Bot.BotData.Id + "' LIMIT 1");
dbClient.AddParameter("look", Session.GetHabbo().Look);
dbClient.RunQuery();
}
3) Entre nesse diretório: Communication\Packets\Incoming\Rooms\Furni\Wired\SaveWiredConfigEvent.cs
Procure por:
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
return;
E substitua por:
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
return;
if (Room.OwnerId != Session.GetHabbo().Id && Room.CheckRights(Session, false))
return;
4) Entre nesse diretório: Communication\Packets\Incoming\Catalog\CheckGnomeNameEvent.cs
Procure por:
if (Item == null || Item.Data == null)
return;
Substitua por:
if (Item == null || Item.Data == null || Item.UserID != Session.GetHabbo().Id || Item.Data.InteractionType != InteractionType.GNOME_BOX)
return;
CRÉDITOS:
TehMud
Shorty
criandohabbos (Oficial)
Importante !
Todos esses fixes tem que ser inseridos na source do emulador.
Vamos lá!
1) Entre nesse diretório: HabboHotel\Items\Wired\Boxes\Effects\BotChangesClothesBox.cs
Procure por:
using (QueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.RunQuery("UPDATE `bots` SET `look` = '" + User.BotData.Look + "', `gender` = '" + User.BotData.Gender + "' WHERE `id` = '" + User.BotData.Id + "' LIMIT 1");
}
E substitua por:
using (QueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.SetQuery("UPDATE `bots` SET `look` = @look, `gender` = '" + User.BotData.Gender + "' WHERE `id` = '" + User.BotData.Id + "' LIMIT 1");
dbClient.AddParameter("look", User.BotData.Look);
dbClient.RunQuery();
}
2) Entre nesse diretório: Communication\Packets\Incoming\Rooms\AI\Bots\SaveBotActionEvent.cs
Procure por:
using (QueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.RunQuery("UPDATE `bots` SET `look` = '" + Session.GetHabbo().Look + "', `gender` = '" + Session.GetHabbo().Gender + "' WHERE `id` = '" + Bot.BotData.Id + "' LIMIT 1");
}
E substitua por:
using (QueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.SetQuery("UPDATE `bots` SET `look` = @look, `gender` = '" + Session.GetHabbo().Gender + "' WHERE `id` = '" + Bot.BotData.Id + "' LIMIT 1");
dbClient.AddParameter("look", Session.GetHabbo().Look);
dbClient.RunQuery();
}
3) Entre nesse diretório: Communication\Packets\Incoming\Rooms\Furni\Wired\SaveWiredConfigEvent.cs
Procure por:
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
return;
E substitua por:
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
return;
if (Room.OwnerId != Session.GetHabbo().Id && Room.CheckRights(Session, false))
return;
4) Entre nesse diretório: Communication\Packets\Incoming\Catalog\CheckGnomeNameEvent.cs
Procure por:
if (Item == null || Item.Data == null)
return;
Substitua por:
if (Item == null || Item.Data == null || Item.UserID != Session.GetHabbo().Id || Item.Data.InteractionType != InteractionType.GNOME_BOX)
return;
CRÉDITOS:
TehMud
Shorty
criandohabbos (Oficial)