Solucionar BUG PlusEmu 2014
mantengo este OP actualizado si hay nuevas revisiones publicadas y confirmadas de trabajo. NO pedir ayuda en este hilo. TENEMOS LA SECCIÓN DE AYUDA PARA ESO! # 1 - Bot bocadillo.
#1 - Bot speech bubble.
Spoiler:
Find in RoomUser.cs :
Code:
messageB = new InvokedChatMessage(this, Message, Shout, 0,count);
Code:
messageB = new InvokedChatMessage(this, Message, Shout, (IsPet ? 0 : 2),count);
Spoiler:
By: HillBilly
#2 - Alert command
Spoiler:
In ChatCommandHandler.cs in #region Moderation Commands add:
Code:
case "alert":
{
if (Session.GetHabbo().HasCmd("alert"))
{
if (Params[1] == null || Params[2] == null)
{
Session.SendNotif("You left something empty.");
return true;
}
string TargetUser = null;
GameClient TargetClient = null;
TargetUser = Params[1];
TargetClient = SilverwaveEnvironment.GetGame().GetClientManager().GetClientByUsername(TargetUser);
Room TargetRoom = TargetClient.GetHabbo().CurrentRoom;
if (TargetClient == null)
{
Session.SendNotif("User could not be found.");
return true;
}
TargetClient.SendNotif(Params[2] + " -" + Session.GetHabbo().Username);
}
return true;
}
Code:
INSERT INTO .`fuse_cmds` (`id`, `command`, `rank`, `params`, `description`) VALUES ('82', 'alert', '5', '%name% %message%', 'Alert a user with a specific message');
Spoiler:
By: HillBilly
#3 - Minimail
Spoiler:
Find in GameClient.cs:
Code:
MiniMail.AppendInt32(1);
Code:
MiniMail.AppendInt32(0);
Spoiler:
By: BloodRaven
#4 -Pets Fix
Spoiler:
Go to Messages -> Requests -> Rooms.cs.
Find:
Code:
internal void PlacePet()
Spoiler:
Find:
Code:
dbClient.setQuery("SELECT * FROM bots WHERE room_id = " + RoomId);
Code:
dbClient.setQuery("SELECT * FROM bots WHERE room_id = " + RoomId + " AND ai_type = 'generic'");
Find:
Code:
internal void Serialize(ServerMessage Message, bool gotPublicRoom)
Spoiler:
Find CheckPetNameMessageEvent = and change it to public const int CheckPetNameMessageEvent = 3913; //akl
Find GetSellablePetBreedsMessageEvent = and change it to public const int GetSellablePetBreedsMessageEvent = 3780; //akl
Headers by Bloodraven
Proof:
Spoiler:
#5 - Unfavorite Room
Spoiler:
Find:
Code:
public const int RemoveFavouriteRoomMessageEvent = 0;
Code:
public const int RemoveFavouriteRoomMessageEvent = 81;
#6 - MOD Tools Displaying
Spoiler:
Change:
Code:
this.SendMessage(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
Code:
response.appendResponse(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
#7 - User Chatlog:
Spoiler:
Find:
Code:
internal static int UserChatlog = 0x777FF;//disabled
Code:
internal static int UserChatlog = 3791;
#8 - Idle Fix
Spoiler:
Find:
Code:
public const int SleepMessageComposer = 3474;
Code:
public const int SleepMessageComposer = 1644;
#9 - Achievements Window
Spoiler:
Find:
Code:
internal static int AchievementList = 2328;//akl
Code:
internal static int AchievementList = 2134;//akl
#10 - Moodlight SQL Error
Spoiler:
Code:
case InteractionType.dimmer:
{
UserItem it = Session.GetHabbo().GetInventoryComponent().AddNewItem(0, Item.ItemId, ExtraData, 0, true, false, 0,0,0);
uint id = it.Id;
result.Add(it);
using (IQueryAdapter dbClient = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.runFastQuery("INSERT INTO room_items_moodlight (item_id,enabled,current_preset,preset_one,preset_two,preset_three) VALUES (" + id + ",'0',1,'#000000,255,0','#000000,255,0','#000000,255,0')");
// 0 changed to '0'
}
}
#11 - Fix for Limited Items:
Spoiler:
Run this:
Code:
CREATE TABLE IF NOT EXISTS `items_limited` ( `item_id` int(55) NOT NULL, `LimitedNo` int(55) NOT NULL, `LimitedTot` int(55) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Find -> items_limited
Remove the // and /* and */
Go to: HabboHotel/Items/UserItem.cs
Find -> items_limited
Remove the // and /* and */
Go to: HabboHotel/Users/Inventory/InventoryComponent.cs
Find -> items_limited
Remove the // and /* and */
Go to: HabboHotel/Items/UserItem.cs
Find:
Code:
internal void SerializeFloor(ServerMessage Message, Boolean Inventory)
Code:
else if (LimitedNo > 0)
{
Message.AppendInt32(1);
Message.AppendInt32(256);
Message.AppendString(this.ExtraData);
Message.AppendInt32(this.LimitedNo);
Message.AppendInt32(this.LimitedTot);
}
Code:
else
{
Message.AppendInt32(1);
Message.AppendInt32(0);
Message.AppendString(ExtraData);
}
}
Find (internal void SerializeFloor):
Code:
Message.AppendBoolean(GetBaseItem().AllowInventoryStack);
Code:
if (LimitedNo > 0)
{
Message.AppendBoolean(false);
}
else
{
Message.AppendBoolean(GetBaseItem().AllowInventoryStack);
}
Spoiler:
Spoiler:

Comentarios
Publicar un comentario