/// <summary> /// Appends the server message. /// </summary> /// <param name="message">The message.</param> public void AppendServerMessage(ServerMessage message) { AppendBytes(message.GetBytes(), false); }
/// <summary> /// Appends the response. /// </summary> /// <param name="message">The message.</param> internal void AppendResponse(ServerMessage message) { AppendBytes(message.GetReversedBytes()); }
/// <summary> /// Loads this instance. /// </summary> public static void Load() { Cache.Clear(); var message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer")); message.AppendString("furni_placement_error"); message.AppendInteger(1); message.AppendString("message"); message.AppendString("${room.error.cant_set_item}"); Cache.Add(StaticMessage.ErrorCantSetItem, message.GetReversedBytes()); message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer")); message.AppendString("furni_placement_error"); message.AppendInteger(1); message.AppendString("message"); message.AppendString("${room.error.cant_set_not_owner}"); Cache.Add(StaticMessage.ErrorCantSetNotOwner, message.GetReversedBytes()); message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer")); message.AppendString("game_promo_small"); message.AppendInteger(4); message.AppendString("title"); message.AppendString("${generic.notice}"); message.AppendString("message"); message.AppendString("Now, the commands page opens in a different way"); message.AppendString("linkUrl"); message.AppendString("event:habbopages/chat/newway"); message.AppendString("linkTitle"); message.AppendString("${mod.alert.link}"); Cache.Add(StaticMessage.NewWayToOpenCommandsList, message.GetReversedBytes()); message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer")); message.AppendString(""); message.AppendInteger(4); message.AppendString("title"); message.AppendString("${generic.notice}"); message.AppendString("message"); message.AppendString("${catalog.gift_wrapping.receiver_not_found.title}"); message.AppendString("linkUrl"); message.AppendString("event:"); message.AppendString("linkTitle"); message.AppendString("ok"); Cache.Add(StaticMessage.UserNotFound, message.GetReversedBytes()); message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer")); message.AppendString(""); message.AppendInteger(4); message.AppendString("title"); message.AppendString("${generic.notice}"); message.AppendString("message"); message.AppendString("You've exceeded the maximum furnis in inventory. Only furnis 2800 will show if you want to see the others, places some Furni in your rooms."); message.AppendString("linkUrl"); message.AppendString("event:"); message.AppendString("linkTitle"); message.AppendString("ok"); Cache.Add(StaticMessage.AdviceMaxItems, message.GetReversedBytes()); message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer")); message.AppendString(""); message.AppendInteger(4); message.AppendString("title"); message.AppendString("${generic.notice}"); message.AppendString("message"); message.AppendString("You've exceeded the maximum furnis in inventory. You can not buy more until you desagas some furnis."); message.AppendString("linkUrl"); message.AppendString("event:"); message.AppendString("linkTitle"); message.AppendString("ok"); Cache.Add(StaticMessage.AdvicePurchaseMaxItems, message.GetReversedBytes()); }