[BUTTERFLY] SAVE/LOAD Volume Fix

Results 1 to 9 of 9
  1. #1
    BFH Experience Loader Mininova is offline
    MemberRank
    Oct 2007 Join Date
    WonderlandLocation
    724Posts

    [BUTTERFLY] SAVE/LOAD Volume Fix

    Here a small Fix from me to you ;)

    This is for Save and Load the Volume in Butterfly :)

    Authenticator.cs:
    Code:
    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);
    Habbo.cs
    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
    Code:
    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();
                }
            }
    SharedPacketLib.cs
    Code:
    Add:
            internal static void SaveVolume(GameClientMessageHandler handler)
            {
                handler.SaveVolume();
            }
    StaticClientMessageHandler.cs
    Code:
    Add:
    handlers.Add(2623, new StaticRequestHandler(SharedPacketLib.SaveVolume));

    Credits: Mininova (ME)


  2. #2
    1 + 3 + 3 = 7 EvilCoder is offline
    MemberRank
    Jul 2009 Join Date
    /home/mvdworpLocation
    334Posts

    Re: [BUTTERFLY] SAVE/LOAD Volume Fix

    This has already been released... So this is not your fix.

    http://forum.ragezone.com/f353/uber-...-100-a-853477/

    Works fine on every emulator that thread. Fixxed that also for mine using that one.
    Creating this thread, setting the credits to yourself is nothing more then selfish and ego.

    But thanks for making a new thread.. Some people are not known with "searching" trough the forum..


    BTW! That other thread is way more smaller and easyer. Maybe you should copy a little bit of that. IT also has the packethandler for Loading settings.

  3. #3
    BFH Experience Loader Mininova is offline
    MemberRank
    Oct 2007 Join Date
    WonderlandLocation
    724Posts

    Re: [BUTTERFLY] SAVE/LOAD Volume Fix

    First learn to Read ;)
    This is for the new Crypto + Butterfly ;)
    Not Uber and R63A :)

  4. #4
    Proficient Member blink182sp44 is offline
    MemberRank
    Oct 2011 Join Date
    156Posts

    Re: [BUTTERFLY] SAVE/LOAD Volume Fix

    nice! Thx :D

  5. #5
    Owner of Habbo.ac iRaged is offline
    MemberRank
    Nov 2011 Join Date
    229Posts

    Re: [BUTTERFLY] SAVE/LOAD Volume Fix

    Looks good. I'll test this out shortly!

  6. #6
    Proficient Member iBling14 is offline
    MemberRank
    Nov 2011 Join Date
    179Posts

    Re: [BUTTERFLY] SAVE/LOAD Volume Fix

    Thanks for this, Any SQL? and if you don't mind release BOT's buyable ?

  7. #7
    Demi-God tweeney is offline
    MemberRank
    Aug 2008 Join Date
    888Posts

    Re: [BUTTERFLY] SAVE/LOAD Volume Fix

    mhmmmm sound settings..

    but nice work
    :)

  8. #8
    Enthusiast DemonCreazy is offline
    MemberRank
    Apr 2012 Join Date
    32Posts

    Re: [BUTTERFLY] SAVE/LOAD Volume Fix

    not lack sql for column volume ?

    Edit, yes, yes lack

    ALTER TABLE `users` ADD COLUMN `volume` int(3) NOT NULL DEFAULT 100;

    add in your db

  9. #9
    Proficient Member iBling14 is offline
    MemberRank
    Nov 2011 Join Date
    179Posts

    Re: [BUTTERFLY] SAVE/LOAD Volume Fix

    Quote Originally Posted by =dj.matias= View Post
    I fixed this for my emulator few monts ago already. And i have bot's buyable 99% :)

    Why are you going around "showing" off that emulator of yours, if you're not going to release it, why brag? Not the only person with it?

    Quote Originally Posted by tweeney View Post
    mhmmmm sound settings..

    but nice work
    :)
    You as well



Advertisement