Solucionar BUG PlusEmu 2014


Tengo la sensación de que habrá muchas correcciones de temas a aparecer pronto para ser un StepAhead y prevenir una tonelada de spam en la sección de prensa, por qué no crear un hilo que tiene todas las correcciones. Publicar debajo de cualquier corrección de errores o addons y después de la revisión que se añadirá!



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);
Replace with:
Code:
messageB = new InvokedChatMessage(this, Message, Shout, (IsPet ? 0 : 2),count);
Proof:
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;
                    }
Run:
Code:
INSERT INTO .`fuse_cmds` (`id`, `command`, `rank`, `params`, `description`) VALUES ('82', 'alert', '5', '%name% %message%', 'Alert a user with a specific message');
Proof of working:
Spoiler



By: HillBilly


#3 - Minimail
Spoiler

Find in GameClient.cs:
Code:
MiniMail.AppendInt32(1);
Replace with: 
Code:
MiniMail.AppendInt32(0);
Proof:
Spoiler


By: BloodRaven


#4 -Pets Fix
Spoiler

Go to Messages -> Requests -> Rooms.cs.
Find:
Code:
internal void PlacePet()
Replace:
Spoiler


Find:
Code:
dbClient.setQuery("SELECT * FROM bots WHERE room_id = " + RoomId);
Replace: 
Code:
dbClient.setQuery("SELECT * FROM bots WHERE room_id = " + RoomId + " AND ai_type = 'generic'");
Go to HabboHotel -> Rooms -> RoomUser.cs
Find:
Code:
internal void Serialize(ServerMessage Message, bool gotPublicRoom)
Replace:
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;
Replace:
Code:
public const int RemoveFavouriteRoomMessageEvent = 81;
By: albertwitwerts


#6 - MOD Tools Displaying
Spoiler

Change:
Code:
this.SendMessage(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
To:
Code:
response.appendResponse(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
By: AWA


#7 - User Chatlog:
Spoiler

Find:
Code:
internal static int UserChatlog = 0x777FF;//disabled
Replace with:
Code:
internal static int UserChatlog = 3791;


#8 - Idle Fix
Spoiler

Find:
Code:
public const int SleepMessageComposer = 3474;
Replace With:
Code:
public const int SleepMessageComposer = 1644;


#9 - Achievements Window
Spoiler

Find:
Code:
internal static int AchievementList = 2328;//akl
Replace With:
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;
Go to: HabboHotel/Items/RoomItem.cs

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)
Put:
Code:
else if (LimitedNo > 0)
            {
                Message.AppendInt32(1);
                Message.AppendInt32(256);
                Message.AppendString(this.ExtraData);
                Message.AppendInt32(this.LimitedNo);
                Message.AppendInt32(this.LimitedTot);
            }
Before:

Code:
else
                {
                    Message.AppendInt32(1);
                    Message.AppendInt32(0);
                    Message.AppendString(ExtraData);
                }
            }

Find (internal void SerializeFloor): 
Code:
Message.AppendBoolean(GetBaseItem().AllowInventoryStack);
Replace:
Code:
if (LimitedNo > 0)
            {
                Message.AppendBoolean(false);
            }
            else
            {
                Message.AppendBoolean(GetBaseItem().AllowInventoryStack);
            }
Inventory Stack repaired with the help of Receiver :)

Spoiler



Spoiler

Comentarios

Entradas populares de este blog

Habbo P*rno [Estatua] [Sin Censura y Censurado]

[CMS]Deck CMS V1| Buena index |Based Lavvos| es para xamp y iss [Habbo] ACTUALIZADO 20/04/2013

Reserva tu Hotel Axed "Mass Phoenix Bot Raid - Scripter"