Since i couldn find any specific thread for plus emulator fixes ill make 1
Fix 1: bot speeches
The code is really long so ill made it pastebin
____________________________________________________________
Fix 2: Hotel Alert
in ChatCommandHandler.cs add this
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;
}
And run this SQL:
INSERT INTO .`fuse_cmds` (`id`, `command`, `rank`, `params`, `description`) VALUES ('82', 'alert', '5', '%name% %message%', 'Alert a user with a specific message');
_______________________________________________________________________________________________________________________________
Fix 3: Remove the 1 minimail in the client
in GameClient.cs Find:
MiniMail.AppendInt32(1);
Change it to
MiniMail.AppendInt32(0);
__________________________________
Fix 4: Pet Fix
In ClientPacketHeader.cs Change:
Change public const int CheckPetNameMessageEvent = 2605;
to
public const int CheckPetNameMessageEvent = 3913; //akl
And
and change
public const int GetSellablePetBreedsMessageEvent = 1360;
to
public const int GetSellablePetBreedsMessageEvent = 3780; //akl
go to
__________________________________________________________________________________
Fix 5: Unfavorite Room
In ClientPacketHeader.cs Find:
public const int RemoveFavouriteRoomMessageEvent = 0;
change to
public const int RemoveFavouriteRoomMessageEvent = 81;
________________________________________________
Fix 6: Mod Tool
In GameClient.cs Find:
this.SendMessage(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
Change to
response.appendResponse(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
User info will disconnect people so add this to fix user info:
In ModerationTool.cs find:
Message.AppendString((string)User["ip_last"]); // last_purchase_txt
Message.AppendInt32(0); // identityinformationtool.url + this
Message.AppendInt32(0); // id_bans_txt
Message.AppendString((string)User["mail"]); // email_address_txt
Change to
Message.AppendInt32(0); // trading_lock_count_txt
Message.AppendString((string)User["ip_last"]); // last_purchase_txt
Message.AppendInt32(0); // identityinformationtool.url + this
Message.AppendInt32(0); // id_bans_txt
Message.AppendString((string)User["mail"]); // email_address_txt
____________________________________________________
Fix 7 User Chatlog:
internal static int UserChatlog = 0x777FF;//disabled
to
internal static int UserChatlog = 3791;
____________________________________________________
Fix 8 idle:
public const int SleepMessageComposer = 3474;
to
public const int SleepMessageComposer = 1644;
_____________________________________________________
Fix 9 Achievements Window:
internal static int AchievementList = 2328;//akl
to
internal static int AchievementList = 2134;//akl
_____________________________________________________
Fix 10 Moodlight:
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'
}
}
________________________________________________________________
Fix 11 duplicating Chatlogs:
Find this line :
RoomChat.Add(new Chatlog((uint)mRow[0], (string)mRow[1], Convert.ToDouble(mRow[2])));
Remove it and open your server and go on client and type something and shut it down then open your server again and type somthing again the first chatlogs that has been open on the first you open the emulator its not been duplicated but you cant see the list of chatlogs on the mod tool anyone should edit this because Im not on my PC yet I just saw this try it guys I didnt test it yet but im 100% Sure it will works but need to edit it
_____________________________________________________________________________________________
More fixes soon credits to people who made them
Fix 1: bot speeches
The code is really long so ill made it pastebin
You must be registered for see links
____________________________________________________________
Fix 2: Hotel Alert
in ChatCommandHandler.cs add this
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;
}
And run this SQL:
INSERT INTO .`fuse_cmds` (`id`, `command`, `rank`, `params`, `description`) VALUES ('82', 'alert', '5', '%name% %message%', 'Alert a user with a specific message');
_______________________________________________________________________________________________________________________________
Fix 3: Remove the 1 minimail in the client
in GameClient.cs Find:
MiniMail.AppendInt32(1);
Change it to
MiniMail.AppendInt32(0);
__________________________________
Fix 4: Pet Fix
In ClientPacketHeader.cs Change:
Change public const int CheckPetNameMessageEvent = 2605;
to
public const int CheckPetNameMessageEvent = 3913; //akl
And
and change
public const int GetSellablePetBreedsMessageEvent = 1360;
to
public const int GetSellablePetBreedsMessageEvent = 3780; //akl
go to
You must be registered for see links
For the the fix for pets not dc u when u enter room with pets__________________________________________________________________________________
Fix 5: Unfavorite Room
In ClientPacketHeader.cs Find:
public const int RemoveFavouriteRoomMessageEvent = 0;
change to
public const int RemoveFavouriteRoomMessageEvent = 81;
________________________________________________
Fix 6: Mod Tool
In GameClient.cs Find:
this.SendMessage(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
Change to
response.appendResponse(SilverwaveEnvironment.GetGame().GetModerationTool().SerializeTool());
User info will disconnect people so add this to fix user info:
In ModerationTool.cs find:
Message.AppendString((string)User["ip_last"]); // last_purchase_txt
Message.AppendInt32(0); // identityinformationtool.url + this
Message.AppendInt32(0); // id_bans_txt
Message.AppendString((string)User["mail"]); // email_address_txt
Change to
Message.AppendInt32(0); // trading_lock_count_txt
Message.AppendString((string)User["ip_last"]); // last_purchase_txt
Message.AppendInt32(0); // identityinformationtool.url + this
Message.AppendInt32(0); // id_bans_txt
Message.AppendString((string)User["mail"]); // email_address_txt
____________________________________________________
Fix 7 User Chatlog:
internal static int UserChatlog = 0x777FF;//disabled
to
internal static int UserChatlog = 3791;
____________________________________________________
Fix 8 idle:
public const int SleepMessageComposer = 3474;
to
public const int SleepMessageComposer = 1644;
_____________________________________________________
Fix 9 Achievements Window:
internal static int AchievementList = 2328;//akl
to
internal static int AchievementList = 2134;//akl
_____________________________________________________
Fix 10 Moodlight:
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'
}
}
________________________________________________________________
Fix 11 duplicating Chatlogs:
Find this line :
RoomChat.Add(new Chatlog((uint)mRow[0], (string)mRow[1], Convert.ToDouble(mRow[2])));
Remove it and open your server and go on client and type something and shut it down then open your server again and type somthing again the first chatlogs that has been open on the first you open the emulator its not been duplicated but you cant see the list of chatlogs on the mod tool anyone should edit this because Im not on my PC yet I just saw this try it guys I didnt test it yet but im 100% Sure it will works but need to edit it
_____________________________________________________________________________________________
More fixes soon credits to people who made them
Last edited: