Here a small Fix from me to you ;)
This is for Save and Load the Volume in Butterfly :)
Authenticator.cs:
Habbo.csCode:under: int achiecvementPoints = (int)dRow["achievement_points"]; do: int volume = (int)dRow["volume"]; from: return new Habbo(id, username, facebook, rank, motto, look, gender, credits, activityPoints, activityPointsLastUpdate, isMuted, homeRoom, respect, dailyRespect, dailyPetRespect, mtantPenalty, blockFriends, questID, questProgress, group, achiecvementPoints, lastonline, crystals); to: return new Habbo(id, username, facebook, rank, motto, look, gender, credits, activityPoints, activityPointsLastUpdate, isMuted, homeRoom, respect, dailyRespect, dailyPetRespect, mtantPenalty, blockFriends, questID, questProgress, group, achiecvementPoints, lastonline, volume, crystals);
Code:under: internal int buyItemLoop = 1; do: internal int volume; search for: internal Habbo(UInt32 Id, string Username, string FaceBook, uint Rank, string Motto, string Look, string Gender, Int32 Credits, edit to: internal Habbo(UInt32 Id, string Username, string FaceBook, uint Rank, string Motto, string Look, string Gender, Int32 Credits, Int32 ActivityPoints, Double LastActivityPointsUpdate, bool Muted, UInt32 HomeRoom, Int32 Respect, Int32 DailyRespectPoints, Int32 DailyPetRespectPoints, bool MutantPenalty, bool HasFriendRequestsDisabled, uint currentQuestID, int currentQuestProgress, DataRow groupRow, int achievementPoints, string LastOnline, int volume, Int32 Crystals) { under: this.Look = ButterflyEnvironment.FilterFigure(Look.ToLower()); do: this.volume = volume;
Users.cs
SharedPacketLib.csCode:Search for: GetResponse().Init(Outgoing.AchievementPoints); GetResponse().AppendInt32(Session.GetHabbo().AchievementPoints); SendResponse(); add under this: GetResponse().Init(89); GetResponse().AppendInt32(Session.GetHabbo().volume); SendResponse(); Search for: internal void GetBalance() { add under this function: internal void SaveVolume() { int Volume = Request.PopWiredInt32(); using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { dbClient.setQuery("UPDATE users SET volume = @volume WHERE id = '" + Session.GetHabbo().Id + "' LIMIT 1"); dbClient.addParameter("volume", Volume); dbClient.runQuery(); } }
StaticClientMessageHandler.csCode:Add: internal static void SaveVolume(GameClientMessageHandler handler) { handler.SaveVolume(); }
Code:Add: handlers.Add(2623, new StaticRequestHandler(SharedPacketLib.SaveVolume));
Credits: Mininova (ME)


Reply With Quote![[BUTTERFLY] SAVE/LOAD Volume Fix](http://ragezone.com/hyper728.png)


